/* DEON AI - Modern UI Styles */

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

.mobile-chat-back-overlay {
    display: none;
}
.mobile-chat-back-panel {
    display: none;
}

/* ============================================
   SKELETON LOADING PLACEHOLDERS
   ============================================ */
.screenshot-skeleton {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.05) 0%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0.05) 100%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
    border-radius: 6px;
    min-height: 120px;
}

.screenshot-skeleton.desktop {
    aspect-ratio: 16/10;
}

.screenshot-skeleton.mobile {
    aspect-ratio: 9/16;
    max-height: 150px;
}

@keyframes skeletonPulse {
    0% { 
        background-position: 200% 0;
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% { 
        background-position: -200% 0;
        opacity: 0.6;
    }
}

/* Canvas Background Styles */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    background: transparent;
}

/* Gradient Overlay */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(
        ellipse at center,
        var(--gradient-overlay-start) 0%,
        var(--gradient-overlay-mid) 50%,
        var(--gradient-overlay-edge) 100%
    );
    pointer-events: none;
}

/* ============================================
   HOME PAGE GRADIENT RIBBON SIDEBAR
   ============================================ */
.home-ribbon-trigger {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    z-index: 400;
    cursor: pointer;
}

.home-ribbon {
    position: absolute;
    inset: 0;
    width: 8px;
    background: linear-gradient(180deg, 
        #3AAFD4 0%,
        #3AAFD4 10%,
        #3AAFD4 20%,
        #3AAFD4 30%,
        #3AAFD4 40%,
        #3AAFD4 50%,
        #3AAFD4 60%,
        #3AAFD4 70%,
        #3AAFD4 80%,
        #3AAFD4 90%,
        #3AAFD4 100%
    );
    background-size: 100% 200%;
    animation: homeRibbonFlow 16s ease-in-out infinite;
    opacity: 0.8;
    transition: all 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.home-ribbon.ribbon-glow {
    animation: homeRibbonFlow 16s ease-in-out infinite, ribbonBreathGlow 2s ease-in-out 1;
}

@keyframes ribbonBreathGlow {
    0% { box-shadow: none; opacity: 0.8; }
    40% { box-shadow: 2px 0 12px rgba(58, 175, 212, 0.35), 3px 0 24px rgba(58, 175, 212, 0.2); opacity: 1; }
    100% { box-shadow: none; opacity: 0.8; }
}

@keyframes homeRibbonFlow {
    0% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

.home-ribbon-trigger:hover .home-ribbon {
    width: 12px;
    opacity: 1;
    box-shadow: 
        4px 0 20px rgba(58, 175, 212, 0.4),
        4px 0 40px rgba(58, 175, 212, 0.3);
}

.home-ribbon-arrow {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.home-ribbon-trigger:hover .home-ribbon-arrow {
    opacity: 1;
    right: -28px;
}

.home-ribbon-arrow svg {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
}

/* Home Sidebar Overlay */
.home-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 450;
}

.home-sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Home Sidebar (Matches Chat Sidebar) */
.home-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--sidebar-border);
    border-radius: 0 16px 16px 0;
    box-shadow: var(--sidebar-shadow);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.4s;
    z-index: 500;
    visibility: hidden;
    overflow: hidden;
}

.home-sidebar.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}

.home-sidebar-content {
    padding: 24px 16px;
    height: 100%;
    overflow-y: auto;
    direction: rtl;
    display: flex;
    flex-direction: column;
}

.home-sidebar-content > * {
    direction: ltr;
}

.sidebar-content-spacer {
    flex: 0 0 auto;
    height: 5vh;
}

/* Home sidebar uses same styles as chat sidebar sections */
.home-sidebar .sidebar-section {
    margin-bottom: 20px;
}

.home-sidebar .section-header-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-section-header);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.home-sidebar .section-header-row:hover {
    background: var(--bg-section-header-hover);
}

.home-sidebar .sidebar-section-bottom .section-header-row {
    background: transparent;
}

.home-sidebar .sidebar-section-bottom .section-header-row:hover {
    background: rgba(128, 128, 128, 0.1);
}

.home-sidebar .section-arrow {
    color: var(--text-gray-medium);
    font-size: 16px;
    font-weight: 600;
    width: 8px;
    text-align: center;
    margin-right: 12px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.home-sidebar .section-arrow.expanded {
    transform: rotate(90deg);
}

.section-arrow-spacer {
    width: 8px;
    margin-right: 12px;
    display: inline-block;
    flex-shrink: 0;
}

.home-sidebar .section-title {
    color: #E8E4DF;
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

body.light-mode .home-sidebar .section-title {
    color: var(--text-primary);
}

.home-sidebar .section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.home-sidebar .section-content.expanded {
    max-height: 9999px;
}

.home-sidebar .section-list {
    position: relative;
    padding: 12px 0 12px 24px;
}

.home-sidebar .section-vertical-line {
    position: absolute;
    left: 12px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: var(--border-medium);
}

.home-sidebar .list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #E8E4DF;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

body.light-mode .home-sidebar .list-item {
    color: var(--text-primary);
}

.home-sidebar .list-item:hover {
    opacity: 0.8;
}

.home-sidebar .list-item.active {
    color: var(--accent-purple);
}

.home-sidebar .list-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.home-sidebar .empty-state {
    color: var(--text-muted);
    font-size: 13px;
    padding: 8px 0;
}

/* Home sidebar project with nested conversations */
.home-sidebar .project-item.active {
    background: linear-gradient(90deg, rgba(58, 175, 212, 0.15) 0%, rgba(58, 175, 212, 0.05) 100%);
    border-radius: 8px;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
}

.home-sidebar .project-conversations {
    margin-left: 16px;
    padding-left: 12px;
    border-left: 1px solid var(--border-sidebar);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.home-sidebar .project-conversations.expanded {
    max-height: 500px;
}

.home-sidebar .nested-conversation {
    padding: 8px 0;
    font-size: 13px;
}

.home-sidebar .project-expand-indicator {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
    margin-left: auto;
}

.home-sidebar .project-item.active .project-expand-indicator {
    transform: rotate(90deg);
}

.home-sidebar .project-item.has-conversations {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-sidebar .add-project-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    align-self: center;
    line-height: 1;
}

.home-sidebar .add-project-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-body);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    height: 100vh;
    background: transparent;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

/* Header Navigation */
.header-nav {
    position: absolute;
    top: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-button::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-green));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-button:hover {
    color: var(--text-primary);
}

.nav-button:hover::after {
    width: 100%;
}

/* Nav Dropdown (Company menu) */
.nav-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-wrapper:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: rgba(26, 26, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 150;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-top: 4px;
}

.nav-dropdown-wrapper:hover .nav-dropdown {
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
    text-align: left;
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.light-mode .nav-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.light-mode .nav-dropdown-item {
    color: #6b7280;
}

.light-mode .nav-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1A1A1E;
}

.guest-theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

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

.guest-theme-btn:hover {
    color: var(--text-primary);
    background: rgba(58, 175, 212, 0.1);
}

.light-mode .guest-theme-btn {
    background: rgba(0, 0, 0, 0.03);
    color: #3A3A42;
}

.light-mode .guest-theme-btn:hover {
    color: var(--accent-purple);
    background: rgba(58, 175, 212, 0.1);
}

/* Auth Buttons */
.auth-buttons-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 40px;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.auth-btn {
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    color: var(--auth-btn-text);
}

/* Sign In - Blue gradient border */
.auth-btn-signin {
    border: 1px solid transparent;
    background: 
        linear-gradient(var(--bg-auth-btn), var(--bg-auth-btn)) padding-box,
        linear-gradient(90deg, #6b7280, #3AAFD4, #6b7280) border-box;
}

.auth-btn-signin:hover {
    background: 
        linear-gradient(90deg, #3AAFD4 0%, #3AAFD4 90%, #6b7280 100%) padding-box,
        linear-gradient(90deg, #3AAFD4, #3AAFD4, #6b7280) border-box;
    box-shadow: 0 0 20px rgba(58, 175, 212, 0.35);
    color: #1A1A1E;
}

/* Sign Up - Gold CTA button */
.auth-btn-signup {
    border: 1px solid transparent;
    background: var(--color-cta, #D4A843);
    color: var(--color-cta-text, #0A0A0B) !important;
    font-weight: 600;
}

.auth-btn-signup:hover {
    background: #F7D36A;
    box-shadow: 0 0 20px rgba(245, 200, 66, 0.35);
    color: var(--color-cta-text, #0A0A0B) !important;
}

/* Log Out button */
.auth-btn-logout {
    border: 1px solid var(--auth-btn-logout-border);
    border-radius: 50px;
    color: var(--auth-btn-logout-text);
    font-size: 13px;
    padding: 8px 20px;
}

.auth-btn-logout:hover {
    border-color: var(--auth-btn-logout-border-hover);
    color: var(--text-primary);
    background: var(--auth-btn-logout-bg-hover);
}

.chat-theme-toggle {
    display: flex;
    align-items: center;
    pointer-events: auto;
    margin-right: 16px;
}

/* Chat Page Auth Overlay */
.chat-auth-overlay {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px 30px;
    pointer-events: none;
    transform: translateZ(0); /* Compositor layer promotion - ensures z-index works vs canvas */
    will-change: transform;
}

.chat-auth-overlay.hidden {
    display: none;
}

.chat-auth-fade {
    display: none;
}

.chat-auth-buttons {
    display: flex;
    gap: 12px;
    pointer-events: auto;
}

/* User Menu Container */
.user-menu-container {
    position: relative;
    pointer-events: auto;
}

/* Home page user menu - positioned absolutely in top right */
.home-user-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateZ(0);
    will-change: transform;
}

/* Ensure home page dropdown content is left-aligned like chat page */
.home-user-menu .dropdown-item {
    justify-content: flex-start;
    text-align: left;
}

.home-user-menu .dropdown-section-label {
    text-align: left;
}

.home-user-menu .dropdown-user-info {
    text-align: left;
    align-items: flex-start;
}

.home-user-menu .dropdown-user-name,
.home-user-menu .dropdown-user-email {
    text-align: left;
}

.home-user-menu .dropdown-header {
    justify-content: flex-start;
}

.user-avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.user-avatar-btn:hover {
    transform: scale(1.05);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: var(--bg-dropdown);
    background-color: #141C27; /* Explicit solid fallback for dark mode */
    border: 1px solid var(--dropdown-border);
    border-radius: 16px;
    padding: 16px 0;
    box-shadow: var(--dropdown-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) translateZ(0);
    transition: all 0.2s ease;
    z-index: 10001;
    will-change: transform, opacity;
    isolation: isolate; /* Create independent stacking context */
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateZ(0); /* Keep compositor layer promotion when open */
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px 16px;
}

.dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3AAFD4 0%, #3AAFD4 100%);
    padding: 2px;
    flex-shrink: 0;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.dropdown-user-name {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-email {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

.dropdown-section {
    padding: 4px 0;
}

.dropdown-section-label {
    display: block;
    color: var(--text-section-label);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 20px 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--bg-hover-light);
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--text-secondary);
}

.dropdown-item:hover .dropdown-icon {
    stroke: var(--text-tertiary);
}

.dropdown-toggle-item {
    justify-content: space-between;
}

.dropdown-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Toggle Switch (legacy - keep for backwards compatibility) */
.toggle-switch {
    width: 44px;
    height: 24px;
    background: var(--bg-toggle);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.toggle-switch.active {
    background: var(--accent-purple);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(20px);
}

/* ========== 3-Way Theme Toggle ========== */
.theme-toggle-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    width: 100%;
}

.theme-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-tertiary);
    font-size: 14px;
    font-family: inherit;
}

.theme-toggle-row .dropdown-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--text-secondary);
}

.theme-segmented-control {
    display: flex;
    background: var(--bg-toggle);
    border-radius: 16px;
    padding: 4px;
    position: relative;
    width: calc(100% - 40px);
    height: 34px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 8px;
}

.theme-segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 1;
    transition: color 0.2s ease;
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 14px;
}

.theme-segment:hover {
    color: var(--text-tertiary);
}

.theme-segment.active {
    color: var(--text-primary);
}

.theme-segment-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(33.333% - 2.67px);
    height: calc(100% - 8px);
    background: var(--bg-dropdown);
    border-radius: 12px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-segmented-control[data-active="light"] .theme-segment-slider {
    transform: translateX(0);
}

.theme-segmented-control[data-active="system"] .theme-segment-slider {
    transform: translateX(100%);
}

.theme-segmented-control[data-active="dark"] .theme-segment-slider {
    transform: translateX(200%);
}

/* Theme segment icons */
.theme-segment-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

/* Responsive adjustments for smaller dropdowns */
@media (max-width: 400px) {
    .theme-segment {
        font-size: 11px;
    }
    
    .theme-segment-icon {
        width: 12px;
        height: 12px;
        margin-right: 2px;
    }
}

/* Sign Out Button */
.dropdown-signout {
    color: var(--accent-red);
}

.dropdown-signout .dropdown-icon {
    stroke: var(--accent-red);
}

.dropdown-signout:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Sign In Prompt Popup */
.signin-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-signin-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.signin-prompt-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.signin-prompt-box {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 20px 60px var(--shadow-dark);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.signin-prompt-overlay.visible .signin-prompt-box {
    transform: scale(1);
}

.signin-prompt-text {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 24px;
}

.signin-prompt-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.signin-prompt-btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.signin-prompt-btn-signin {
    border: none;
    background: var(--color-brand-primary, #3AAFD4);
    color: #000;
    font-weight: 600;
}

.signin-prompt-btn-signin:hover {
    background: #1A7A9E;
}

.signin-prompt-btn-cancel {
    background: transparent;
    border: 1px solid var(--auth-btn-logout-border);
    color: var(--auth-btn-logout-text);
}

/* Auth/Pricing Modal */
.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.auth-modal-overlay.active {
    display: flex;
}

.auth-modal {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.auth-modal-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.auth-modal-subtitle {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pricing-card {
    background: #111;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.selected {
    border-color: var(--color-brand-primary, #3AAFD4);
    background: rgba(58, 175, 212, 0.05);
}

.pricing-card-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-brand-primary, #3AAFD4);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: none;
}

.pricing-card.selected .pricing-card-badge {
    display: block;
}

.pricing-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.pricing-card-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.pricing-card-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: #666;
}

.pricing-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-card-features li {
    color: #aaa;
    font-size: 0.78rem;
    padding: 0.2rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.pricing-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-brand-primary, #3AAFD4);
    font-weight: 600;
}

.auth-form-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
}

.auth-form-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    background: #111;
    border-radius: 8px;
    padding: 3px;
}

.auth-tab {
    flex: 1;
    padding: 0.5rem;
    background: none;
    border: none;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.auth-tab.active {
    background: #222;
    color: #fff;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.auth-input {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    color: #fff;
    font-size: 0.85rem;
    font-family: 'Manrope', sans-serif;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
}

.auth-input:focus {
    border-color: var(--color-brand-primary, #3AAFD4);
}

.auth-input::placeholder {
    color: #555;
}

.auth-error {
    color: #F87171;
    font-size: 0.8rem;
    padding: 0.4rem 0;
}

.auth-submit-btn {
    background: var(--color-brand-primary, #3AAFD4);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 0.7rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Manrope', sans-serif;
    margin-top: 0.25rem;
}

.auth-submit-btn:hover {
    background: #1A7A9E;
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-modal-footer {
    margin-top: 1.25rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.enterprise-text {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.enterprise-link {
    color: #888;
    text-decoration: underline;
    cursor: pointer;
}

.community-text {
    color: #555;
    font-size: 0.75rem;
}

.community-link {
    color: var(--color-brand-primary, #3AAFD4);
    text-decoration: none;
}

.community-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    .auth-modal {
        padding: 1.25rem;
        border-radius: 12px;
    }
    .auth-form-row {
        grid-template-columns: 1fr;
    }
}

[data-theme="light"] .auth-modal {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .auth-modal-title { color: #111; }
[data-theme="light"] .auth-modal-subtitle { color: #666; }
[data-theme="light"] .pricing-card { background: #f8f8f8; border-color: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .pricing-card:hover { border-color: rgba(0, 0, 0, 0.2); }
[data-theme="light"] .pricing-card.selected { background: rgba(58, 175, 212, 0.05); border-color: var(--color-brand-primary, #3AAFD4); }
[data-theme="light"] .pricing-card-name { color: #111; }
[data-theme="light"] .pricing-card-price { color: #111; }
[data-theme="light"] .pricing-card-price span { color: #888; }
[data-theme="light"] .pricing-card-features li { color: #555; }
[data-theme="light"] .auth-form-tabs { background: #f0f0f0; }
[data-theme="light"] .auth-tab.active { background: #fff; color: #111; }
[data-theme="light"] .auth-input { background: #f8f8f8; border-color: rgba(0, 0, 0, 0.1); color: #111; }

.auth-form-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.auth-switch-text {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.auth-switch-link {
    color: var(--color-brand-primary, #3AAFD4);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch-link:hover {
    text-decoration: underline;
}

.signin-form-section {
    border-top: none;
    padding-top: 0;
    max-width: 400px;
    margin: 0 auto;
}

[data-theme="light"] .auth-form-heading { color: #111; }
[data-theme="light"] .auth-input::placeholder { color: #999; }

.signin-prompt-btn-cancel:hover {
    background: var(--auth-btn-logout-bg-hover);
    color: var(--text-primary);
}

[data-theme="light"] .signin-prompt-box {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .signin-prompt-text { color: #111; }

/* User Profile in Header */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    position: absolute;
    right: 40px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(58, 175, 212, 0.5);
}

.user-name {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

/* Landing View */
.landing-view {
    position: relative;
    padding: 60px 40px;
    text-align: center;
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 550px;
    height: auto;
    margin-bottom: 30px;
    filter: var(--logo-filter);
}

.logo-text {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.tagline {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 800px;/*this is the width of the tagline under DEON*/
}

/* Input Wrapper with Gradient */
.input-wrapper {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-green) 100%);
    padding: 0.5px;/*this is the padding of the user input box at home page*/
    border-radius: 30px;
}

.business-input {
    width: 100%;
    padding: 18px 60px 18px 48px;
    border: none;
    border-radius: 29px;
    font-size: 16px;
    background: var(--bg-input-solid);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.business-input::placeholder {
    color: var(--text-secondary);
}

.typing-text {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
    pointer-events: none;
    white-space: nowrap;
}

.home-plus-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 0;
    background: none;
    border: none;
    color: #3AAFD4;
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-plus-btn:hover,
.home-plus-btn.active {
    background: none;
    transform: translateY(-50%) rotate(45deg);
}

.home-plus-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.home-plus-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 8px;
    z-index: 100;
    background: rgba(26, 26, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    min-width: 170px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.home-plus-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.home-plus-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s ease;
    font-family: 'Manrope', sans-serif;
}

.home-plus-option:hover:not(:disabled) {
    background: #242429;
}

.home-plus-option svg {
    flex-shrink: 0;
}

.light-mode .home-plus-popup {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.light-mode .home-plus-option {
    color: rgba(0, 0, 0, 0.75);
}

.light-mode .home-plus-option:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
}

.typing-text.typing::after {
    content: '|';
    animation: blink 1s infinite;
}

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

.send-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-purple);
    border: none;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

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

/* ============================================
   TERMS AND PRIVACY NOTICE (Home Page)
   ============================================ */
.terms-privacy-notice {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.5s forwards;
}

.terms-privacy-notice a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.terms-privacy-notice a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.light-mode .terms-privacy-notice {
    color: #6b7280;
}

.light-mode .terms-privacy-notice a {
    color: #3A3A42;
}

.light-mode .terms-privacy-notice a:hover {
    color: #1A1A1E;
}

/* ============================================
   DROP & DEON CHAT BUTTON (Chat Page)
   ============================================ */
.drop-deon-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.drop-deon-chat-btn:hover {
    color: var(--accent-purple);
    background: rgba(58, 175, 212, 0.1);
}

.drop-deon-chat-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.drop-deon-chat-btn:disabled:hover {
    color: var(--text-secondary);
    background: transparent;
}

/* ============================================
   DROP & DEON OPTIONS CONTAINER
   ============================================ */
.drop-deon-options-container {
    background: rgba(30, 30, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px;
    max-width: 900px;
    width: 900px;
    margin: 10px 0;
    backdrop-filter: blur(10px);
}

/* Light mode adjustments */
.light-mode .drop-deon-options-container {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Drop & DEON title at top */
.drop-deon-pill-badge {
    display: block;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.drop-deon-options-header {
    text-align: left;
    margin-bottom: 20px;
}

.drop-deon-options-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.drop-deon-options-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.drop-deon-loading-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(30, 30, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.drop-deon-loading-text {
    color: var(--text-secondary);
    font-size: 14px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.drop-deon-files-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.drop-deon-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.light-mode .drop-deon-file-chip {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.drop-deon-file-chip svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    flex-shrink: 0;
}

.drop-deon-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.drop-deon-option-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: #1A1A1E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
}

.light-mode .drop-deon-option-btn {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

.drop-deon-option-btn:hover {
    border-color: rgba(58, 175, 212, 0.4);
    background: rgba(58, 175, 212, 0.08);
    transform: translateY(-2px);
}

/* Brand Kit card - recommended styling */
.drop-deon-option-btn.recommended {
    background: rgba(58, 175, 212, 0.12);
    border-color: rgba(58, 175, 212, 0.3);
}

.drop-deon-option-btn.recommended:hover {
    background: rgba(58, 175, 212, 0.18);
    border-color: rgba(58, 175, 212, 0.5);
}

/* RECOMMENDED badge */
.drop-deon-recommended-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    background: rgba(58, 175, 212, 0.9);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.drop-deon-option-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Brand Kit icon - purple */
.drop-deon-option-icon.purple {
    background: rgba(58, 175, 212, 0.2);
    color: #5ECAF0;
}

/* Audit icon - amber/orange */
.drop-deon-option-icon.amber {
    background: rgba(251, 191, 36, 0.2);
    color: #FBBF24;
}

/* Generate Assets icon - teal */
.drop-deon-option-icon.teal {
    background: rgba(45, 212, 191, 0.2);
    color: #3AAFD4;
}

.drop-deon-option-icon svg {
    width: 22px;
    height: 22px;
}

.drop-deon-option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drop-deon-option-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.drop-deon-option-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.drop-deon-chat-option {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.light-mode .drop-deon-chat-option {
    border-top-color: rgba(0, 0, 0, 0.08);
}

.drop-deon-chat-option span {
    color: var(--text-muted);
    font-size: 13px;
}

.drop-deon-chat-link {
    color: var(--accent-purple);
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.drop-deon-chat-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Guest warning banner */
.drop-deon-guest-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
}

.drop-deon-guest-warning svg {
    width: 20px;
    height: 20px;
    color: #FBBF24;
    flex-shrink: 0;
}

.drop-deon-guest-warning span {
    font-size: 13px;
    color: var(--text-secondary);
}

.drop-deon-guest-warning a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
}

.drop-deon-guest-warning a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .drop-deon-options-grid {
        grid-template-columns: 1fr;
    }
    
    .drop-deon-options-container {
        padding: 20px;
        margin: 0 16px;
    }
}

/* Chat View */
.chat-view {
    display: flex;
    height: 100vh;
    width: 100%;
    background: var(--bg-chat);
    position: relative;
    overflow: hidden;
}

/* Particle Field Animation */
.particle-field {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--particle-color);
    box-shadow: 0 0 var(--particle-glow-intensity) rgba(63, 152, 78, 0.01);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: particleFadeIn var(--particle-fade-duration) ease-in forwards;
}

@keyframes particleFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.2;
    }
}

@keyframes drift {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(var(--drift-x), var(--drift-y));
    }
}

@keyframes particleColorShift {
    0% {
        background: linear-gradient(135deg, #3AAFD4 0%, #3AAFD4 100%);
    }
    50% {
        background: linear-gradient(135deg, #8B7FDA 0%, #52C7A4 100%);
    }
    100% {
        background: #FFFFFF;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: calc(var(--particle-max-opacity) * 0.9);
    }
    50% {
        opacity: calc(var(--particle-max-opacity) * 1.1);
    }
}

/* Screenshot Collage Styles */
.screenshot-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
}

.screenshot-section {
    position: relative;
}

.screenshot-section.desktop-section {
    flex: 0 0 70%;
}

.screenshot-section.mobile-section {
    flex: 0 0 30%;
    margin-right: 25px;
    overflow: hidden;
}

.screenshot-collage {
    border-radius: 10px;
    overflow: hidden;
    background: #1A1A1E;
    padding: 0;
}

.screenshot-collage.desktop-collage {
    display: flex;
    overflow-x: hidden;
    gap: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    aspect-ratio: 16/10;
    border-radius: 0;
}

.screenshot-collage.desktop-collage .screenshot-collage-item {
    border-radius: 0;
}

.screenshot-collage.desktop-collage .screenshot-collage-item img {
    border-radius: 0;
}

.screenshot-collage.desktop-collage::-webkit-scrollbar {
    display: none;
}

.screenshot-collage.mobile-collage {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 220px;
    margin: 0 auto;
}

.browser-frame {
    background: #1A1A1E;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-frame-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.browser-frame-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.browser-frame-url {
    flex: 1;
    margin-left: 8px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Manrope', system-ui, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-frame {
    background: #1A1A1E;
    border-radius: 28px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    padding: 4px;
    position: relative;
    max-width: 220px;
    aspect-ratio: 9 / 19.5;
    margin: 0 auto;
}

.phone-frame-notch {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #1A1A1E;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.phone-frame-screen {
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
}

.screenshot-collage-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #1A1A1E;
    scroll-snap-align: start;
    flex-shrink: 0;
    min-width: 100%;
    min-height: 100%;
}

.screenshot-collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.screenshot-collage-item:hover {
    transform: scale(1.01);
    z-index: 10;
}

.screenshot-hover-effect {
    position: relative;
}

.screenshot-hover-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.screenshot-hover-effect:hover::after {
    opacity: 1;
}

.screenshot-separator {
    display: none;
}

.screenshot-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.screenshot-carousel-arrow {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.screenshot-carousel-arrow:hover {
    background: rgba(58, 175, 212, 0.2);
    color: #5ECAF0;
    border-color: rgba(58, 175, 212, 0.4);
}

.screenshot-carousel-counter {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    min-width: 30px;
    text-align: center;
}

.screenshot-carousel-dots {
    display: none;
}

.screenshot-carousel-dot {
    display: none;
}

.mobile-collage:empty {
    min-height: 280px;
    background: rgba(26, 26, 30, 0.3);
}

.mobile-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 4px;
}

.mobile-carousel-dots .mobile-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-carousel-dots .mobile-dot.active {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}

.holdback-section {
    margin: 40px 0 20px 0;
}

.holdback-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.holdback-title {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
}

.holdback-count {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(248, 113, 113, 0.15);
    color: #F87171;
}

.holdback-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.holdback-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.holdback-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.holdback-card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.holdback-loss-text {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    line-height: 1.4;
}

.competitor-item.own-business {
    border-color: rgba(94, 202, 240, 0.3) !important;
    background: rgba(94, 202, 240, 0.06) !important;
}

.competitor-item.own-business .competitor-name {
    color: #5ECAF0 !important;
}

.competitor-sentiment-bar {
    flex: 1;
    height: 24px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    overflow: hidden;
    display: flex;
}

.competitor-sentiment-pos {
    height: 100%;
    background: #4ADE80;
    transition: width 0.4s ease;
}

.competitor-sentiment-neu {
    height: 100%;
    background: #FBBF24;
    transition: width 0.4s ease;
}

.competitor-sentiment-neg {
    height: 100%;
    background: #F87171;
    transition: width 0.4s ease;
}

.competitor-platform-icon {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}

.mobile-screenshot {
    aspect-ratio: 9/16;
    max-height: 400px;
}

/* Responsive design for screenshot collage */
@media (max-width: 768px) {
    .screenshot-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .screenshot-section.desktop-section,
    .screenshot-section.mobile-section {
        flex: 1 1 100%;
    }
    
    .screenshot-section.mobile-section {
        margin-right: 0;
    }
    
    .screenshot-separator {
        display: none;
    }
    
    .screenshot-collage.desktop-collage .screenshot-collage-item img {
        object-fit: cover;
        object-position: top;
    }

    .phone-frame {
        max-width: 180px;
    }

    .mobile-screenshot {
        max-height: 250px;
    }
}

/* Evaluation Container */
.evaluation-container {
    margin: 20px 0;
    padding: 0;
    color: var(--text-primary);
    width: 100%;
}

/* Evaluation Wrapper - matches business-card-wrapper */
.evaluation-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    position: relative;
    border-radius: 12px;
}

/* Evaluation Background - matches business-card */
.evaluation-background {
    background: transparent;
    border-radius: 14px;
    padding: 0;
    width: 100%;
    color: var(--text-primary);
    position: relative;
}

.evaluation-content {
    background: transparent;
    color: var(--text-primary);
    position: relative;
}

/* ========== BRAND KIT STYLES ========== */

/* Brand Kit Section - Individual containers with gradient accent line */
.brand-kit-section {
    margin: 20px 0;
    padding: 24px;
    padding-left: calc(24px + 5px + 12px); /* Account for gradient bar */
    border-radius: 16px;
    background: #1A1A1E;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

/* Gradient accent line for brand kit sections */
.brand-kit-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(
        180deg,
        #3AAFD4 0%,
        #3AAFD4 60%,
        #3AAFD4 100%
    );
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(58, 175, 212, 0.5);
    animation: brandKitGlow 3s ease-in-out infinite;
}

@keyframes brandKitGlow {
    0%, 100% {
        opacity: 0.7;
        box-shadow: 0 0 10px rgba(58, 175, 212, 0.4);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(58, 175, 212, 0.7);
    }
}

/* Brand Kit Section Header */
.brand-kit-section h3 {
    color: #FFFFFF;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Light mode adjustments for brand kit */
body.light-mode .brand-kit-section {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .brand-kit-section h3 {
    color: var(--text-primary);
}

/* CSS Variables for Sidebar and Animation Control */
:root {
    /* ========== DEON BRAND PALETTE ========== */
    --color-bg-base: #0A0A0B;
    --color-bg-surface: #111113;
    --color-bg-elevated: #1A1A1E;
    --color-brand-primary: #3AAFD4;
    --color-brand-secondary: #3AAFD4;
    --color-cta: #D4A843;
    --color-cta-text: #0A0A0B;
    --color-signature-dot: #5ECAF0;
    --color-success: #4ADE80;
    --color-luminous-cyan: #5ECAF0;
    
    /* ========== THEME COLORS ========== */
    
    /* Background Colors - Dark Mode 4-Layer Palette */
    /* Layer 0 - Body (#0A0A0B) → global background (void) */
    /* Layer 1 - Canvas (#111113) → sidebar, panels, assistant messages */
    /* Layer 2 - Cards (#1A1A1E) → cards, folder items, content blocks */
    /* Layer 3 - Hover (#242429) → hover, dropdown, modal, raised UI */
    
    --bg-body: #0A0A0B;
    --bg-chat: #111113;
    --bg-dropdown: #242429;
    --bg-card: #1A1A1E;
    --bg-user-message: rgba(58, 175, 212, 0.15);
    --bg-assistant-message: #1E1E22;
    --bg-sidebar: rgba(17, 17, 19, 0.92);
    --bg-sidebar-solid: #111113;
    --bg-sidebar-rgb: 17, 17, 19;
    --bg-input: rgba(255, 255, 255, 0.06);
    --bg-input-solid: rgba(36, 36, 41, 0.95);
    --bg-section-header: rgba(26, 26, 30, 0.6);
    --bg-section-header-hover: rgba(26, 26, 30, 0.9);
    --bg-score-breakdown: rgba(17, 17, 19, 0.6);
    --bg-metric-box: rgba(255, 255, 255, 0.06);
    --bg-modal-input: rgba(255, 255, 255, 0.06);
    --bg-profile-circle: #1A1A1E;
    --bg-toggle: #1A1A1E;
    --bg-social-link: #111113;
    --bg-social-link-hover: #1A1A1E;
    --bg-hover-light: rgba(255, 255, 255, 0.06);
    --bg-hover-medium: rgba(255, 255, 255, 0.1);
    --bg-competitor: rgba(58, 175, 212, 0.08);
    --bg-competitor-hover: rgba(58, 175, 212, 0.15);
    --bg-local-competitors: rgba(58, 175, 212, 0.1);
    --bg-auth-btn: #0A0A0B;
    --bg-sidebar-toggle: rgba(17, 17, 19, 0.95);
    --bg-sidebar-toggle-hover: rgba(26, 26, 30, 0.95);
    --bg-modal-overlay: rgba(0, 0, 0, 0.8);
    --bg-signin-overlay: rgba(0, 0, 0, 0.6);
    
    /* Element-Specific Borders (dark mode - neutral grey styling) */
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    --chat-bubble-border: transparent;
    --input-border: transparent;
    --input-shadow: none;
    --dropdown-border: rgba(255, 255, 255, 0.1);
    --dropdown-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --text-section-label: #A0A0A8;
    
    /* Auth Button Colors */
    --auth-btn-text: white;
    --auth-btn-logout-border: rgba(255, 255, 255, 0.2);
    --auth-btn-logout-border-hover: rgba(255, 255, 255, 0.4);
    --auth-btn-logout-text: rgba(255, 255, 255, 0.7);
    --auth-btn-logout-bg-hover: rgba(255, 255, 255, 0.05);
    
    /* Logo Filter (invert for dark mode, none for light mode) */
    --logo-filter: brightness(0) invert(1);
    
    /* Icon Button Hover Effects */
    --icon-btn-hover-bg: rgba(255, 255, 255, 0.2);
    --icon-btn-hover-border: rgba(255, 255, 255, 0.4);
    --icon-btn-hover-shadow: rgba(255, 255, 255, 0.15);
    --icon-btn-active-shadow: rgba(255, 255, 255, 0.1);
    
    /* Gradient Bar Highlight */
    --gradient-bar-highlight: rgba(255, 255, 255, 0.2);
    
    /* Button Shine Effect */
    --btn-shine-overlay: rgba(255, 255, 255, 0.2);
    
    /* Text Colors */
    --text-primary: #F0F0F2;
    --text-secondary: #A0A0A8;
    --text-tertiary: #F0F0F2;
    --text-light: #F0F0F2;
    --text-muted: #606068;
    --text-muted-light: #A0A0A8;
    --text-gray-medium: #A0A0A8;
    --text-item-value: #A0A0A8;
    
    /* Accent Colors */
    --accent-purple: #3AAFD4;
    --accent-purple-light: #5ECAF0;
    --accent-purple-dark: #1A7A9E;
    --accent-purple-muted: #3AAFD4;
    --accent-green: #3AAFD4;
    --accent-green-dark: #1A7A9E;
    --accent-green-button: #3AAFD4;
    --accent-green-button-dark: #1A7A9E;
    --accent-teal: #5ECAF0;
    --accent-red: #F87171;
    --accent-red-dark: #F87171;
    --accent-warning: #FBBF24;
    --accent-caution: #FBBF24;
    
    /* Border Colors */
    --border-light: rgba(255, 255, 255, 0.1);
    --border-light-medium: rgba(255, 255, 255, 0.12);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-strong: rgba(255, 255, 255, 0.2);
    --border-stronger: rgba(255, 255, 255, 0.3);
    --border-strongest: rgba(255, 255, 255, 0.4);
    --border-purple: rgba(58, 175, 212, 0.3);
    --border-purple-strong: rgba(58, 175, 212, 0.5);
    --border-gray: #2A2A30;
    --border-gray-light: #3A3A42;
    --border-score: rgba(42, 42, 48, 0.5);
    --border-metric: rgba(255, 255, 255, 0.06);
    
    /* Shadow Colors */
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(0, 0, 0, 0.25);
    
    /* Gradient Overlay Colors */
    --gradient-overlay-start: rgba(10, 10, 11, 0);
    --gradient-overlay-mid: rgba(10, 10, 11, 0.4);
    --gradient-overlay-edge: rgba(10, 10, 11, 0.8);
    
    /* Scrollbar Colors */
    --scrollbar-track: rgba(255, 255, 255, 0.1);
    --scrollbar-thumb: rgba(255, 255, 255, 0.3);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.5);
    
    /* ========== END THEME COLORS ========== */
    
    /* Sidebar positioning and size */
    --sidebar-gap-top: 30px;
    --sidebar-gap-bottom: 30px;
    --sidebar-gap-left: 30px;
    --sidebar-width: 280px;
    --sidebar-opacity: 0.85;
    --sidebar-border-radius: 0 18px 18px 0;
    
    --chat-right-gutter: 30px;
    
    /* Performance Gradient Indicators */
    --gradient-bar-width: 5px;
    --gradient-opacity: 0.85;
    --gradient-primary-good: #4ADE80;
    --gradient-primary-medium: #FBBF24;
    --gradient-primary-bad: #F87171;
    --gradient-secondary: rgba(255, 255, 255, 0.1);
    --gradient-glow-radius: 12px;
    --gradient-glow-opacity: 0.3;
    
    /* Particle Animation Settings */
    --particle-fade-duration: 3s;
    --particle-max-opacity: 0.2;
    --particle-drift-speed: 25s;
    --particle-pulse-speed: 5s;
    --particle-count: 50;
    --particle-size-min: 2px;
    --particle-size-max: 6px;
    --particle-color: #3AAFD4;
    --particle-glow-intensity: 10px;
    
    /* Gradient Accent Line Settings */
    --accent-line-width: 5px;
    --accent-line-color-1: #3AAFD4;
    --accent-line-color-2: #3AAFD4;
    --accent-line-opacity: 0.8;
    --accent-line-glow-size: 15px;
    --accent-breathe-speed: 4s;
    --accent-breathe-intensity: 1.3;
    
    /* Floating bubble settings */
    --bubble1-color: #3AAFD4;
    --bubble1-opacity: 0.15;
    --bubble1-size: 300px;
    --bubble1-blur: 60px;
    --bubble1-speed: 45s;
    
    --bubble2-color: #3AAFD4;
    --bubble2-opacity: 0.12;
    --bubble2-size: 250px;
    --bubble2-blur: 50px;
    --bubble2-speed: 40s;
}

/* ========== LIGHT MODE THEME ========== */
body.light-mode {
    /* Background Colors - Light Mode Layered Palette */
    /* bg-deep (#DCE0E6) → global background (darker, calmer) */
    /* bg-surface (#F5F6F8) → sidebar, DEON messages (soft off-white panels) */
    /* All surfaces use subtle borders and shadows for depth */
    
    --bg-body: #DCE0E6;
    --bg-chat: #DCE0E6;
    --bg-dropdown: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-user-message: #FFFFFF;
    --bg-assistant-message: #F5F6F8;
    --bg-sidebar: rgba(245, 246, 248, 0.98);
    --bg-sidebar-solid: #F5F6F8;
    --bg-sidebar-rgb: 245, 246, 248;
    --bg-input: rgba(255, 255, 255, 0.98);
    --bg-input-solid: #FFFFFF;
    --bg-section-header: rgba(220, 224, 230, 0.8);
    --bg-section-header-hover: rgba(200, 205, 212, 0.9);
    --bg-score-breakdown: rgba(255, 255, 255, 0.9);
    --bg-metric-box: rgba(220, 224, 230, 0.6);
    --bg-modal-input: rgba(0, 0, 0, 0.03);
    --bg-profile-circle: #D5D9DE;
    --bg-toggle: #CDD2D8;
    --bg-social-link: #FFFFFF;
    --bg-social-link-hover: #F5F7FA;
    --bg-hover-light: rgba(0, 0, 0, 0.04);
    --bg-hover-medium: rgba(0, 0, 0, 0.06);
    --bg-competitor: rgba(58, 175, 212, 0.08);
    --bg-competitor-hover: rgba(58, 175, 212, 0.15);
    --bg-local-competitors: rgba(58, 175, 212, 0.08);
    --bg-auth-btn: #DCE0E6;
    --bg-sidebar-toggle: rgba(245, 246, 248, 0.98);
    --bg-sidebar-toggle-hover: rgba(240, 241, 244, 0.98);
    --bg-modal-overlay: rgba(0, 0, 0, 0.5);
    --bg-signin-overlay: rgba(0, 0, 0, 0.4);
    
    /* Light Mode Specific Borders */
    --sidebar-border: #D5D9DE;
    --sidebar-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --chat-bubble-border: #E2E5EA;
    --input-border: #CDD2D8;
    --input-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    --dropdown-border: #CDD2D8;
    --dropdown-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
    
    /* Auth Button Colors - Light mode */
    --auth-btn-text: #1A1A1E;
    --auth-btn-logout-border: rgba(0, 0, 0, 0.15);
    --auth-btn-logout-border-hover: rgba(0, 0, 0, 0.25);
    --auth-btn-logout-text: rgba(0, 0, 0, 0.6);
    --auth-btn-logout-bg-hover: rgba(0, 0, 0, 0.05);
    
    /* Logo Filter (no invert for light mode) */
    --logo-filter: brightness(0) invert(0);
    
    /* Icon Button Hover Effects - Light mode */
    --icon-btn-hover-bg: rgba(0, 0, 0, 0.1);
    --icon-btn-hover-border: rgba(0, 0, 0, 0.2);
    --icon-btn-hover-shadow: rgba(0, 0, 0, 0.1);
    --icon-btn-active-shadow: rgba(0, 0, 0, 0.08);
    
    /* Gradient Bar Highlight - Light mode */
    --gradient-bar-highlight: rgba(0, 0, 0, 0.1);
    
    /* Button Shine Effect - Light mode */
    --btn-shine-overlay: rgba(0, 0, 0, 0.08);
    
    /* Brand Primary/Secondary - Light mode deep cyan */
    --color-brand-primary: #1A7A9E;
    --color-brand-secondary: #1A7A9E;

    /* Particle Animation Settings - Light mode */
    --particle-color: #1A7A9E;
    --particle-glow-intensity: 8px;
    --particle-max-opacity: 0.5;
    --particle-end-color: #1A7A9E;

    /* Accent Line Settings - Light mode */
    --accent-line-color-1: #1A7A9E;
    --accent-line-color-2: #1A7A9E;
    
    /* Floating bubble settings - Light mode (darker, more visible) */
    --bubble1-color: #0D2E3A;
    --bubble1-opacity: 0.12;
    --bubble2-color: #1A7A9E;
    --bubble2-opacity: 0.10;
    
    /* Text Colors - Refined for light mode */
    --text-primary: #2C333D;
    --text-secondary: #59616E;
    --text-tertiary: #3D4550;
    --text-light: #2C333D;
    --text-muted: #7E8795;
    --text-muted-light: #59616E;
    --text-gray-medium: #59616E;
    --text-item-value: #59616E;
    --text-section-label: #7E8795;
    
    /* Accent Colors - Adjusted for light mode contrast */
    --accent-purple: #1A7A9E;
    --accent-purple-light: #1A7A9E;
    --accent-purple-dark: #1A7A9E;
    --accent-purple-muted: #1A7A9E;
    --accent-green: #1A7A9E;
    --accent-green-dark: #1A7A9E;
    --accent-green-button: #1A7A9E;
    --accent-green-button-dark: #1A7A9E;
    --accent-teal: #1A7A9E;
    --accent-red: #DC2626;
    --accent-red-dark: #B91C1C;
    --accent-warning: #D97706;
    --accent-caution: #CA8A04;
    
    /* Border Colors - Dark equivalents */
    --border-light: rgba(0, 0, 0, 0.08);
    --border-light-medium: rgba(0, 0, 0, 0.1);
    --border-medium: rgba(0, 0, 0, 0.12);
    --border-strong: rgba(0, 0, 0, 0.15);
    --border-stronger: rgba(0, 0, 0, 0.2);
    --border-strongest: rgba(0, 0, 0, 0.25);
    --border-purple: rgba(26, 122, 158, 0.3);
    --border-purple-strong: rgba(26, 122, 158, 0.5);
    --border-gray: #E5E7EB;
    --border-gray-light: #D1D5DB;
    --border-score: rgba(209, 213, 219, 0.8);
    --border-metric: rgba(209, 213, 219, 0.5);
    
    /* Shadow Colors */
    --shadow-dark: rgba(0, 0, 0, 0.15);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.08);
    
    /* Gradient Overlay Colors */
    --gradient-overlay-start: rgba(249, 250, 251, 0);
    --gradient-overlay-mid: rgba(249, 250, 251, 0.4);
    --gradient-overlay-edge: rgba(249, 250, 251, 0.8);
    
    /* Scrollbar Colors */
    --scrollbar-track: rgba(0, 0, 0, 0.05);
    --scrollbar-thumb: rgba(0, 0, 0, 0.2);
    --scrollbar-thumb-hover: rgba(0, 0, 0, 0.3);
    
    /* Gradient secondary for light mode */
    --gradient-secondary: rgba(0, 0, 0, 0.1);

    /* Competitor backgrounds - Light mode deep cyan */
    --bg-competitor: rgba(26, 122, 158, 0.08);
    --bg-competitor-hover: rgba(26, 122, 158, 0.15);
    --bg-local-competitors: rgba(26, 122, 158, 0.08);

    /* Signature dot - Light mode */
    --color-signature-dot: #1A7A9E;
    --color-luminous-cyan: #1A7A9E;
}

body.light-mode .workspace-icon {
    stroke: #1A7A9E !important;
}

body.light-mode .drop-deon-guest-warning {
    color: #92400E;
}

body.light-mode .stage-indicator-amber {
    background: #B45309;
    box-shadow: 0 0 6px #B45309;
}

/* Light mode dropdown - explicit solid background */
body.light-mode .user-dropdown {
    background-color: #FFFFFF;
}

/* Light mode particle animation - ends at visible colors instead of white */
body.light-mode .particle {
    animation: 
        particleFadeIn var(--particle-fade-duration) ease-in forwards,
        drift var(--particle-drift-speed) ease-in-out infinite alternate,
        particleColorShiftLight 8s ease-in-out forwards !important;
}

@keyframes particleColorShiftLight {
    0% {
        background: #1A7A9E;
    }
    50% {
        background: linear-gradient(135deg, #1A7A9E 0%, #1A7A9E 100%);
    }
    100% {
        background: #1A7A9E;
    }
}

/* ========== REPORTS STAY DARK IN LIGHT MODE ========== */
/* Force evaluation reports to maintain dark theme styling */
body.light-mode .evaluation-container,
body.light-mode .evaluation-wrapper,
body.light-mode .evaluation-content,
body.light-mode .score-box-wrapper,
body.light-mode .score-box,
body.light-mode .score-breakdown,
body.light-mode .analysis-section,
body.light-mode .metric-box,
body.light-mode .evaluation-item,
body.light-mode .visual-assessment,
body.light-mode .local-seo-section,
body.light-mode .competitor-section,
body.light-mode .social-presence-section,
body.light-mode .recommendations-section {
    --bg-score-breakdown: rgba(17, 17, 19, 0.5);
    --bg-metric-box: rgba(255, 255, 255, 0.06);
    --bg-card: #1A1A1E;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-score: rgba(55, 65, 81, 0.5);
    --border-metric: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);
}

body.light-mode .score-box,
body.light-mode .score-breakdown,
body.light-mode .analysis-section,
body.light-mode .screenshot-container {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(55, 65, 81, 0.5) !important;
    color: #FFFFFF !important;
}

body.light-mode .score-box h3,
body.light-mode .score-breakdown h3,
body.light-mode .score-breakdown h4,
body.light-mode .analysis-section h3,
body.light-mode .analysis-section h4,
body.light-mode .metric-box .metric-name {
    color: #FFFFFF !important;
}

body.light-mode .score-box p,
body.light-mode .score-breakdown p,
body.light-mode .analysis-section p,
body.light-mode .analysis-section li,
body.light-mode .metric-box .metric-value,
body.light-mode .evaluation-item {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.light-mode .metric-box {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.light-mode .evaluation-item::before {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Additional report elements to stay dark */
body.light-mode .analysis-section table,
body.light-mode .analysis-section th,
body.light-mode .analysis-section td,
body.light-mode .score-breakdown table,
body.light-mode .score-breakdown th,
body.light-mode .score-breakdown td {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(55, 65, 81, 0.3) !important;
}

body.light-mode .analysis-section strong,
body.light-mode .score-breakdown strong {
    color: #FFFFFF !important;
}

body.light-mode .analysis-section a {
    color: #3AAFD4 !important;
}

body.light-mode .analysis-section .metric-indicator,
body.light-mode .analysis-section .status-pass::before,
body.light-mode .analysis-section .status-fail::before,
body.light-mode .analysis-section .status-warning::before {
    filter: none;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
    position: fixed;
    top: var(--sidebar-gap-top);
    bottom: calc(var(--sidebar-gap-bottom) + 20px);
    left: 0;
    border-radius: var(--sidebar-border-radius);
    border-right: 1px solid var(--sidebar-border);
    border-top: 1px solid var(--sidebar-border);
    border-bottom: 1px solid var(--sidebar-border);
    border-left: 1px solid var(--sidebar-border);
    z-index: 100;
    box-shadow: var(--sidebar-shadow);
    overflow: hidden;
}

.sidebar.collapsed {
    transform: translateX(calc(-1 * var(--sidebar-width) - var(--sidebar-gap-left) - 10px));
}

.sidebar.collapsed ~ .sidebar-toggle {
    left: 0;  /* Aligned with collapsed sidebar */
}

.sidebar.collapsed ~ .sidebar-toggle::before {
    content: '▶';
}

/* When sidebar is collapsed, expand main content to full width */
.chat-main.sidebar-collapsed {
    margin-left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: none;
}

.sidebar-logo {
    width: 80px;
    height: auto;
    filter: var(--logo-filter);
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.sidebar-logo:hover {
    transform: scale(1.05);
}

/* DEON Logo in sidebar */
.sidebar-deon-logo-link {
    display: block;
    padding: 16px 16px 0 16px;
}

.sidebar-deon-logo {
    width: 100px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.sidebar-deon-logo:hover {
    opacity: 1;
}

/* New Conversation Button */
.new-conversation-container {
    padding: 0 20px 16px 20px;
}

.new-conversation-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px 10px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-conversation-btn:hover {
    background: transparent;
}

.new-conversation-btn:hover .new-conv-icon {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(58, 175, 212, 0.4);
}

.new-conversation-btn:hover .new-conv-text {
    color: #E8E4DF;
}

.new-conv-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3AAFD4;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.3s ease;
}

.new-conv-text {
    color: #E8E4DF;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-separator {
    border: none;
    border-top: 1px solid rgba(128, 128, 128, 0.3);
    margin: 8px 16px 16px 16px;
}

.sidebar-section-bottom .section-header-row {
    background: transparent;
}

.sidebar-section-bottom .section-header-row:hover {
    background: rgba(128, 128, 128, 0.1);
}

.sidebar-section-bottom {
    margin-top: 8px;
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: var(--text-gray-medium);
    opacity: 0.85;
}

.home-sidebar .section-icon {
    opacity: 0.85;
}

.sidebar-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    direction: rtl; /* Moves scrollbar to left side */
}

/* Reset text direction for sidebar content children */
.sidebar-content > * {
    direction: ltr;
}

/* Custom scrollbar for sidebar */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.sidebar-section {
    margin-bottom: 20px;
}

/* Collapsible Section Header Row */
.section-header-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-section-header);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.section-header-row:hover {
    background: var(--bg-section-header-hover);
}

.section-arrow {
    color: var(--text-gray-medium);
    font-size: 16px;
    font-weight: 600;
    width: 8px;
    text-align: center;
    margin-right: 12px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.section-arrow.expanded {
    transform: rotate(90deg);
}

.section-title {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

.section-add-btn {
    background: transparent;
    border: none;
    color: var(--text-gray-medium);
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.section-add-btn:hover {
    color: var(--text-primary);
    transform: scale(1.2);
}

/* Section Content (collapsible) */
.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.section-content.expanded {
    max-height: 9999px;
}

.section-list {
    position: relative;
    padding: 12px 0 12px 24px;
}

.section-vertical-line {
    position: absolute;
    left: 12px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: var(--border-medium);
}

/* Empty state */
.empty-state {
    color: var(--text-muted);
    font-size: 13px;
    padding: 8px 0;
}

/* Sign in prompt for conversations */
.sign-in-prompt {
    color: var(--text-secondary);
    font-size: 12px;
    padding: 8px 0;
}

.sign-in-link {
    color: var(--text-tertiary);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sign-in-link:hover {
    color: var(--accent-purple);
}

/* See all link */
.see-all-link {
    color: var(--text-secondary);
    font-size: 13px;
    padding: 8px 24px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.see-all-link:hover {
    color: var(--text-primary);
}

/* Project/Conversation list items */
.list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--text-primary);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.list-item:hover {
    opacity: 0.8;
}

.list-item.active {
    color: var(--accent-purple);
}

/* Active project has purple background highlight */
.project-item.active {
    background: linear-gradient(90deg, rgba(58, 175, 212, 0.15) 0%, rgba(58, 175, 212, 0.05) 100%);
    border-radius: 8px;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
}

.list-item-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.list-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

/* Nested conversations under projects */
.project-conversations {
    margin-left: 16px;
    padding-left: 12px;
    border-left: 1px solid var(--border-sidebar);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.project-conversations.expanded {
    max-height: 500px;
}

.nested-conversation {
    padding: 8px 0;
    font-size: 13px;
}

/* Project expand indicator */
.project-expand-indicator {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
    margin-left: auto;
}

.project-item.active .project-expand-indicator {
    transform: rotate(90deg);
}

.project-item.has-conversations {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Project item should be flex for menu button */
.project-item {
    display: flex;
    align-items: center;
    position: relative;
}

/* Three-dot menu button for project items */
.project-menu-btn {
    opacity: 0;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.project-item:hover .project-menu-btn {
    opacity: 1;
}

.project-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Elevate project item when context menu is active */
.project-item.context-menu-active {
    position: relative;
    z-index: 100;
    background: var(--bg-sidebar-hover);
}

.project-item.context-menu-active .project-menu-btn {
    opacity: 1;
}

/* Drag and drop styling */
.list-item.dragging {
    opacity: 0.5;
    background: rgba(58, 175, 212, 0.1);
    border-radius: 6px;
}

/* Drop target for section headers (conversations section) */
.section-header-row.drop-target {
    background: linear-gradient(90deg, rgba(58, 175, 212, 0.25) 0%, rgba(58, 175, 212, 0.1) 100%);
    border-radius: 8px;
    border: 2px dashed var(--accent-purple);
    margin: -2px;
    padding: 2px;
}

/* Wrapper for entire conversations section when it's a drop target */
.conversations-section.drop-target-section {
    background: linear-gradient(90deg, rgba(58, 175, 212, 0.15) 0%, rgba(58, 175, 212, 0.05) 100%);
    border-radius: 8px;
    outline: 2px dashed var(--accent-purple);
    outline-offset: -2px;
}

/* Highlight entire project wrapper when dropping */
.project-wrapper.drop-target-section {
    background: linear-gradient(90deg, rgba(58, 175, 212, 0.12) 0%, rgba(58, 175, 212, 0.04) 100%);
    border-radius: 8px;
    outline: 2px dashed var(--accent-purple);
    outline-offset: -2px;
}

/* Clean up nested project-item styling inside drop-target wrapper */
.project-wrapper.drop-target-section .project-item {
    background: transparent;
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
}

/* Home sidebar conversations section drop target */
.home-sidebar .section-content.drop-target-section {
    background: linear-gradient(90deg, rgba(58, 175, 212, 0.15) 0%, rgba(58, 175, 212, 0.05) 100%);
    border-radius: 8px;
    outline: 2px dashed var(--accent-purple);
    outline-offset: -2px;
}

/* Home sidebar project wrapper drop target (reuses existing .project-wrapper.drop-target-section) */
.home-sidebar .project-wrapper.drop-target-section {
    background: linear-gradient(90deg, rgba(58, 175, 212, 0.12) 0%, rgba(58, 175, 212, 0.04) 100%);
    border-radius: 8px;
    outline: 2px dashed var(--accent-purple);
    outline-offset: -2px;
}

.home-sidebar .project-wrapper.drop-target-section .project-item {
    background: transparent;
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
}

.conversation-item {
    cursor: grab;
    position: relative;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.conversation-item:hover {
    background: rgba(50, 55, 60, 0.8);
    border-radius: 6px;
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.conversation-item:active {
    cursor: grabbing;
}

/* Three-dot menu button for conversation items */
.conversation-menu-btn {
    opacity: 0;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.conversation-item:hover .conversation-menu-btn {
    opacity: 1;
}

.conversation-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Conversation context menu dropdown */
.conversation-context-menu {
    position: fixed;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 6px 0;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.conversation-context-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.context-menu-item.rename {
    color: var(--text-primary);
}

.context-menu-item.delete {
    color: #F87171;
}

.context-menu-item svg {
    width: 16px;
    height: 16px;
}

/* Truncate conversation title when menu button is visible */
.conversation-item .list-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 4px;
}

/* Elevate conversation item when context menu is active */
.conversation-item.context-menu-active {
    position: relative;
    z-index: 100;
    background: var(--bg-sidebar-hover);
}

.conversation-item.context-menu-active .conversation-menu-btn {
    opacity: 1;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-modal-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-dropdown);
    border: 1px solid var(--border-purple);
    border-radius: 16px;
    padding: 30px;
    min-width: 400px;
    box-shadow: 0 20px 60px var(--shadow-dark);
}

.modal-content h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-modal-input);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s ease;
}

.modal-input:focus {
    border-color: var(--border-purple-strong);
}

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

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-direction: row-reverse;
}

.modal-btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.modal-btn-cancel {
    background: transparent;
    border: 1px solid var(--auth-btn-logout-border);
    color: var(--auth-btn-logout-text);
}

.modal-btn-cancel:hover {
    background: var(--auth-btn-logout-bg-hover);
    color: var(--text-primary);
}

.modal-btn-create {
    border: 1px solid transparent;
    background: 
        linear-gradient(var(--bg-auth-btn), var(--bg-auth-btn)) padding-box,
        linear-gradient(90deg, #3AAFD4, #1A7A9E, #1A7A9E) border-box;
    color: var(--auth-btn-text);
}

.modal-btn-create:hover {
    box-shadow: 0 0 15px rgba(58, 175, 212, 0.35);
}

/* Additional modal button styles */
.modal-btn-primary {
    border: 1px solid transparent;
    background: 
        linear-gradient(var(--bg-auth-btn), var(--bg-auth-btn)) padding-box,
        linear-gradient(90deg, #3AAFD4, #1A7A9E, #1A7A9E) border-box;
    color: var(--auth-btn-text);
}

.modal-btn-primary:hover {
    box-shadow: 0 0 15px rgba(58, 175, 212, 0.35);
}

.modal-btn-secondary {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

/* ============================================
   FILES MODAL
   ============================================ */
.files-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.files-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.files-modal {
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(58, 175, 212, 0.15);
    border-radius: 20px;
    width: 95%;
    max-width: 1100px;
    min-height: 500px;
    max-height: 90vh;
    padding: 36px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.files-modal-overlay.active .files-modal {
    transform: translateY(0);
}

.files-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 1;
}

.files-modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.files-modal-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 28px 0;
}

.files-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.files-drive-folder {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.files-drive-folder:hover {
    background: rgba(58, 175, 212, 0.1);
    border-color: rgba(58, 175, 212, 0.3);
    transform: translateY(-2px);
}

.files-drive-folder-icon {
    width: 72px;
    height: 72px;
    color: rgba(58, 175, 212, 0.7);
}

.files-drive-folder-icon svg {
    width: 100%;
    height: 100%;
}

.files-drive-folder-name {
    color: white;
    font-size: 15px;
    font-weight: 500;
}

.files-drive-folder-count {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.files-folder-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.files-back-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.files-back-btn:hover {
    background: rgba(58, 175, 212, 0.15);
    color: white;
}

.files-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.files-breadcrumb-root {
    color: rgba(58, 175, 212, 0.8);
    cursor: pointer;
    transition: color 0.2s;
}

.files-breadcrumb-root:hover {
    color: rgba(58, 175, 212, 1);
}

.files-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
}

.files-breadcrumb-current {
    color: white;
    font-weight: 500;
}

.files-empty-folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.files-empty-folder-icon {
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
}

.files-empty-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.files-empty-subtext {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    margin: 0;
}

.light-mode .files-modal {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .files-modal-close {
    color: rgba(0, 0, 0, 0.4);
}

.light-mode .files-modal-close:hover {
    color: rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.05);
}

.light-mode .files-modal-title {
    color: #1a1a2e;
}

.light-mode .files-drive-folder {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .files-drive-folder:hover {
    background: rgba(58, 175, 212, 0.06);
    border-color: rgba(58, 175, 212, 0.2);
}

.light-mode .files-drive-folder-name {
    color: #1a1a2e;
}

.light-mode .files-drive-folder-count {
    color: rgba(0, 0, 0, 0.4);
}

.light-mode .files-back-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
}

.light-mode .files-back-btn:hover {
    background: rgba(58, 175, 212, 0.1);
    color: #1a1a2e;
}

.light-mode .files-breadcrumb-sep {
    color: rgba(0, 0, 0, 0.3);
}

.light-mode .files-breadcrumb-current {
    color: #1a1a2e;
}

.light-mode .files-empty-folder-icon {
    color: rgba(0, 0, 0, 0.1);
}

.light-mode .files-empty-text {
    color: rgba(0, 0, 0, 0.5);
}

.light-mode .files-empty-subtext {
    color: rgba(0, 0, 0, 0.3);
}

.files-loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: rgba(58,175,212,0.6);
    border-radius: 50%;
    animation: files-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes files-spin {
    to { transform: rotate(360deg); }
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.modal-btn-danger {
    background: #F87171;
    border: 1px solid #F87171;
    color: white;
}

.modal-btn-danger:hover {
    background: #DC2626;
    border-color: #DC2626;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
}

.sidebar-footer {
    padding: 20px;
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
}

.profile-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-profile-circle);
}

/* Sidebar Toggle - Hidden (replaced by sidebar strip) */
.sidebar-toggle {
    display: none !important;
}

/* Main Chat Area */
.chat-main {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    margin-left: 16px;
    position: relative;
    transition: flex-basis 0.4s ease, max-width 0.4s ease;
    z-index: 1;
}

.chat-view.canvas-thinking .chat-main {
    flex: 0 0 40%;
    max-width: 40%;
}

.chat-view.canvas-report-shown .chat-main {
    flex: 0 0 40%;
    max-width: 40%;
}

.chat-messages {
    flex: 1;
    padding: 30px 30px 100px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}

/* Canvas Panel */
.canvas-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: rgba(15, 15, 25, 0.4);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: flex-basis 0.4s ease, max-width 0.4s ease;
    z-index: 1;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.canvas-header {
    flex: 0 0 auto;
    padding: 16px 20px;
    border-bottom: none;
    min-height: 52px;
    display: flex;
    align-items: center;
}

.canvas-tabs {
    display: flex;
    gap: 6px;
}

.canvas-tab {
    padding: 7px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    color: rgba(255, 255, 255, 0.45);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.canvas-tab:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
}

.canvas-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-weight: 600;
}

.canvas-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.canvas-sphere-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    transition: all 0.5s ease;
}

.canvas-sphere-wrapper.sphere-streaming {
    flex: 0 0 auto;
    max-height: 50px;
    transform: scale(0.38);
    transform-origin: center left;
    transition: transform 0.6s ease, flex 0.6s ease, max-height 0.6s ease;
    position: relative;
    margin-left: 8px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    padding-left: 0;
    margin-bottom: 0;
    overflow: visible;
}

.canvas-sphere-wrapper.sphere-streaming::after {
    display: none;
}

.canvas-sphere-wrapper.sphere-hidden {
    display: none;
}

.canvas-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 24px 24px;
    display: none;
}

.canvas-content.has-content {
    display: block;
}

.canvas-content::-webkit-scrollbar {
    width: 6px;
}

.canvas-content::-webkit-scrollbar-track {
    background: transparent;
}

.canvas-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* Chat Report Card (shown in chat when report is on canvas) */
.chat-report-card {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 500px;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.chat-report-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    box-shadow: none;
}

.report-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.report-card-icon svg {
    width: 22px;
    height: 22px;
    color: #5ECAF0;
}

.report-card-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.report-card-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.chat-eval-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* Messages */
.message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: fadeIn 0.3s ease;
    position: relative;
    z-index: 2;
}

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

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

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes scoreReveal {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    60% {
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.message.user {
    justify-content: flex-end;
}

.message.user .message-bubble {
    background: var(--bg-user-message);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 18px 18px 4px 18px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    border: none;
}

.message.assistant .message-bubble {
    background: var(--bg-assistant-message);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 18px 18px 18px 4px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    border: none;
}

.message-bubble {
    max-width: 600px;
    padding: 16px 20px;
    font-size: 16px;
    line-height: 1.5;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    transition: border 0.3s ease;
}


/* Typing cursor for message animation */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--text-light);
    margin-left: 2px;
    animation: blink-cursor 1s infinite;
    vertical-align: text-bottom;
}

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

/* Thinking Animation */
.thinking-indicator {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 12px 20px;
    background: linear-gradient(90deg, 
        rgba(58, 175, 212, 0.55) 0%, 
        rgba(36, 197, 176, 0.55) 50%, 
        rgba(7, 222, 161, 0.55) 50%, 
        rgba(58, 175, 212, 0.55) 75%,
        /*rgba(36, 197, 176, 0.55) 100%)*/ /*This was causing hard line in the middle*/
        rgba(58, 175, 212, 0.55) 100%);
    background-size: 200% 100%;
    border-radius: 20px;
    color: var(--text-primary);
    font-weight: 400;
    font-size: 15px;
    font-style: italic;
    animation: fadeIn 0.3s ease;
    margin-left: 0;  /* Ensure it's aligned left like assistant messages */
    width: fit-content;  /* Make it only as wide as needed */
    max-width: 600px;  /* Match message-bubble max-width */
}

.status-text {
    color: var(--text-primary);
    font-style: italic;
}

.animated-dots {
    color: var(--text-primary);
    margin-left: 2px;
    font-style: italic;
    display: inline-block;
    min-width: 15px;
    text-align: left;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes tooltipFadeOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
}

/* Interactive Message Card - matches business card style */
.interactive-msg-card-wrapper {
    max-width: 900px;
    margin: 10px 0;
    position: relative;
    background: linear-gradient(135deg, #3AAFD4, rgba(212, 168, 58, 0.5));
    padding: 1px;
    border-radius: 30px;
}

.interactive-msg-card {
    background: var(--bg-card);
    border-radius: 29px;
    padding: 24px;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    overflow: hidden;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.interactive-msg-card .card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn-card-primary {
    background: linear-gradient(135deg, #3AAFD4 0%, #34A0C4 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(58, 175, 212, 0.25);
    border-radius: 15px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    white-space: nowrap;
}

.btn-card-primary:hover {
    background: linear-gradient(135deg, #34A0C4 0%, #2E96B8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 175, 212, 0.35);
}

.btn-card-secondary {
    background: linear-gradient(135deg, #4B5563 0%, #444B55 100%);
    color: #F3F4F6;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(75, 85, 99, 0.25);
    border-radius: 15px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    white-space: nowrap;
}

.btn-card-secondary:hover {
    background: linear-gradient(135deg, #444B55 0%, #3A4149 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 85, 99, 0.35);
}

.btn-card-primary-lg {
    padding: 20px 50px;
    font-size: 18px;
    font-weight: bold;
}

.card-actions-centered {
    justify-content: center;
}

.interactive-msg-card-wrapper-full {
    width: 100%;
}

.interactive-msg-card-wrapper-spaced {
    margin-top: 40px;
}

.interactive-msg-card-wrapper-fade-in {
    margin: 20px 0;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.btn-card-primary:disabled,
.btn-card-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Business Card - Verification Box */
.business-card-wrapper {
    max-width: 900px;
    margin: 10px 0;
    position: relative;
    background: linear-gradient(135deg, #3AAFD4, rgba(212, 168, 58, 0.5));
    padding: 1px;
    border-radius: 30px;
}

.business-card {
    background: var(--bg-card);
    border-radius: 29px;  /* Slightly smaller to show the gradient border */
    padding: 24px;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;  /* Ensure gradient bar is clipped within bounds */
    /* Gradient border - controllable width and opacity */
    --gradient-border-width: 4px;
    --gradient-border-opacity: 1;
}

/* Left gradient bar accent — disabled */
.business-card::before {
    display: none;
}

.business-card h3 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 400;  /* Normal weight, strong tag handles bold */
    margin-bottom: 16px;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.business-card h3 strong {
    font-weight: 600;
}

/* Suggested name hint when fuzzy match fails */
.suggested-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    font-style: italic;
}

.suggested-name strong {
    font-weight: 500;
    color: var(--text-tertiary);
}

/* Business Info Section */
.business-info {
    margin-bottom: 16px;
}

/* Type and Location on same line with icons */
.business-info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.business-info-icon {
    font-size: 14px;
    opacity: 0.6;
    filter: grayscale(100%);
}

.business-info-separator {
    color: var(--text-muted);
    opacity: 0.5;
    margin: 0 4px;
}

.business-info-item {
    margin-bottom: 12px;
}

.business-info-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.business-info-value {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.business-info-description {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* Platform Badges */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 20px;
}

.social-link {
    background: var(--bg-social-link);
    color: var(--text-gray-medium);
    padding: 6px 12px;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.social-link:hover {
    background: var(--bg-social-link-hover);
    color: var(--text-muted-light);
}

/* Confirmation Question */
.confirmation-question {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 400;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.btn-confirm {
    background: linear-gradient(135deg, #3AAFD4 0%, #34A0C4 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(58, 175, 212, 0.25);
    border-radius: 15px;
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #34A0C4 0%, #2E96B8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 175, 212, 0.35);
}

.btn-edit {
    background: linear-gradient(135deg, #4B5563 0%, #444B55 100%);
    color: #F3F4F6;
    box-shadow: 0 4px 14px rgba(75, 85, 99, 0.25);
    border-radius: 15px;
}

.btn-edit-no {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted-light);
}

.btn-edit-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted-light);
    opacity: 0.9;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #444B55 0%, #3A4149 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 85, 99, 0.35);
}

/* Chat Input */
.chat-input-container {
    padding: 20px var(--chat-right-gutter) 20px 30px;
    background: linear-gradient(to top, var(--bg-chat) 0%, var(--bg-chat) 40%, transparent 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    margin-bottom: var(--sidebar-gap-bottom);
    pointer-events: none;
}

.chat-input-wrapper {
    pointer-events: auto;
    position: relative;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding: 0;
    background: transparent;
    border-radius: 30px;
    width: 100%;
}

.chat-input-left-buttons {
    display: none;
}

.plus-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 0;
    background: none;
    border: none;
    color: #3AAFD4;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plus-btn:hover,
.plus-btn.active {
    background: none;
    transform: translateY(-50%) rotate(45deg);
}

.plus-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.plus-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 8px;
    z-index: 100;
    background: var(--bg-dropdown, rgba(26, 26, 30, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    min-width: 170px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.plus-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.plus-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.plus-option:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
}

.plus-option svg {
    flex-shrink: 0;
}

.light-mode .plus-popup {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.light-mode .plus-option {
    color: rgba(0, 0, 0, 0.75);
}

.light-mode .plus-option:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
}

.chat-input-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(90deg, #1A7A9E 0%, #4ADE80 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.chat-input-wrapper:focus-within::before {
    opacity: 1;
}

.chat-input {
    flex: 1;
    background: var(--bg-input);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-radius: 30px;
    color: var(--text-primary);
    padding: 18px 60px 18px 50px;
    font-size: 16px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    outline: none;
    transition: background 0.3s ease;
    resize: none;
    min-height: 56px;
    max-height: 150px;
    overflow-y: auto;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    box-shadow: none;
}

.chat-input::placeholder {
    color: var(--text-secondary);
}

.chat-input:focus {
    border-color: transparent;
}

/* Custom scrollbar for textarea */
.chat-input::-webkit-scrollbar {
    width: 6px;
}

.chat-input::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 3px;
}

.chat-input::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

.chat-input::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.chat-send-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-purple);
    border: none;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.chat-send-btn:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.05);
}

.chat-send-btn:disabled {
    background: var(--accent-purple);
    cursor: not-allowed;
    opacity: 0.4;
    transform: translateY(-50%);
}

/* Attachment Button */
.attachment-btn {
    position: relative;
    left: auto;
    bottom: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--border-stronger);
    flex-shrink: 0;
    color: var(--text-secondary);
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.attachment-btn:disabled {
    opacity: 0.5;
}

.attachment-btn:not(:disabled):hover {
    border-color: var(--border-strongest);
    color: var(--text-tertiary);
    background: var(--bg-hover-medium);
}

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

/* Score Display */
/* Score Box with Score Breakdown styling wrapper */
.score-box-wrapper {
    background: rgba(255, 255, 255, 0.06);
    padding: 16px;
    border-radius: 12px;
    border: none;
    margin: 20px 0;
}

.score-box {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding: 20px;
    border-radius: 8px;
    margin: 0;
    text-align: center;
    width: 100%;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Performance-based classes for score-box */
.score-box.performance-good {
    --gradient-primary-color: var(--gradient-primary-good);
}

.score-box.performance-medium {
    --gradient-primary-color: var(--gradient-primary-medium);
}

.score-box.performance-bad {
    --gradient-primary-color: var(--gradient-primary-bad);
}

/* Score box text elements matching verification card style */
.score-box h3 {
    color: var(--text-primary);
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-weight: 600;  /* Semi-bold like verification card */
}

.score-box p {
    color: var(--text-muted-light);
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-weight: 400;
}

.score-breakdown {
    background: rgba(255, 255, 255, 0.06);
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
    border: none;
}

.metric-box {
    background: var(--bg-metric-box);
    color: var(--text-tertiary);
    padding: 12px;
    border-radius: 6px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    border: 1px solid var(--border-metric);
}

/* Metric box text elements matching verification card style */
.metric-box .metric-name {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.metric-box .metric-value {
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 400;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.metric-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.metric-indicator.good {
    background: #4ADE80;
}

.metric-indicator.medium {
    background: #FBBF24;
}

.metric-indicator.bad {
    background: #F87171;
}

/* Analysis Sections */
.analysis-section {
    margin: 40px 0;
    padding: 20px;
    padding-left: calc(20px + var(--gradient-bar-width) + 10px);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted-light);
    width: 100%;  /* Full width within the wrapper */
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Performance Gradient Bar for Analysis Sections */
.analysis-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--gradient-bar-width);
    background: linear-gradient(
        180deg,
        var(--gradient-primary-color, var(--gradient-primary-medium)) 0%,
        var(--gradient-primary-color, var(--gradient-primary-medium)) 60%,
        var(--gradient-secondary) 100%
    );
    opacity: var(--gradient-opacity);
    box-shadow: 
        0 0 var(--gradient-glow-radius) var(--gradient-primary-color, var(--gradient-primary-medium)),
        inset 1px 0 2px var(--gradient-bar-highlight);
}

/* Performance-based classes for analysis sections */
.analysis-section.performance-good {
    --gradient-primary-color: var(--gradient-primary-good);
}

.analysis-section.performance-medium {
    --gradient-primary-color: var(--gradient-primary-medium);
}

.analysis-section.performance-bad {
    --gradient-primary-color: var(--gradient-primary-bad);
}

/* Special gradient for Technical Analysis based on metrics count */
.technical-analysis::before {
    background: var(--technical-gradient, linear-gradient(
        180deg,
        var(--gradient-primary-color, var(--gradient-primary-medium)) 0%,
        var(--gradient-primary-color, var(--gradient-primary-medium)) 60%,
        var(--gradient-secondary) 100%
    )) !important;
}

/* Analysis section text elements matching verification card style */
.analysis-section h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;  /* Semi-bold */
    margin-bottom: 16px;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.analysis-section h4 {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.analysis-section p {
    color: var(--text-muted-light);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.analysis-section ul {
    color: var(--text-muted-light);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.analysis-section li {
    color: var(--text-muted-light);
    margin-bottom: 8px;
}

.analysis-section strong {
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Evaluation Item Styles for Vertical Status Bars */
.evaluation-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-left: 16px;
    position: relative;
}

.evaluation-item:last-child {
    margin-bottom: 0;
}

/* Vertical color bar */
.evaluation-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
}

.evaluation-item.status-pass::before {
    background: #4ADE80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.evaluation-item.status-fail::before {
    background: #F87171;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.evaluation-item.status-warning::before {
    background: #FBBF24;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.evaluation-item.status-caution::before {
    background: #FBBF24;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
}

.item-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-tertiary);
}

.item-label {
    font-weight: 500;
    color: var(--text-primary);
}

.item-value {
    color: var(--text-item-value);
}

/* Enhanced hover effect with floating motion */
.evaluation-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease, padding-left 0.4s ease;
}

.evaluation-item:hover {
    padding-left: 20px;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Make the vertical bar move with the item */
.evaluation-item:hover::before {
    transform: translateY(-2px);
    transition: transform 0.4s ease;
}

/* Remove vertical bars specifically in Visual Assessment section */
.visual-assessment .evaluation-item::before {
    display: none;
}

/* Also remove the left padding that was accommodating the bar */
.visual-assessment .evaluation-item {
    padding-left: 12px;
}

.local-visibility {
    background: rgba(255, 255, 255, 0.06);
    padding: 16px;
    border-radius: 8px;
}

.first-impression {
    background: rgba(255, 255, 255, 0.06);
}

.findability-seo {
    background: rgba(255, 255, 255, 0.06);
    padding: 16px;
    border-radius: 8px;
}

.issues-section {
    background: rgba(255, 255, 255, 0.06);
    border-left: 4px solid var(--accent-red);
}

/* LOCAL COMPETITORS section - neutral purple theme */
.local-competitors-section {
    background: transparent;
    padding: 0;
    border-radius: 14px;
    margin: 20px 0;
    color: var(--text-muted-light);
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    position: relative;
}

.local-competitors-section h4 {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.local-competitors-section .competitor-item {
    background: #1A1A1E;
    padding: 14px 18px;
    margin: 0 0 8px 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
}

.local-competitors-section .competitor-item:hover {
    transform: none;
    box-shadow: none;
    background: #242429;
    border-color: rgba(58, 175, 212, 0.2);
}

.local-competitors-section .competitor-item span {
    color: var(--text-muted-light);
}

.local-competitors-section .competitor-item .rating-info {
    color: rgba(255, 255, 255, 0.5);
}

/* Top searched sentences section with dynamic performance */
.visibility-check-section {
    background: rgba(255, 255, 255, 0.06);
    padding: 16px;
    padding-left: calc(16px + var(--gradient-bar-width) + 10px);
    border-radius: 12px;
    border: none;
    margin: 20px 0;
    color: var(--text-muted-light);
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Performance Gradient Bar for Visibility Check Section */
.visibility-check-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--gradient-bar-width);
    background: linear-gradient(
        180deg,
        var(--gradient-primary-color, var(--gradient-primary-medium)) 0%,
        var(--gradient-primary-color, var(--gradient-primary-medium)) 60%,
        var(--gradient-secondary) 100%
    );
    opacity: var(--gradient-opacity);
    box-shadow: 
        0 0 var(--gradient-glow-radius) var(--gradient-primary-color, var(--gradient-primary-medium)),
        inset 1px 0 2px var(--gradient-bar-highlight);
}

/* Performance-based classes for visibility check section */
.visibility-check-section.performance-good {
    --gradient-primary-color: var(--gradient-primary-good);
}

.visibility-check-section.performance-medium {
    --gradient-primary-color: var(--gradient-primary-medium);
}

.visibility-check-section.performance-bad {
    --gradient-primary-color: var(--gradient-primary-bad);
}

/* Orange gradient for 4 yes's */
.visibility-check-section.performance-orange {
    --gradient-primary-color: #FB923C;  /* Orange color */
}

.status-good {
    color: var(--accent-green-button);
    font-weight: 500;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.status-bad {
    color: var(--accent-red);
    font-weight: 500;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.website-link {
    color: var(--text-tertiary);
    text-decoration: underline;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.website-link:hover {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --sidebar-gap-top: 0;
        --sidebar-gap-bottom: 0;
        --sidebar-gap-left: 0;
        --sidebar-width: 280px;
        --sidebar-border-radius: 0;
        --chat-right-gutter: 220px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        left: 10px;
        top: 10px;
    }
    
    .chat-main {
        margin-left: 0;
    }
    
    .chat-input-container {
        margin-bottom: 0;
    }
    
    .chat-input-container::before {
        left: 20px;
        right: 20px;
    }
    
    .header-nav {
        gap: 20px;
    }
    
    .logo-text {
        font-size: 36px;
    }
    
    .input-wrapper {
        margin: 0 20px;
    }
    
    .home-user-menu {
        top: 15px;
        right: 20px;
    }
}

/* ===================================
   EVALUATION REPORT BUTTON HOVER EFFECTS
   =================================== */

/* Minimalist Icon Buttons (Download & Share) */
.icon-btn {
    position: relative;
    transform: translateY(0);
}

.icon-btn:hover {
    background: var(--icon-btn-hover-bg) !important;
    border-color: var(--icon-btn-hover-border) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--icon-btn-hover-shadow);
}

.icon-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px var(--icon-btn-active-shadow);
}

/* Next Button Hover Effect */
.next-btn {
    position: relative;
    transform: translateY(0);
    border-radius: 15px;  /* Match YES button radius */
}

.next-btn:hover {
    background: linear-gradient(135deg, #34A0C4 0%, #2E96B8 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(58, 175, 212, 0.4) !important;
}

.next-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(58, 175, 212, 0.3) !important;
}

.next-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--btn-shine-overlay), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.next-btn:hover::before {
    opacity: 1;
}

/* ===================================
   PROCESSING WARNING MODAL
   =================================== */

.processing-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.processing-warning-modal {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.processing-warning-content {
    margin-bottom: 20px;
}

.processing-warning-content p {
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.processing-warning-subtext {
    color: var(--text-secondary) !important;
    font-size: 14px !important;
    margin-top: 12px !important;
}

.processing-warning-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-warning-cancel,
.btn-warning-confirm {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-warning-cancel {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-warning-cancel:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-warning-confirm {
    background: linear-gradient(135deg, #3AAFD4, #1A7A9E);
    color: white;
}

.btn-warning-confirm:hover {
    background: linear-gradient(135deg, #3AAFD4, #3AAFD4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(58, 175, 212, 0.3);
}

/* ============================================
   MAYBE LATER BUTTON STYLES
   ============================================ */
.btn-maybe-later {
  background: linear-gradient(135deg, #4B5563 0%, #444B55 100%);
  color: #F3F4F6;
  border: none;
  padding: 12px 24px;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(75, 85, 99, 0.25);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.btn-maybe-later:hover {
  background: linear-gradient(135deg, #444B55 0%, #3A4149 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(75, 85, 99, 0.35);
}

.btn-maybe-later:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-show-possible:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   ENHANCED SPHERE ANIMATION STYLES
   ============================================ */

/* Sphere particle highlighted state */
.sphere-particle-highlighted {
    animation: particleGlow 2s ease-in-out infinite;
}

/* Pulsing glow animation for highlighted particles */
@keyframes particleGlow {
    0%, 100% {
        filter: brightness(1);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        filter: brightness(1.3);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Enhanced sphere container */
.enhanced-sphere-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Sphere wrapper */
.enhanced-sphere-wrapper {
    position: relative;
}

/* Individual sphere particle */
.sphere-particle {
    position: absolute;
    border-radius: 50%;
    transition: all 0.3s ease;
    will-change: transform, left, top, width, height, opacity, box-shadow;
}

/* Data strip container */
.data-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(58, 175, 212, 0.2);
    min-height: 70px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(58, 175, 212, 0.3) transparent;
}

/* Webkit scrollbar styling for data strip */
.data-strip::-webkit-scrollbar {
    height: 4px;
}

.data-strip::-webkit-scrollbar-track {
    background: transparent;
}

.data-strip::-webkit-scrollbar-thumb {
    background: rgba(58, 175, 212, 0.3);
    border-radius: 2px;
}

.data-strip::-webkit-scrollbar-thumb:hover {
    background: rgba(58, 175, 212, 0.5);
}

/* Data strip item */
.data-strip-item {
    flex-shrink: 0;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Pop-in animation for data items (if not already defined) */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Stage color indicators */
.stage-indicator-purple { background: #5ECAF0; box-shadow: 0 0 6px #5ECAF0; }
.stage-indicator-bright-purple { background: #3AAFD4; box-shadow: 0 0 6px #3AAFD4; }
.stage-indicator-blue { background: #3AAFD4; box-shadow: 0 0 6px #3AAFD4; }
.stage-indicator-amber { background: #FBBF24; box-shadow: 0 0 6px #FBBF24; }
.stage-indicator-red { background: #F87171; box-shadow: 0 0 6px #F87171; }

/* Enhanced sphere status text */
.enhanced-sphere-status {
    color: #5ECAF0;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    min-height: 24px;
}

/* ============================================
   STICKY SIDE SPHERE ANIMATION
   Fixed position on right side of 900px report
   ============================================ */

.sticky-sphere-container {
    position: fixed;
    /* Position from right edge of 900px centered report to screen edge */
    left: calc(50% + 470px); /* 450px (half of 900) + 20px gap */
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    z-index: 900; /* High within .container stacking context, but dropdown at 10001 will overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
    isolation: isolate;
}

/* Canvas element needs pointer-events for drag interaction */
.sticky-sphere-container canvas {
    pointer-events: auto;
    max-width: 100%;
    height: auto;
    will-change: contents;
    transform: translateZ(0);
    backface-visibility: hidden;
    isolation: isolate;
}

/* Sphere wrapper - sized dynamically to container */
.sticky-sphere-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status text below sticky sphere */
.sticky-sphere-status {
    color: #3AAFD4;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
    margin-top: 16px;
    text-shadow: 0 0 10px rgba(58, 175, 212, 0.3);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 0 10px;
    line-height: 1.4;
}

/* Hidden state - fade out */
.sticky-sphere-container.hidden {
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    pointer-events: none;
}

/* Completely removed after animation */
.sticky-sphere-container.removed {
    display: none !important;
}

/* Responsive: Scale down on smaller screens instead of hiding */
@media (max-width: 1200px) {
    .sticky-sphere-container {
        /* Keep right-side positioning, just make it smaller */
        left: auto;
        right: 20px;
        width: 250px;
        max-width: 250px;
        /* Preserve vertical centering transform, add scale */
        transform: translateY(-50%) scale(0.7);
    }
    
    .sticky-sphere-container .sticky-sphere-status {
        font-size: 11px;
        max-width: 220px;
    }
}

/* Smaller screens - keep same position, smaller scale */
@media (max-width: 900px) {
    .sticky-sphere-container {
        right: 15px;
        width: 180px;
        max-width: 180px;
        transform: translateY(-50%) scale(0.5);
    }
    
    .sticky-sphere-container .sticky-sphere-status {
        font-size: 9px;
        max-width: 160px;
    }
}

/* Mobile screens - hide fixed sphere, use inline indicator instead */
@media (max-width: 768px) {
    .sticky-sphere-container:not(.mobile-inline-sphere-mode) {
        display: none !important;
    }
}

/* For very wide screens, cap the sphere position */
@media (min-width: 1800px) {
    .sticky-sphere-container {
        left: auto;
        right: 40px;
        width: 500px;
    }
}

/* ============================================
   30-DAY CONTENT CALENDAR
   Dark glassmorphism theme with platform colors
   ============================================ */

.content-calendar-container {
    width: 100%;
    max-width: 900px;
    margin: 30px 0;
    opacity: 0;
    animation: calendarFadeIn 0.6s ease forwards;
}

@keyframes calendarFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-calendar-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 11, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(58, 175, 212, 0.1);
    overflow: hidden;
}

/* Calendar Header */
.calendar-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    background: linear-gradient(to bottom, rgba(26, 26, 30, 0.5), transparent);
}

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

.calendar-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-icon-wrapper {
    padding: 8px;
    background: rgba(58, 175, 212, 0.2);
    border-radius: 12px;
}

.calendar-icon-wrapper svg {
    width: 20px;
    height: 20px;
    color: #5ECAF0;
}

.calendar-month-title {
    color: #F1F5F9;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.calendar-nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-nav-btn {
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #94A3B8;
}

.calendar-nav-btn:hover {
    background: rgba(71, 85, 105, 0.5);
    color: #F1F5F9;
}

.calendar-nav-btn svg {
    width: 20px;
    height: 20px;
}

.calendar-today-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #94A3B8;
    font-size: 14px;
}

.calendar-today-btn:hover {
    background: rgba(71, 85, 105, 0.5);
    color: #F1F5F9;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot-post {
    background: rgba(74, 222, 128, 0.3);
    border: 1px solid rgba(74, 222, 128, 0.5);
}

.legend-dot-nopost {
    background: rgba(244, 63, 94, 0.3);
    border: 1px solid rgba(244, 63, 94, 0.5);
}

.legend-dot-today {
    background: rgba(58, 175, 212, 0.3);
    border: 2px solid rgba(58, 175, 212, 0.6);
}

.legend-text {
    color: #94A3B8;
    font-size: 13px;
}

/* Calendar Grid */
.calendar-grid-wrapper {
    padding: 24px;
}

/* Week day headers */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 12px;
}

.calendar-weekday {
    text-align: center;
    padding: 8px 0;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Calendar days grid */
.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(71, 85, 105, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

/* Individual day cell */
.calendar-day-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    background: rgba(10, 10, 11, 0.9);
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 80px;
}

.calendar-day-cell:hover {
    background: rgba(26, 26, 30, 0.7);
}

.calendar-day-cell.empty {
    cursor: default;
}

.calendar-day-cell.empty:hover {
    background: rgba(10, 10, 11, 0.9);
}

/* Clickable days with posts - enhanced hover effect */
.calendar-day-cell.clickable.has-post {
    cursor: pointer;
    transition: all 0.2s ease, transform 0.15s ease;
}

.calendar-day-cell.clickable.has-post:hover {
    background: rgba(58, 175, 212, 0.15);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(58, 175, 212, 0.2);
}

/* Today highlight */
.calendar-day-cell.is-today {
    background: linear-gradient(135deg, rgba(58, 175, 212, 0.3), rgba(58, 175, 212, 0.3));
}

.calendar-day-cell.is-today:hover {
    background: linear-gradient(135deg, rgba(58, 175, 212, 0.4), rgba(58, 175, 212, 0.4));
}

.calendar-day-cell.is-today::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(58, 175, 212, 0.5);
    pointer-events: none;
    animation: todayPulse 2s ease-in-out infinite;
}

@keyframes todayPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Day content wrapper */
.calendar-day-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8px;
}

/* Date number */
.calendar-day-number {
    font-size: 14px;
    font-weight: 500;
    color: #F0F0F2;
    margin-bottom: 4px;
}

.calendar-day-cell.is-today .calendar-day-number {
    color: #5ECAF0;
}

.calendar-day-cell.empty .calendar-day-number {
    color: #475569;
}

/* Post/No-Post indicator */
.calendar-day-tag {
    margin-top: auto;
    width: 100%;
}

.calendar-post-tag {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-post-tag.has-post {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #4ADE80;
}

.calendar-post-tag.no-post {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: #FB7185;
}

/* Platform tags */
.calendar-platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
}

.calendar-platform-tag {
    font-size: 8px;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Platform-specific colors */
.platform-facebook {
    background: rgba(24, 119, 242, 0.15);
    color: #1877F2;
    border: 1px solid rgba(24, 119, 242, 0.3);
}

.platform-instagram {
    background: linear-gradient(45deg, 
        rgba(254, 218, 117, 0.15), 
        rgba(250, 126, 30, 0.15), 
        rgba(214, 41, 118, 0.15), 
        rgba(150, 47, 191, 0.15), 
        rgba(79, 91, 213, 0.15)
    );
    color: #D62976;
    border: 1px solid rgba(214, 41, 118, 0.4);
    background-size: 200% 200%;
}

.platform-linkedin {
    background: rgba(10, 102, 194, 0.15);
    color: #0A66C2;
    border: 1px solid rgba(10, 102, 194, 0.3);
}

.platform-tiktok {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.platform-twitter {
    background: rgba(29, 161, 242, 0.15);
    color: #1DA1F2;
    border: 1px solid rgba(29, 161, 242, 0.3);
}

.platform-youtube {
    background: rgba(255, 0, 0, 0.15);
    color: #FF0000;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.platform-pinterest {
    background: rgba(230, 0, 35, 0.15);
    color: #E60023;
    border: 1px solid rgba(230, 0, 35, 0.3);
}

.platform-google {
    background: rgba(66, 133, 244, 0.15);
    color: #4285F4;
    border: 1px solid rgba(66, 133, 244, 0.3);
}

/* Holiday indicator */
.calendar-holiday-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Calendar Footer Stats */
.calendar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    background: linear-gradient(to top, rgba(26, 26, 30, 0.5), transparent);
}

.calendar-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
}

.calendar-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-stat-value {
    font-size: 28px;
    font-weight: 600;
}

.calendar-stat-value.stat-posts {
    color: #4ADE80;
}

.calendar-stat-value.stat-noposts {
    color: #FB7185;
}

.calendar-stat-value.stat-unplanned {
    color: #5ECAF0;
}

.calendar-stat-label {
    font-size: 12px;
    color: #94A3B8;
}

/* Calendar loading state */
.calendar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 16px;
}

.calendar-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(58, 175, 212, 0.2);
    border-top-color: #5ECAF0;
    border-radius: 50%;
    animation: calendarSpin 1s linear infinite;
}

@keyframes calendarSpin {
    to { transform: rotate(360deg); }
}

.calendar-loading-text {
    color: #5ECAF0;
    font-size: 14px;
    font-weight: 500;
}

/* Calendar day cell animation on load */
.calendar-day-cell {
    opacity: 0;
    animation: calendarDayFadeIn 0.3s ease forwards;
}

@keyframes calendarDayFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-day-cell {
        min-height: 60px;
    }
    
    .calendar-day-number {
        font-size: 12px;
    }
    
    .calendar-post-tag {
        font-size: 8px;
        padding: 2px 4px;
    }
    
    .calendar-platform-tag {
        font-size: 6px;
        padding: 1px 3px;
    }
    
    .calendar-stats {
        gap: 20px;
    }
    
    .calendar-stat-value {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .calendar-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .calendar-legend {
        gap: 12px;
    }
    
    .calendar-platform-tags {
        display: none;
    }
}

/* ==========================================
   What's Possible Container (transparent background)
   ========================================== */
.whats-possible-container .subsection-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(58, 175, 212, 0.2);
}

/* ==========================================
   ws-opp-* and ws-event-* classes for What's Possible report
   (duplicated from workspace.css for use in main app context)
   ========================================== */
.ws-opp-section {
    margin-top: 0;
}
.ws-opp-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.ws-opp-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin: 0;
}
.ws-opp-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}
.ws-opp-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ws-opp-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.ws-opp-item:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.02);
}
.ws-opp-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    height: 52px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    flex-shrink: 0;
}
.ws-opp-date-month {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.3px;
    line-height: 1;
    margin-bottom: 2px;
}
.ws-opp-date-day {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.ws-opp-body {
    flex: 1;
    min-width: 0;
}
.ws-opp-name {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2px;
}
.ws-opp-name a,
.ws-opp-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.ws-opp-name a:hover,
.ws-opp-link:hover {
    color: #5ECAF0;
}
.ws-opp-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ws-opp-more {
    margin-top: 12px;
    color: #5ECAF0;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
}
.ws-opp-more:hover {
    color: #3AAFD4;
}
.ws-events-disclaimer {
    color: rgba(255,255,255,0.25);
    font-size: 12px;
    margin-top: 10px;
    font-style: italic;
}
.ws-event-expand-btn {
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
    margin-left: auto;
}
.ws-event-expand-btn:hover {
    background: rgba(255,255,255,0.14);
}
.ws-event-expand-btn svg {
    transition: transform 0.25s ease;
}
.ws-event-expand-btn-active svg {
    transform: rotate(180deg);
}
.ws-opp-item + .ws-event-detail-row {
    padding: 0;
    margin-top: -4px;
}
.ws-event-detail-panel {
    background: rgba(20,22,30,0.85);
    border-top: 1px solid rgba(58,175,212,0.1);
    padding: 20px 24px;
    animation: wsEventPanelSlide 0.25s ease;
    border-radius: 0 0 12px 12px;
}
@keyframes wsEventPanelSlide {
    from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
    to { opacity: 1; max-height: 800px; }
}
.ws-event-detail-loading {
    padding: 8px 0;
}
.ws-event-shimmer-bar {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(58,175,212,0.08) 25%, rgba(58,175,212,0.15) 50%, rgba(58,175,212,0.08) 75%);
    background-size: 200% 100%;
    animation: wsShimmerMove 1.4s infinite;
    margin-bottom: 12px;
    width: 100%;
}
.ws-event-shimmer-short { width: 55%; }
.ws-event-shimmer-medium { width: 80%; }
@keyframes wsShimmerMove {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.ws-event-detail-error {
    color: #F87171;
    font-size: 13px;
    padding: 12px 0;
}
.ws-event-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ws-event-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255,255,255,0.45);
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ws-event-tab:first-child {
    padding-left: 0;
}
.ws-event-tab:hover {
    color: rgba(255,255,255,0.7);
}
.ws-event-tab-active {
    color: #5ECAF0;
    border-bottom-color: #5ECAF0;
}
.ws-event-tab-content {
    display: none;
}
.ws-event-tab-content-active {
    display: block;
}

/* ==========================================
   Embedded Calendar Styles (Smaller Size)
   ========================================== */
.embedded-calendar {
    width: 100%;
}

/* Calendar subsection specific styles */
.calendar-subsection {
    overflow: visible;
}

.calendar-subsection .embedded-calendar {
    margin-top: 10px;
}

/* Workspace-style calendar classes (used by both report and workspace calendars) */
.ws-calendar-embedded {
    width: 100%;
}
.ws-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.ws-cal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
.ws-cal-title svg {
    color: #3AAFD4;
    opacity: 0.8;
}
.ws-cal-cell.is-past .ws-cal-day-num {
    opacity: 0.35;
}
.ws-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 2px;
}
.ws-cal-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.3px;
    padding: 6px 0;
}
.ws-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.ws-cal-cell {
    aspect-ratio: 1;
    background: #1A1A1E;
    border: 1px solid rgba(58,175,212,0.1);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}
.ws-cal-cell.empty {
    background: transparent;
    border-color: transparent;
}
.ws-cal-cell.is-today {
    border-color: rgba(58,175,212,0.5);
    box-shadow: 0 0 8px rgba(58,175,212,0.2);
}
.ws-cal-cell.has-post {
    background: rgba(58,175,212,0.08);
    border-color: rgba(58,175,212,0.25);
    cursor: pointer;
}
.ws-cal-cell.has-post:hover {
    background: rgba(58,175,212,0.15);
    border-color: rgba(58,175,212,0.4);
}
.ws-cal-day-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding: 3px 2px;
    position: relative;
}
.ws-cal-day-num {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}
.ws-cal-tags {
    position: absolute;
    bottom: 1px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.ws-cal-tag {
    font-size: 9px;
    font-weight: 600;
    color: #fff;
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
    max-width: 92%;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #3AAFD4;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
}
.ws-cal-tag-posted {
    background: #22c55e;
}
.ws-cal-tag-holiday {
    background: #A855F7;
}
.ws-cal-tag-event {
    background: #F59E0B;
}
.ws-cal-tag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 2px;
}
.ws-cal-tag-icon .platform-icon {
    width: 9px;
    height: 9px;
    fill: white;
}
.ws-cal-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.ws-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
}
.ws-cal-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ws-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.ws-cal-nav-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ws-cal-nav-btn:hover {
    border-color: rgba(58,175,212,0.4);
    color: #5ECAF0;
}
.ws-cal-footer {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(58,175,212,0.7);
}

@media (max-width: 768px) {
    .ws-cal-cell {
        border-radius: 4px;
    }
    .ws-cal-day-num {
        font-size: 11px;
    }
    .ws-cal-tag {
        font-size: 7px;
        padding: 1px 3px;
    }
    .ws-cal-tag-icon .platform-icon {
        width: 7px;
        height: 7px;
    }
    .ws-cal-weekday {
        font-size: 9px;
    }
    .ws-cal-footer {
        font-size: 12px;
    }
    .calendar-month-label {
        font-size: 6px;
    }
}

/* Month label in rolling calendar */
.calendar-month-label {
    font-size: 8px;
    color: #3AAFD4;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 1px;
}

/* ================================================
   YOUR REACH POTENTIAL - Neural Map Visualization
   ================================================ */

.reach-potential-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1d24;
}

.reach-potential-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #1a1d24;
}

.reach-potential-map .leaflet-container {
    background: #1a1d24 !important;
}

/* Lighten dark tiles slightly for dark grey appearance */
.reach-potential-map .leaflet-tile-pane {
    filter: brightness(1.3) contrast(0.95);
}

.reach-neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Business marker pane must be above the canvas overlay */
.reach-potential-container .leaflet-marker-pane {
    z-index: 600 !important;
}

.reach-potential-container .leaflet-popup-pane {
    z-index: 700 !important;
}

.reach-potential-container .leaflet-tooltip-pane {
    z-index: 700 !important;
}

/* Light mode reach map - use light backgrounds and remove dark filter */
.light-mode-map .reach-neural-canvas,
.reach-potential-container.light-mode-map .reach-neural-canvas {
    mix-blend-mode: multiply;
}

.light-mode-map,
.reach-potential-container.light-mode-map {
    background: #f0f2f5;
}

.light-mode-map .reach-potential-map {
    background: #f0f2f5;
}

.light-mode-map .reach-potential-map .leaflet-container {
    background: #f0f2f5 !important;
}

.light-mode-map .reach-potential-map .leaflet-tile-pane {
    filter: none;
}

.light-mode-map .reach-info-bar {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode-map .reach-info-bar .info-label {
    color: #64748b;
}

.light-mode-map .reach-info-bar .info-value {
    color: #1A1A1E;
}

/* Business Info Bar (below map) */
.reach-business-info-bar {
    background: rgba(20, 22, 28, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 28px;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.reach-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}


.reach-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reach-info-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.reach-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e8e8ec;
}

.reach-info-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
}

/* Legacy support for old card layout */
.reach-stats-card {
    display: none;
}

.reach-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reach-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Outfit', 'Manrope', sans-serif;
}

.reach-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    font-family: 'Outfit', 'Manrope', sans-serif;
}

.reach-stat-value.highlight {
    color: #5ECAF0;
    text-shadow: 0 0 10px rgba(68, 170, 255, 0.3);
    transition: color 0.5s, text-shadow 0.5s;
}

.reach-stat-value.highlight.expanded {
    color: #4ADE80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

.reach-toggle-container {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 1000;
    background: rgba(15, 17, 21, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    min-width: 200px;
}

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

.rtp-section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
}

.rtp-pill-group {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
}

.rtp-pill-option {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.rtp-pill-option input {
    display: none;
}

.rtp-pill-label {
    display: block;
    text-align: center;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    color: rgba(255, 255, 255, 0.45);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.rtp-pill-option input:checked + .rtp-pill-label {
    background: rgba(58, 175, 212, 0.2);
    color: #5ECAF0;
    box-shadow: 0 0 8px rgba(58, 175, 212, 0.15);
}

.rtp-overlay-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
}

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

.rtp-overlay-label {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Manrope', sans-serif;
}

.ws-reach-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.ws-reach-stat-box {
    padding: 16px 18px;
    background: #1A1A1E;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    text-align: center;
}

.ws-reach-stat-box .ws-reach-stat-label-top {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: none;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.ws-reach-stat-box .ws-reach-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #F0F0F2;
    line-height: 1.2;
    margin-bottom: 4px;
}

.ws-reach-stat-box .ws-reach-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.35);
}

@media (max-width: 500px) {
    .ws-reach-summary-stats {
        grid-template-columns: 1fr;
    }
}

/* OSRM Attribution */
.osrm-attribution {
    position: absolute;
    bottom: 4px;
    right: 8px;
    z-index: 999;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Outfit', 'Manrope', sans-serif;
}

.osrm-attribution a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.osrm-attribution a:hover {
    color: #5ECAF0;
}

.light-mode-map .osrm-attribution {
    color: rgba(0, 0, 0, 0.5);
}

.light-mode-map .osrm-attribution a {
    color: rgba(0, 0, 0, 0.6);
}



.reach-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.reach-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.reach-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2d33;
    transition: 0.4s;
    border-radius: 24px;
}

.reach-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.reach-toggle-switch input:checked + .reach-toggle-slider {
    background-color: #4ADE80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
}

.reach-toggle-switch input:checked + .reach-toggle-slider:before {
    transform: translateX(20px);
}

/* Competitor toggle - red theme */
.reach-toggle-switch.competitor-switch input:checked + .competitor-slider {
    background-color: #FF6B6B;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.4);
}

/* Routes toggle - cyan theme */
.reach-toggle-switch.routes-switch input:checked + .routes-slider {
    background-color: #5ECAF0;
    box-shadow: 0 0 12px rgba(94, 202, 240, 0.4);
}


.reach-time-btn {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', 'Manrope', sans-serif;
}

.reach-time-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

.reach-time-btn.active {
    background: rgba(58, 175, 212, 0.3);
    border-color: #3AAFD4;
    color: #FFFFFF;
}

/* Map Style Toggle Button - Bottom Right */
.map-style-toggle {
    position: absolute;
    bottom: 70px;
    right: 20px;
    z-index: 1000;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.map-style-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    transform: none;
}

.map-style-toggle:active {
    transform: scale(0.95);
}

.map-style-toggle svg {
    width: 18px;
    height: 18px;
}

/* Adjust position in fullscreen mode */
.reach-potential-container.fullscreen .map-style-toggle {
    bottom: 90px;
    right: 30px;
}

/* Expand button */
.reach-expand-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.reach-expand-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    transform: none;
}

/* Fullscreen overlay - sits behind the fullscreen map */
.reach-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99990;
    cursor: pointer;
}

/* Fullscreen map container - sits above the overlay */
.reach-potential-container.reach-fullscreen {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw !important;
    height: 85vh !important;
    max-width: 1400px;
    z-index: 99999;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.reach-fullscreen .reach-expand-btn {
    background: rgba(239, 68, 68, 0.9);
    border-color: #F87171;
}

.reach-fullscreen .reach-expand-btn:hover {
    background: #F87171;
}

/* Purple pin marker for business */
.reach-business-marker-pin {
    filter: drop-shadow(0 4px 8px rgba(58, 175, 212, 0.6));
    animation: pinPulse 2s ease-in-out infinite;
}

@keyframes pinPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.reach-business-marker-wrapper {
    background: transparent !important;
    border: none !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
}

/* Ensure Leaflet marker pane is above canvas */
.leaflet-marker-pane {
    z-index: 650 !important;
}

.leaflet-pane.leaflet-marker-pane .reach-business-marker-wrapper {
    z-index: 10000 !important;
}

/* Red pin marker for competitors */
.reach-competitor-marker-pin {
    filter: drop-shadow(0 3px 6px rgba(255, 107, 107, 0.5));
}

.reach-competitor-marker-wrapper {
    background: transparent !important;
    border: none !important;
}

/* Legacy markers (hidden) */
.reach-business-marker {
    display: none;
}

.reach-competitor-marker {
    display: none;
}

.reach-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 13, 18, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    gap: 15px;
}

.reach-loading-text {
    color: #3AAFD4;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reach-potential-container {
        height: 400px;
    }
    
    .reach-stats-card {
        top: 10px;
        right: 10px;
        width: 180px;
        padding: 15px;
    }
    
    .reach-stat-label {
        font-size: 10px;
    }
    
    .reach-stat-value {
        font-size: 14px;
    }
    
    .reach-toggle-container {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .reach-legend {
        display: none;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* ========== TABLET & PHONE BREAKPOINT (768px) ========== */
@media (max-width: 768px) {
    
    /* === FOUNDATION & LAYOUT === */
    body {
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    .container {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    /* === NAVIGATION & HEADER === */
    .header-nav {
        top: 15px;
        gap: 15px;
        padding: 0 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-button {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .auth-buttons {
        position: relative;
        right: auto;
        margin: 10px auto 0;
        justify-content: center;
        width: 100%;
    }
    
    .auth-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .home-user-menu {
        top: 10px;
        right: 15px;
    }
    
    .user-avatar-btn {
        width: 36px;
        height: 36px;
    }
    
    .user-dropdown {
        width: 260px;
        right: -10px;
    }
    
    /* === HOME PAGE === */
    .landing-view {
        padding: 100px 20px 40px;
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 120px;
    }
    
    .logo {
        width: 280px;
        max-width: 80vw;
        margin-bottom: 20px;
    }
    
    .logo-text {
        font-size: 28px;
        letter-spacing: 4px;
    }
    
    .tagline {
        font-size: 14px;
        margin-bottom: 30px;
        padding: 0 10px;
        max-width: 100%;
    }
    
    .input-wrapper {
        max-width: 100%;
        margin: 0 15px;
        width: calc(100% - 30px);
    }
    
    .business-input {
        padding: 14px 50px 14px 18px;
        font-size: 14px;
    }
    
    .typing-text {
        left: 18px;
        font-size: 14px;
    }
    
    .send-btn {
        width: 38px;
        height: 38px;
        right: 4px;
    }
    
    /* Home Ribbon - disabled on mobile */
    .home-ribbon-trigger {
        width: 16px;
        pointer-events: none !important;
    }
    
    .home-ribbon {
        width: 10px;
    }
    
    .home-sidebar {
        width: 85vw;
        max-width: 300px;
    }
    
    /* === CHAT INTERFACE === */
    .chat-view {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }
    
    .sidebar {
        position: fixed;
        width: 85vw;
        max-width: 300px;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
        z-index: 1000;
        border-radius: 0 16px 16px 0;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Hidden sidebar class for mobile */
    .sidebar.sidebar-hidden {
        transform: translateX(-100%);
    }
    
    /* Mobile sidebar overlay */
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        z-index: 999;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .sidebar-toggle {
        display: flex !important;
        position: fixed;
        left: 15px;
        top: 15px;
        z-index: 1001;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: auto;
    }
    
    .sidebar-toggle::before {
        content: '←';
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: auto;
        background: none !important;
        box-shadow: none !important;
        font-size: 24px;
        font-weight: 300;
        color: var(--text-primary, #fff);
    }
    
    .sidebar.active + .sidebar-toggle::before {
        content: '\00d7';
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: auto;
        background: none !important;
        box-shadow: none !important;
        font-size: 28px;
        font-weight: 300;
        color: var(--text-primary, #fff);
    }
    
    /* Prevent body scroll when mobile sidebar is open */
    body.sidebar-open {
        overflow: hidden;
    }
    
    .canvas-panel {
        display: none;
    }

    .chat-main {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        flex: 1 !important;
        padding-top: 44px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        height: calc(100vh - 64px);
        height: calc(100dvh - 64px);
    }
    
    .chat-messages {
        padding: 8px 15px 80px 15px;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* SINGLE SCROLL CANVAS: Force all message content to flow in chat-messages scroll */
    .chat-messages .message,
    .chat-messages .message.user,
    .chat-messages .message.assistant,
    .chat-messages .message-bubble,
    .chat-messages .evaluation-container,
    .chat-messages .evaluation-content,
    .chat-messages .evaluation-wrapper,
    .chat-messages .business-card-wrapper,
    .chat-messages .business-card,
    .chat-messages .marketing-strategy-container,
    .chat-messages .social-media-content-container {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    .chat-messages::before {
        content: '';
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        height: 20px;
        background: linear-gradient(to bottom, var(--bg-primary, #0a0a0f), transparent);
        z-index: 5;
        pointer-events: none;
        display: block;
        margin: -8px -15px 0 -15px;
        flex-shrink: 0;
    }
    
    .message {
        max-width: 90%;
        padding: 12px 14px;
        font-size: 14px;
        word-break: break-word;
    }

    .message * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .evaluation-wrapper,
    .business-card-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .message table,
    .message pre,
    .message img {
        max-width: 100%;
        overflow-x: auto;
    }

    .pricing-card {
        max-width: 100%;
        box-sizing: border-box;
    }

    .pricing-cards {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .message.user {
        margin-left: 10%;
    }
    
    .message.assistant {
        margin-right: 0;
        max-width: 100%;
    }
    
    .chat-input-container {
        padding: 12px 15px;
        margin: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .chat-input-wrapper {
        position: relative;
        max-width: 100%;
    }
    
    .chat-input {
        padding: 12px 55px 12px 45px;
        font-size: 14px;
        min-height: 48px;
    }
    
    .chat-send-btn {
        width: 40px;
        height: 40px;
        right: 8px;
    }
    
    .attachment-btn {
        left: 10px;
        bottom: 12px;
        width: 32px;
        height: 32px;
    }
    
    /* Chat auth overlay */
    .chat-auth-overlay {
        display: none !important;
    }
    
    .chat-auth-buttons {
        gap: 8px;
    }
    
    /* === EVALUATION REPORTS === */
    .evaluation-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 10px 0;
    }
    
    .evaluation-background {
        padding: 15px;
        border-radius: 10px;
    }
    
    .score-box-wrapper {
        padding: 12px;
        margin: 15px 0;
    }
    
    .score-box {
        padding: 15px;
    }
    
    .score-box h3 {
        font-size: 18px;
    }
    
    .score-breakdown {
        padding: 12px;
        margin: 12px 0;
    }
    
    .metric-box {
        padding: 10px;
        margin: 6px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .metric-box .metric-name {
        font-size: 11px;
    }
    
    .metric-box .metric-value {
        font-size: 13px;
    }
    
    .analysis-section {
        margin: 25px 0;
        padding: 15px;
        padding-left: calc(15px + var(--gradient-bar-width) + 8px);
    }
    
    .analysis-section h3 {
        font-size: 17px;
        margin-bottom: 12px;
    }
    
    .analysis-section h4 {
        font-size: 11px;
    }
    
    .analysis-section p,
    .analysis-section li {
        font-size: 13px;
    }
    
    .evaluation-item {
        padding-left: 14px;
        margin-bottom: 12px;
    }
    
    .item-content {
        font-size: 14px;
    }
    
    /* Tables scroll horizontally on mobile */
    .analysis-section table,
    .score-breakdown table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    
    .visibility-check-section {
        padding: 12px;
        padding-left: calc(12px + var(--gradient-bar-width) + 8px);
    }
    
    .local-competitors-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .local-competitors-section h4 {
        font-size: 13px;
    }
    
    .local-competitors-section .competitor-item {
        padding: 8px;
        margin: 5px 0;
    }
    
    /* === NEURAL MAP (ENHANCED) === */
    .reach-toggle-container {
        padding: 10px 12px;
        gap: 10px;
        min-width: 180px;
        bottom: 8px;
        left: 8px;
    }
    
    .reach-expand-btn {
        width: 44px;
        height: 44px;
    }
    
    .map-style-toggle {
        width: 44px;
        height: 44px;
        bottom: 80px;
    }
    
    /* === MARKETING CONTENT === */
    .marketing-content {
        padding: 15px;
    }
    
    .marketing-grid,
    .social-grid,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-post-preview,
    .marketing-card {
        max-width: 100%;
    }
    
    .social-post-preview img,
    .marketing-card img {
        max-height: 200px;
        object-fit: cover;
    }
    
    /* === BUSINESS CARD === */
    .business-card-wrapper {
        max-width: 100%;
        min-width: 0 !important;
        width: 100% !important;
        margin: 10px 0;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .business-card {
        padding: 15px;
        overflow: visible;
    }
    
    .business-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* === SIGN IN PROMPT === */
    .signin-prompt-box {
        padding: 20px 25px;
        margin: 15px;
        max-width: calc(100vw - 30px);
    }
    
    .signin-prompt-text {
        font-size: 16px;
    }
    
    .signin-prompt-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .signin-prompt-btn {
        width: 100%;
        padding: 12px 24px;
    }
    
    /* === MODALS & OVERLAYS === */
    .processing-warning-modal {
        width: 95%;
        max-width: 360px;
        padding: 20px;
    }
    
    .processing-warning-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-warning-cancel,
    .btn-warning-confirm {
        width: 100%;
    }
    
    .screenshot-collage.desktop-collage .screenshot-collage-item img {
        object-fit: cover;
        object-position: top;
    }

    .phone-frame {
        max-width: 160px;
    }

    .mobile-screenshot {
        max-height: 200px;
    }
    
    /* === MOBILE CHAT BACK PANEL === */
    .mobile-chat-back-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 64px;
        width: 66.67vw;
        background: var(--bg-primary, #0a0a0f);
        z-index: 10004;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding-top: 20px;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .light-mode .mobile-chat-back-panel {
        background: #ffffff;
        border-right-color: rgba(0, 0, 0, 0.08);
    }
    
    .mobile-chat-back-panel.active {
        transform: translateX(0);
    }
    
    .mobile-chat-back-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 10003;
    }
    
    .mobile-chat-back-overlay.active {
        display: block;
    }
    
    .message.assistant .business-card-wrapper,
    .message.assistant .evaluation-wrapper {
        margin-left: auto;
        margin-right: auto;
    }

    .evaluation-wrapper,
    .marketing-content-container,
    .whats-possible-container,
    .comparison-container,
    .see-how-you-compare-container,
    .marketing-strategy-container,
    .social-media-content-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }

    .evaluation-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }

    .message.assistant {
        max-width: 100% !important;
    }

    .sticky-sphere-container.mobile-inline-sphere-mode {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 1 !important;
        margin: 4px 0 0 0;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 5px;
    }

    .sticky-sphere-container.mobile-inline-sphere-mode canvas {
        width: 120px !important;
        height: 120px !important;
    }

    .sticky-sphere-container.mobile-inline-sphere-mode .sphere-status-text {
        font-size: 13px;
        margin-top: 4px;
        text-align: left;
        padding-left: 10px;
    }

    .sticky-sphere-container.mobile-inline-sphere-mode.hidden {
        opacity: 0;
        transform: none !important;
    }
}

/* ========== SMALL PHONE BREAKPOINT (480px) ========== */
@media (max-width: 480px) {
    
    /* === FOUNDATION === */
    :root {
        --sidebar-width: 100vw;
    }
    
    /* === HEADER & NAV === */
    .header-nav {
        top: 10px;
        gap: 8px;
    }
    
    .nav-button {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .auth-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    /* === HOME PAGE === */
    .landing-view {
        padding: 80px 15px 30px;
    }
    
    .logo {
        width: 220px;
        margin-bottom: 15px;
    }
    
    .logo-text {
        font-size: 24px;
        letter-spacing: 3px;
    }
    
    .tagline {
        font-size: 13px;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    
    .input-wrapper {
        margin: 0 10px;
        width: calc(100% - 20px);
    }
    
    .business-input {
        padding: 12px 45px 12px 14px;
        font-size: 13px;
    }
    
    .typing-text {
        left: 14px;
        font-size: 13px;
    }
    
    .send-btn {
        width: 34px;
        height: 34px;
    }
    
    /* === SIDEBAR (Full width on small phones) === */
    .sidebar,
    .home-sidebar {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
    }
    
    .home-sidebar-content {
        padding: 20px 12px;
    }
    
    /* === CHAT === */
    .chat-messages {
        padding: 12px;
        padding-bottom: 90px;
    }
    
    .message {
        max-width: 95%;
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 14px;
    }
    
    .message.user {
        margin-left: 5%;
    }
    
    .message.assistant {
        margin-right: 0;
        max-width: 100%;
    }
    
    .chat-input-container {
        padding: 10px 12px;
    }
    
    .chat-input {
        padding: 10px 50px 10px 40px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .chat-send-btn {
        width: 36px;
        height: 36px;
    }
    
    .attachment-btn {
        width: 28px;
        height: 28px;
        left: 8px;
    }
    
    /* === EVALUATION REPORTS === */
    .evaluation-background {
        padding: 12px;
    }
    
    .score-box-wrapper {
        padding: 10px;
    }
    
    .score-box {
        padding: 12px;
    }
    
    .score-box h3 {
        font-size: 16px;
    }
    
    .score-breakdown {
        padding: 10px;
    }
    
    .metric-box {
        padding: 8px;
    }
    
    .analysis-section {
        margin: 20px 0;
        padding: 12px;
        padding-left: calc(12px + var(--gradient-bar-width) + 6px);
    }
    
    .analysis-section h3 {
        font-size: 15px;
    }
    
    .analysis-section p,
    .analysis-section li {
        font-size: 12px;
    }
    
    .evaluation-item {
        padding-left: 12px;
    }
    
    .item-content {
        font-size: 13px;
    }
    
    /* === NEURAL MAP === */
    .reach-potential-container {
        height: 350px;
    }
    
    .reach-stats-card {
        width: 160px;
        padding: 12px;
    }
    
    .reach-stat-label {
        font-size: 9px;
    }
    
    .reach-stat-value {
        font-size: 13px;
    }
    
    .reach-toggle-container {
        padding: 8px 10px;
        gap: 8px;
        min-width: 170px;
    }
    
    .rtp-pill-label {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .rtp-overlay-label {
        font-size: 12px;
    }
    
    .reach-toggle-switch {
        min-height: 24px;
        min-width: 44px;
    }
    
    /* === DROPDOWNS & USER MENU === */
    .user-dropdown {
        width: calc(100vw - 30px);
        max-width: 280px;
        right: 0;
    }
    
    .dropdown-header {
        padding: 8px 16px 12px;
    }
    
    .dropdown-avatar {
        width: 38px;
        height: 38px;
    }
    
    .dropdown-user-name {
        font-size: 14px;
    }
    
    .dropdown-user-email {
        font-size: 12px;
    }
    
    .dropdown-item {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .theme-segmented-control {
        margin-left: 16px;
        margin-right: 16px;
    }
    
    .theme-segment {
        font-size: 11px;
        min-height: 44px;
    }
    
    /* === MODALS === */
    .signin-prompt-box {
        padding: 18px 20px;
    }
    
    .signin-prompt-text {
        font-size: 15px;
    }
    
    .signin-prompt-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* === SCREENSHOT CONTAINER === */
    .screenshot-collage.desktop-collage .screenshot-collage-item img {
        object-fit: cover;
        object-position: top;
    }

    .phone-frame {
        max-width: 140px;
        border-radius: 20px;
    }

    .phone-frame-notch {
        width: 60px;
        height: 16px;
    }

    .mobile-screenshot {
        max-height: 150px;
    }
    
    /* === BUSINESS CARD === */
    .business-card {
        padding: 12px;
    }

    .evaluation-wrapper,
    .marketing-content-container,
    .whats-possible-container,
    .comparison-container,
    .see-how-you-compare-container,
    .marketing-strategy-container,
    .social-media-content-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }

    .evaluation-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    .message.assistant {
        overflow-x: hidden;
        max-width: 100% !important;
    }
}

/* ========== TOUCH ACCESSIBILITY ========== */
@media (pointer: coarse) {
    /* Ensure all interactive elements are at least 44px for touch */
    .nav-button,
    .auth-btn,
    .send-btn,
    .chat-send-btn,
    .attachment-btn,
    .sidebar-toggle,
    .reach-time-btn,
    .reach-expand-btn,
    .map-style-toggle,
    .dropdown-item,
    .theme-segment,
    .icon-btn,
    .next-btn,
    .btn-warning-cancel,
    .btn-warning-confirm,
    .signin-prompt-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Increase tap targets for list items */
    .home-sidebar .list-item,
    .sidebar-section .list-item {
        min-height: 44px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    /* Better touch spacing for toggles */
    .reach-toggle-switch {
        transform: scale(1.1);
        margin: 5px;
    }
}

/* ========== SAFE AREA INSETS (for notched devices) ========== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .chat-input-container {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    
    .sidebar {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .home-sidebar {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ========== LANDSCAPE MODE ON PHONES ========== */
@media (max-height: 500px) and (orientation: landscape) {
    .landing-view {
        padding-top: 60px;
        justify-content: center;
    }
    
    .logo {
        width: 180px;
        margin-bottom: 15px;
    }
    
    .tagline {
        margin-bottom: 20px;
    }
    
    .chat-messages {
        padding-bottom: 80px;
    }
    
    .reach-potential-container {
        height: 280px;
    }
}

.forgot-password-container {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 12px;
}

.forgot-password-link {
    color: rgba(58, 175, 212, 0.8);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: rgba(58, 175, 212, 1);
    text-decoration: underline;
}

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */
.mobile-hamburger {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    /* Hide the 4 nav links, keep the auth wrapper */
    .header-nav > .nav-button,
    .header-nav > .nav-dropdown-wrapper {
        display: none !important;
    }
}

/* ============================================
   MOBILE HOME PAGE LAYOUT ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    /* Push all home page content down - position input around mid-screen */
    .landing-view {
        justify-content: flex-start !important;
        padding-top: 60px !important;
        padding-bottom: 80px !important;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    /* Lower the logo */
    .logo {
        width: 160px !important;
        margin-bottom: 16px !important;
        margin-top: 60px;
    }

    /* Tagline */
    .tagline {
        font-size: 14px !important;
        margin-bottom: 30px !important;
        padding: 0 10px;
    }

    /* Input wrapper - match Drop & DEON width and center */
    .input-wrapper {
        max-width: 340px !important;
        width: calc(100% - 40px) !important;
        margin: 0 auto !important;
    }

    /* Smaller send button on mobile home page */
    .send-btn {
        width: 34px !important;
        height: 34px !important;
    }

    .send-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Business input adjust for smaller send button */
    .business-input {
        padding: 14px 48px 14px 42px !important;
        font-size: 14px !important;
    }

    .typing-text {
        left: 42px !important;
        font-size: 14px !important;
    }

    /* Terms notice - smaller on mobile */
    .terms-privacy-notice {
        font-size: 11px !important;
        bottom: 12px !important;
    }
}

@media (max-width: 480px) {
    .landing-view {
        padding-top: 40px !important;
    }

    .logo {
        width: 130px !important;
    }

    .tagline {
        font-size: 13px !important;
    }

    .input-wrapper {
        max-width: 300px !important;
        width: calc(100% - 30px) !important;
    }

}

/* ============================================
   MOBILE CHAT PLUS MENU (legacy - now unified)
   ============================================ */
.mobile-plus-btn {
    display: none;
}

.mobile-plus-popup {
    display: none;
}

/* ============================================
   MOBILE BOTTOM TAB BAR
   ============================================ */
.mobile-bottom-tabs {
    display: none;
}

.mobile-tab-panel {
    display: none;
}

.mobile-tab-panel-overlay {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-tabs {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: var(--bg-primary, #0a0a0f);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 10000;
        align-items: center;
        justify-content: space-around;
        padding: 4px 0 env(safe-area-inset-bottom, 8px);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .light-mode .mobile-bottom-tabs {
        background: rgba(255, 255, 255, 0.95);
        border-top-color: rgba(0, 0, 0, 0.08);
    }

    .mobile-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex: 1;
        height: 100%;
        background: none;
        border: none;
        color: var(--text-secondary, #8b8fa3);
        cursor: pointer;
        transition: color 0.2s ease;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-tab.active {
        color: var(--accent-purple, #3AAFD4);
    }

    .mobile-tab svg {
        width: 22px;
        height: 22px;
    }

    .mobile-tab-label {
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.02em;
    }

    .landing-view {
        padding-bottom: 80px !important;
    }

    .chat-input-container {
        margin-bottom: 64px;
    }

    .mobile-tab-panel-overlay {
        display: none !important;
    }

    .mobile-tab-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 64px;
        max-height: none;
        border-radius: 0;
        z-index: 9999;
        transform: none;
        background: var(--bg-primary, #0a0a0f);
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom, 8px);
        display: none;
    }

    .mobile-tab-panel.active {
        display: flex;
        flex-direction: column;
    }

    .light-mode .mobile-tab-panel {
        background: #ffffff;
    }

    .mobile-tab-panel-handle {
        display: none;
    }

    .mobile-tab-panel-header {
        padding: 16px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-tab-panel-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-primary);
    }

    .mobile-tab-panel-close {
        display: none;
    }

    .mobile-tab-panel-content {
        padding: 0 20px 20px;
    }

    .mobile-profile-header {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 8px;
    }

    .light-mode .mobile-profile-header {
        border-bottom-color: rgba(0, 0, 0, 0.08);
    }

    .mobile-profile-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
    }

    .mobile-profile-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-profile-name {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-primary);
    }

    .mobile-profile-plan {
        font-size: 13px;
        color: var(--text-secondary);
    }

    .mobile-panel-item {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 14px 16px;
        background: none;
        border: none;
        border-radius: 10px;
        color: var(--text-primary);
        font-size: 15px;
        cursor: pointer;
        transition: background 0.2s ease;
        text-decoration: none;
        text-align: left;
    }

    .mobile-panel-item:hover {
        background: rgba(58, 175, 212, 0.08);
    }

    .mobile-panel-item svg {
        width: 20px;
        height: 20px;
        color: var(--text-secondary);
        flex-shrink: 0;
    }

    .mobile-panel-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.06);
        margin: 8px 16px;
    }

    .light-mode .mobile-panel-divider {
        background: rgba(0, 0, 0, 0.06);
    }

    .mobile-panel-section-label {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 12px 16px 4px;
    }

    .mobile-panel-signout {
        color: #F87171 !important;
    }

    .mobile-panel-signout svg {
        color: #F87171 !important;
    }

    .mobile-chat-new-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        width: calc(100% - 32px);
        margin: 0 16px 12px;
        padding: 12px 14px;
        background: rgba(58, 175, 212, 0.12);
        border: 1px solid rgba(58, 175, 212, 0.2);
        border-radius: 10px;
        color: var(--text-primary);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-chat-new-btn:hover {
        background: rgba(58, 175, 212, 0.2);
    }

    .mobile-chat-new-btn span:first-child {
        font-size: 18px;
        color: var(--accent-purple, #3AAFD4);
    }

    .mobile-chat-list {
        padding: 0 16px;
    }

    .mobile-chat-list-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 10px;
        cursor: pointer;
        transition: background 0.2s ease;
        color: var(--text-primary);
        text-decoration: none;
    }

    .mobile-chat-list-item:hover {
        background: rgba(58, 175, 212, 0.08);
    }

    .mobile-chat-list-item svg {
        width: 18px;
        height: 18px;
        color: var(--text-secondary);
        flex-shrink: 0;
    }

    .mobile-chat-list-item-title {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-chat-list-item-time {
        font-size: 12px;
        color: var(--text-secondary);
        opacity: 0.7;
        white-space: nowrap;
        margin-left: auto;
        flex-shrink: 0;
    }

    .mobile-chat-empty {
        text-align: center;
        color: var(--text-secondary);
        font-size: 14px;
        padding: 30px 16px;
    }

    .mobile-section-empty {
        color: var(--text-secondary);
        font-size: 13px;
        padding: 16px;
        text-align: center;
        opacity: 0.7;
    }

    .mobile-section-sign-in {
        color: var(--text-secondary);
        font-size: 13px;
        padding: 16px;
        text-align: center;
    }

    .mobile-section-sign-in .sign-in-link {
        color: var(--accent-purple, #3AAFD4);
        cursor: pointer;
        text-decoration: underline;
    }

    .mobile-theme-toggle-container {
        padding: 8px 16px;
    }

    .mobile-guest-profile {
        text-align: center;
        padding: 30px 20px;
    }

    .mobile-guest-profile p {
        color: var(--text-secondary);
        font-size: 14px;
        margin-bottom: 16px;
    }

    .mobile-guest-signin-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 28px;
        background: rgba(58, 175, 212, 0.15);
        border: 1px solid rgba(58, 175, 212, 0.3);
        border-radius: 50px;
        color: var(--accent-purple, #3AAFD4);
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-guest-signin-btn:hover {
        background: rgba(58, 175, 212, 0.25);
    }

    .mobile-hamburger {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: none !important;
    }

    .mobile-menu {
        display: none !important;
    }

    .header-nav {
        display: none !important;
    }
}

.workspace-header-row {
    display: flex;
    align-items: center;
}

.home-sidebar .workspace-header-row,
.home-sidebar-content .workspace-header-row {
    background: transparent !important;
}

.home-sidebar .workspace-header-row:hover,
.home-sidebar-content .workspace-header-row:hover {
    background: rgba(128, 128, 128, 0.1) !important;
}

.workspace-icon {
    flex-shrink: 0;
}

.workspace-title {
    color: #5ECAF0 !important;
}

.workspace-tier-badge {
    display: none;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(58, 175, 212, 0.2);
    color: #5ECAF0;
    letter-spacing: 0.5px;
    margin-left: auto;
    text-transform: uppercase;
}

.workspace-tier-badge.visible {
    display: inline-block;
}

.deon-projects-arrow {
    position: fixed;
    z-index: 10000;
    pointer-events: auto;
    cursor: pointer;
    animation: deon-arrow-bounce 0.8s ease-in-out infinite alternate;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.deon-arrow-pointer {
    background: rgba(58, 175, 212, 0.15);
    border: 2px solid #1A7A9E;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(58, 175, 212, 0.4);
}

@keyframes deon-arrow-bounce {
    from { transform: translateX(0); }
    to { transform: translateX(8px); }
}

@keyframes deon-arrow-bounce-vertical {
    from { transform: translateY(0); }
    to { transform: translateY(6px); }
}

.deon-video-placeholder {
    max-width: 500px;
    margin-top: 8px;
}

.deon-video-placeholder-inner {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.deon-video-placeholder-icon {
    font-size: 36px;
    opacity: 0.8;
}

.deon-video-placeholder-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.deon-video-placeholder-text {
    color: #9CA3AF;
    font-size: 13px;
}

/* ========== LIGHT MODE CYAN DEEP SHIFT OVERRIDES ========== */
body.light-mode .home-ribbon {
    background: linear-gradient(180deg, 
        #1A7A9E 0%, #1A7A9E 10%, #1A7A9E 20%, #1A7A9E 30%, #1A7A9E 40%,
        #1A7A9E 50%, #1A7A9E 60%, #1A7A9E 70%, #1A7A9E 80%, #1A7A9E 90%, #1A7A9E 100%
    );
    background-size: 100% 200%;
}

body.light-mode .auth-btn-signin {
    background: 
        linear-gradient(var(--bg-auth-btn), var(--bg-auth-btn)) padding-box,
        linear-gradient(90deg, #6b7280, #1A7A9E, #6b7280) border-box;
}

body.light-mode .auth-btn-signin:hover {
    background: 
        linear-gradient(90deg, #1A7A9E 0%, #1A7A9E 90%, #6b7280 100%) padding-box,
        linear-gradient(90deg, #1A7A9E, #1A7A9E, #6b7280) border-box;
    box-shadow: 0 0 20px rgba(26, 122, 158, 0.35);
}

body.light-mode .dropdown-avatar {
    background: linear-gradient(135deg, #1A7A9E 0%, #1A7A9E 100%);
}

body.light-mode .home-plus-btn {
    color: #1A7A9E;
}

body.light-mode .drop-deon-option-icon.teal {
    color: #1A7A9E;
}

body.light-mode .new-conv-icon {
    background: rgba(255, 255, 255, 0.25);
}

body.light-mode .new-conversation-btn {
    background: transparent;
}

body.light-mode .new-conversation-btn:hover {
    background: transparent;
}

body.light-mode .new-conv-text {
    color: var(--text-primary);
}

body.light-mode .home-sidebar .section-title {
    color: var(--text-primary);
}

body.light-mode .home-sidebar .list-item {
    color: var(--text-primary);
}

body.light-mode .sidebar-separator {
    border-top-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .modal-btn-create {
    background: 
        linear-gradient(var(--bg-auth-btn), var(--bg-auth-btn)) padding-box,
        linear-gradient(90deg, #1A7A9E, #135a75, #135a75) border-box;
}

body.light-mode .modal-btn-create:hover {
    box-shadow: 0 0 15px rgba(26, 122, 158, 0.35);
}

body.light-mode .modal-btn-primary {
    background: 
        linear-gradient(var(--bg-auth-btn), var(--bg-auth-btn)) padding-box,
        linear-gradient(90deg, #1A7A9E, #135a75, #135a75) border-box;
}

body.light-mode .modal-btn-primary:hover {
    box-shadow: 0 0 15px rgba(26, 122, 158, 0.35);
}

body.light-mode .plus-btn {
    color: #1A7A9E;
}

body.light-mode .btn-warning-confirm {
    background: linear-gradient(135deg, #1A7A9E, #135a75);
}

body.light-mode .btn-warning-confirm:hover {
    background: linear-gradient(135deg, #1A7A9E, #1A7A9E);
    box-shadow: 0 4px 12px rgba(26, 122, 158, 0.3);
}

body.light-mode .stage-indicator-bright-purple {
    background: #1A7A9E;
    box-shadow: 0 0 6px #1A7A9E;
}

body.light-mode .stage-indicator-blue {
    background: #1A7A9E;
    box-shadow: 0 0 6px #1A7A9E;
}

body.light-mode .sticky-sphere-status {
    color: #1A7A9E;
    text-shadow: 0 0 10px rgba(26, 122, 158, 0.3);
}

body.light-mode .calendar-month-label {
    color: #1A7A9E;
}

body.light-mode .reach-time-btn.active {
    background: rgba(26, 122, 158, 0.3);
    border-color: #1A7A9E;
}

body.light-mode .reach-expand-btn:hover {
    background: rgba(26, 122, 158, 0.3);
    border-color: #1A7A9E;
}

body.light-mode .reach-loading-text {
    color: #1A7A9E;
}

body.light-mode .btn-confirm,
body.light-mode .btn-card-primary {
    background: linear-gradient(135deg, #1A7A9E 0%, #135a75 100%);
    box-shadow: 0 4px 14px rgba(26, 122, 158, 0.25);
}

body.light-mode .btn-card-secondary,
body.light-mode .btn-maybe-later {
    background: linear-gradient(135deg, #6B7280 0%, #5B6370 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(107, 114, 128, 0.25);
}

body.light-mode .interactive-msg-card {
    background: var(--bg-card);
}

body.light-mode .brandkit-accent-line::before {
    background: linear-gradient(180deg, #1A7A9E 0%, #1A7A9E 60%, #1A7A9E 100%);
    box-shadow: 0 0 15px rgba(26, 122, 158, 0.5);
}

.ws-wa-loading {
    padding: 32px 24px;
    text-align: center;
}
.ws-wa-loading-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}
.ws-wa-loading-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.ws-wa-loading-status {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.ws-wa-screenshots-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.ws-wa-preview-thumb {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.ws-wa-preview-thumb.desktop {
    width: 160px;
    height: 100px;
}
.ws-wa-preview-thumb.mobile {
    width: 60px;
    height: 110px;
}
.ws-wa-preview-thumb img {
    width: 100%;
    height: calc(100% - 22px);
    object-fit: cover;
}
.ws-wa-preview-label {
    font-size: 10px;
    color: var(--text-secondary);
    padding: 2px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ws-wa-dashboard {
    padding: 0;
}
.ws-wa-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}
.ws-wa-header-info {
    flex: 1;
}
.ws-wa-header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.ws-wa-header-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}
.ws-wa-header-label {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}
.ws-wa-header-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ws-wa-meta-tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
}
.ws-wa-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: 0;
}

.ws-wa-categories {
    margin-bottom: 28px;
}
.ws-wa-category-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.ws-wa-category-card:hover {
    border-color: rgba(255,255,255,0.12);
}
.ws-wa-category-header {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    gap: 14px;
}
.ws-wa-category-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.ws-wa-category-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
}
.ws-wa-category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}
.ws-wa-category-label {
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.ws-wa-category-score-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: 160px;
}
.ws-wa-score-bar-container {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.ws-wa-score-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}
.ws-wa-score-value {
    font-size: 14px;
    font-weight: 800;
    width: 28px;
    text-align: right;
}
.ws-wa-category-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.ws-wa-category-card.expanded .ws-wa-category-body {
    max-height: 600px;
}
.ws-wa-category-card.expanded .ws-seo-expand-btn {
    transform: rotate(180deg);
}
.ws-wa-category-details {
    padding: 0 18px 14px;
}
.ws-wa-findings-group {
    margin-bottom: 12px;
}
.ws-wa-findings-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.ws-wa-finding-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
    line-height: 1.5;
}
.ws-wa-finding-icon {
    flex-shrink: 0;
    font-size: 11px;
    margin-top: 2px;
}
.ws-wa-finding-item.positive .ws-wa-finding-icon { color: #4ADE80; }
.ws-wa-finding-item.negative .ws-wa-finding-icon { color: #F87171; }
.ws-wa-suggestion-card {
    margin: 0 18px 14px;
    padding: 14px 16px;
    background: rgba(58,175,212,0.08);
    border: 1px solid rgba(58,175,212,0.15);
    border-radius: 10px;
}
.ws-wa-suggestion-title {
    font-size: 13px;
    font-weight: 700;
    color: #3AAFD4;
    margin-bottom: 8px;
}
.ws-wa-suggestion-row {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 4px;
}
.ws-wa-suggestion-label {
    font-weight: 700;
    color: var(--text-primary);
}

.ws-wa-top-fixes {
    margin-bottom: 28px;
}
.ws-wa-fix-card {
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    margin-bottom: 10px;
}
.ws-wa-fix-issue {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.ws-wa-fix-action {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}
.ws-wa-fix-impact {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
}
.ws-wa-fix-impact.high { background: rgba(248,113,113,0.15); color: #F87171; }
.ws-wa-fix-impact.med { background: rgba(251,191,36,0.15); color: #FBBF24; }
.ws-wa-fix-impact.low { background: rgba(74,222,128,0.15); color: #4ADE80; }

.ws-wa-gallery {
    margin-bottom: 28px;
}
.ws-wa-screenshots-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.ws-wa-browser-frame {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}
.ws-wa-browser-frame:hover {
    border-color: rgba(58,175,212,0.4);
    transform: scale(1.01);
}
.ws-wa-browser-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ws-wa-browser-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}
.ws-wa-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.ws-wa-dot.red { background: #FF5F57; }
.ws-wa-dot.yellow { background: #FFBD2E; }
.ws-wa-dot.green { background: #28C840; }
.ws-wa-browser-url {
    flex: 1;
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    padding: 5px 12px;
    border-radius: 6px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ws-wa-browser-content {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgba(60,30,30,0.3);
}
.ws-wa-browser-content img:not(.ws-wa-carousel-img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ws-wa-frame-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ws-wa-carousel-container {
    position: relative;
}
.ws-wa-carousel-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}
.ws-wa-carousel-img.active {
    display: block;
}
.ws-wa-carousel-arrow {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}
.ws-wa-carousel-arrow:hover {
    background: rgba(58,175,212,0.2);
    color: #5ECAF0;
    border-color: rgba(58,175,212,0.4);
}
.ws-wa-carousel-counter {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    min-width: 30px;
}
.ws-wa-phone-frame {
    width: 160px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    padding: 8px 6px;
    position: relative;
}
.ws-wa-phone-frame:hover {
    border-color: rgba(58,175,212,0.4);
    transform: scale(1.01);
}
.ws-wa-phone-notch {
    width: 50px;
    height: 6px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    margin: 4px auto 8px;
}
.ws-wa-phone-content {
    aspect-ratio: 9/16;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(60,30,30,0.3);
}
.ws-wa-phone-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ws-wa-phone-home {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    margin: 8px auto 4px;
}

.ws-wa-ten-second-test {
    margin-bottom: 28px;
}
.ws-wa-tst-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}
.ws-wa-tst-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.ws-wa-tst-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}
.ws-wa-tst-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ws-wa-tst-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}
.ws-wa-tst-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}
.ws-wa-tst-icon.pass {
    background: rgba(74,222,128,0.15);
    color: #4ADE80;
}
.ws-wa-tst-icon.partial {
    background: rgba(251,191,36,0.15);
    color: #FBBF24;
}
.ws-wa-tst-icon.fail {
    background: rgba(248,113,113,0.15);
    color: #F87171;
}
.ws-wa-tst-text {
    flex: 1;
    min-width: 0;
}
.ws-wa-tst-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.ws-wa-tst-reason {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.ws-wa-design-eval .ws-wa-section-title {
    font-size: 18.4px;
}
.ws-wa-design-eval .ws-wa-category-name {
    font-size: 17.25px;
}
.ws-wa-design-eval .ws-wa-category-label {
    font-size: 13.8px;
}
.ws-wa-design-eval .ws-wa-score-value {
    font-size: 16.1px;
}
.ws-wa-design-eval .ws-wa-findings-label {
    font-size: 13.8px;
}
.ws-wa-design-eval .ws-wa-finding-item {
    font-size: 16.1px;
}
.ws-wa-design-eval .ws-wa-suggestion-title {
    font-size: 14.95px;
}
.ws-wa-design-eval .ws-wa-suggestion-row {
    font-size: 14.95px;
}

.ws-wa-footer {
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.6;
    padding-top: 12px;
}

.ws-wa-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.ws-wa-modal-overlay.active {
    display: flex;
}
.ws-wa-modal {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--bg-panel, #1a1a1e);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.ws-wa-modal img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    display: block;
}
.ws-wa-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ws-wa-modal-close:hover {
    background: rgba(255,255,255,0.3);
}
.ws-wa-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: background 0.2s, border-color 0.2s;
}
.ws-wa-modal-nav:hover {
    background: rgba(58,175,212,0.3);
    border-color: rgba(58,175,212,0.5);
}
.ws-wa-modal-nav.left {
    left: 20px;
}
.ws-wa-modal-nav.right {
    right: 20px;
}
.ws-wa-modal-label {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 8px 0 4px;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .ws-wa-header {
        flex-direction: column;
        text-align: center;
    }
    .ws-wa-category-score-area {
        width: 100px;
    }
    .ws-wa-category-name {
        font-size: 12px;
    }
    .ws-wa-screenshots-layout {
        flex-direction: column;
        align-items: center;
    }
    .ws-wa-browser-frame {
        max-width: 100%;
    }
    .ws-wa-phone-frame {
        width: 120px;
    }
    .ws-wa-tst-grid {
        grid-template-columns: 1fr;
    }
}

body.light-mode .ws-wa-category-card,
body.light-mode .ws-wa-header,
body.light-mode .ws-wa-fix-card,
body.light-mode .ws-wa-preview-thumb,
body.light-mode .ws-wa-browser-frame,
body.light-mode .ws-wa-phone-frame,
body.light-mode .ws-wa-tst-item {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}
body.light-mode .ws-wa-browser-content,
body.light-mode .ws-wa-phone-content {
    background: rgba(0,0,0,0.05);
}
body.light-mode .ws-wa-browser-chrome {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.06);
}
body.light-mode .ws-wa-browser-url {
    background: rgba(0,0,0,0.05);
}
body.light-mode .ws-wa-phone-notch,
body.light-mode .ws-wa-phone-home {
    background: rgba(0,0,0,0.12);
}
body.light-mode .ws-wa-carousel-arrow {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.12);
    color: rgba(0,0,0,0.6);
}
body.light-mode .ws-wa-carousel-arrow:hover {
    background: rgba(26,122,158,0.15);
    color: #1A7A9E;
    border-color: rgba(26,122,158,0.3);
}
body.light-mode .ws-wa-carousel-counter {
    color: rgba(0,0,0,0.4);
}
body.light-mode .ws-wa-score-bar-container {
    background: rgba(0,0,0,0.08);
}
body.light-mode .ws-wa-suggestion-card {
    background: rgba(26,122,158,0.08);
    border-color: rgba(26,122,158,0.15);
}
body.light-mode .ws-wa-suggestion-title {
    color: #1A7A9E;
}
body.light-mode .ws-wa-meta-tag {
    background: rgba(0,0,0,0.06);
}

.memory-sphere-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.memory-sphere-overlay.active {
    display: flex;
    opacity: 1;
}
.memory-sphere-container {
    width: 90vw;
    max-width: 900px;
    height: 85vh;
    max-height: 700px;
    background: rgba(15,15,30,0.95);
    border: 1px solid rgba(58,175,212,0.15);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(58,175,212,0.08), 0 0 120px rgba(167,139,250,0.04);
    position: relative;
}
.memory-sphere-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.memory-sphere-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.85);
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 15px;
}
.memory-sphere-biz-name {
    font-weight: 400;
    font-size: 13px;
    color: rgba(58,175,212,0.7);
}
.memory-sphere-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.memory-sphere-close:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}
.memory-sphere-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}
.memory-sphere-body canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
}
.memory-sphere-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255,255,255,0.5);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    z-index: 2;
}
.memory-sphere-loading-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(58,175,212,0.15);
    border-top-color: rgba(58,175,212,0.7);
    border-radius: 50%;
    animation: memSpinnerSpin 0.8s linear infinite;
}
@keyframes memSpinnerSpin {
    to { transform: rotate(360deg); }
}
.memory-sphere-empty {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255,255,255,0.35);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    text-align: center;
    padding: 40px;
    z-index: 2;
}
.memory-sphere-detail {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15,15,30,0.97);
    border-top: 1px solid rgba(58,175,212,0.15);
    padding: 16px 24px;
    z-index: 5;
    max-height: 200px;
    overflow-y: auto;
    animation: memDetailSlideUp 0.25s ease;
}
@keyframes memDetailSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.memory-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.memory-detail-type {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(58,175,212,0.15);
    color: rgba(58,175,212,0.9);
}
.memory-detail-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
}
.memory-detail-close:hover {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.06);
}
.memory-detail-label {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 6px;
}
.memory-detail-content {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 768px) {
    .memory-sphere-container {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    .memory-sphere-detail {
        max-height: 160px;
    }
}

body.light-mode .memory-sphere-overlay {
    background: rgba(240,240,245,0.9);
}
body.light-mode .memory-sphere-container {
    background: rgba(255,255,255,0.97);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
body.light-mode .memory-sphere-header {
    border-bottom-color: rgba(0,0,0,0.06);
}
body.light-mode .memory-sphere-title-row {
    color: rgba(0,0,0,0.8);
}
body.light-mode .memory-sphere-detail {
    background: rgba(255,255,255,0.98);
    border-top-color: rgba(0,0,0,0.08);
}
body.light-mode .memory-detail-label {
    color: rgba(0,0,0,0.85);
}
body.light-mode .memory-detail-content {
    color: rgba(0,0,0,0.55);
}

.memory-page {
    background: var(--bg-body);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}
.memory-page-canvas-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
}
.memory-page-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
}
.memory-page .memory-sphere-detail {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 90vw;
    max-width: 560px;
    border-radius: 16px 16px 0 0;
    z-index: 100;
}
.memory-page .memory-sphere-loading,
.memory-page .memory-sphere-empty {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20;
}
.memory-page .memory-page-top-bar {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-routes-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 800;
    pointer-events: none;
}

.map-routes-spinner.visible {
    display: block;
}

.map-routes-spinner-ring {
    width: 34px;
    height: 34px;
    border: 3px solid transparent;
    border-top-color: rgba(58, 175, 212, 0.7);
    border-right-color: rgba(58, 175, 212, 0.3);
    border-radius: 50%;
    animation: mapRoutesSpinnerRotate 0.8s linear infinite;
}

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

.memory-sphere-blurred {
    background: #0a0a1a !important;
}
.memory-sphere-blurred canvas {
    filter: blur(3px) brightness(0.7);
    pointer-events: none;
}

.memory-sphere-signin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.memory-signin-card {
    pointer-events: auto;
    background: rgba(15, 15, 30, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(58, 175, 212, 0.2);
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 420px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 8px 60px rgba(0,0,0,0.5), 0 0 80px rgba(58,175,212,0.08);
    animation: memSigninFadeIn 0.6s ease;
}

@keyframes memSigninFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.memory-signin-icon {
    margin-bottom: 16px;
    color: #3AAFD4;
    opacity: 0.8;
}

.memory-signin-title {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin: 0 0 8px;
}

.memory-signin-subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 24px;
    line-height: 1.5;
}

.memory-signin-clerk {
    min-height: 50px;
    margin-bottom: 12px;
}

.memory-signin-switch {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.memory-signin-switch a {
    color: #3AAFD4;
    text-decoration: none;
    font-weight: 600;
}

.memory-signin-switch a:hover {
    text-decoration: underline;
}

body.light-mode .memory-signin-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 60px rgba(0,0,0,0.15), 0 0 80px rgba(58,175,212,0.05);
}

body.light-mode .memory-signin-title {
    color: rgba(0, 0, 0, 0.85);
}

body.light-mode .memory-signin-subtitle {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .memory-signin-switch {
    color: rgba(0, 0, 0, 0.4);
}

@media (max-width: 480px) {
    .memory-signin-card {
        padding: 28px 20px 20px;
        border-radius: 16px;
    }
    .memory-signin-title {
        font-size: 19px;
    }
}
