/* 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;
}

/* ============================================
   SEO-ONLY (visually hidden, crawlable & accessible)
   ============================================ */
.seo-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   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: 0;
    margin-right: 0;
    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;
}

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 16px;
    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;
    padding: 10px 14px;
}

.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 */
/* Round 8 alignment fix: vertically center content with the canvas
   header tab row. .canvas-header-top sits at viewport y=0 with
   padding 16px and 32px-tall tabs, total ~64px. Matching the overlay
   box height + align-items: center keeps theme/auth buttons on the
   exact same baseline as the tabs in both signed-in and signed-out
   states. */
.chat-auth-overlay {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 64px;
    padding: 0 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: 1.75rem 1.75rem 1.5rem;
    max-width: 460px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

/* Defensive fallback for Clerk's footer "Don't have an account?" / "Use phone"
   controls. The primary suppression happens via Clerk's `appearance` API
   (`footerAction`, `formFieldAction__identifier` set to display:none) and the
   `localization` overrides that blank the action labels — these CSS rules just
   guarantee the unified switch experience if Clerk ships markup tweaks. */
#authModalOverlay .cl-footerAction,
#authModalOverlay .cl-footerActionText,
#authModalOverlay .cl-footerActionLink,
#authModalOverlay .cl-formFieldAction__identifier {
    display: none !important;
}

.auth-modal-headline {
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #F0F0F2;
    margin: 0.25rem 0 1rem;
    letter-spacing: -0.01em;
}

body.light-mode .auth-modal-headline {
    color: #111113;
}

.auth-intro-slot {
    text-align: center;
}

.auth-intro-slot:empty {
    display: none;
}

.auth-intro-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #F0F0F2;
    margin: 0.25rem 0 0.4rem;
    letter-spacing: -0.01em;
}

.auth-intro-subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    color: #A0A0A8;
    margin: 0 0 1rem;
    line-height: 1.5;
}

body.light-mode .auth-intro-title {
    color: #111113;
}

body.light-mode .auth-intro-subtitle {
    color: #6B6B72;
}

.auth-switch-link {
    text-align: center;
    color: #A0A0A8;
    font-size: 0.85rem;
    margin: 1rem 0 0;
    font-family: 'Manrope', sans-serif;
}
.auth-switch-link a {
    color: #5ECAF0;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.auth-switch-link a:hover { text-decoration: underline; }
body.light-mode .auth-switch-link { color: #5C5C66; }
body.light-mode .auth-switch-link a { color: #1A7A9E; }
body.light-mode .auth-switch-link a:hover { color: #15637F; }

@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-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;
}

/* DEON wordmark above the Clerk auth card */
.auth-deon-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 1rem 0;
}

.auth-deon-logo {
    height: 32px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease;
}

body.light-mode .auth-deon-logo {
    filter: brightness(0);
}

/* Force DEON cyan brand color on the Clerk Continue button regardless of
   any Clerk Dashboard theme overrides. */
.cl-formButtonPrimary,
.cl-formButtonPrimary:hover,
.cl-formButtonPrimary:focus,
.cl-formButtonPrimary:active {
    background-color: #3AAFD4 !important;
    background-image: none !important;
    color: #0A0A0B !important;
    border: none !important;
}
.cl-formButtonPrimary:hover {
    background-color: #5ECAF0 !important;
}
body.light-mode .cl-formButtonPrimary,
body.light-mode .cl-formButtonPrimary:focus,
body.light-mode .cl-formButtonPrimary:active {
    background-color: #1A7A9E !important;
    color: #FFFFFF !important;
}
body.light-mode .cl-formButtonPrimary:hover {
    background-color: #15637F !important;
    color: #FFFFFF !important;
}

/* Merge Clerk's footer panel into the card — no separate background or seam */
.cl-card .cl-footer,
.cl-card .cl-footerAction,
.cl-card .cl-footerPages,
.cl-rootBox .cl-footer,
.cl-rootBox .cl-footerAction {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

/* Hide Clerk's built-in logo box and header subtitle (we provide our own) */
.cl-logoBox,
.cl-headerSubtitle {
    display: none !important;
}

/* Make Clerk's card and card box blend into our parent panel — no separate
   white/dark inset card with its own border or shadow. */
.cl-rootBox .cl-cardBox,
.cl-rootBox .cl-card {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
}
.cl-rootBox .cl-card {
    padding: 0 !important;
}

.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;
}

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

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

body.light-mode .auth-modal {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .auth-modal-title { color: #111; }
body.light-mode .auth-modal-subtitle { color: #666; }
body.light-mode .pricing-card { background: #f8f8f8; border-color: rgba(0, 0, 0, 0.08); }
body.light-mode .pricing-card:hover { border-color: rgba(0, 0, 0, 0.2); }
body.light-mode .pricing-card.selected { background: rgba(58, 175, 212, 0.05); border-color: var(--color-brand-primary, #3AAFD4); }
body.light-mode .pricing-card-name { color: #111; }
body.light-mode .pricing-card-price { color: #111; }
body.light-mode .pricing-card-price span { color: #888; }
body.light-mode .pricing-card-features li { color: #555; }
body.light-mode .auth-form-tabs { background: #f0f0f0; }
body.light-mode .auth-tab.active { background: #fff; color: #111; }
body.light-mode .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;
}

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

body.light-mode .auth-form-heading { color: #111; }
body.light-mode .auth-input::placeholder { color: #999; }

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

body.light-mode .signin-prompt-box {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .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 RE-THEME IN LIGHT MODE ========== */
/* Free-tier evaluation reports follow the global light-mode tokens
   so they look re-themed (white cards, dark text, deep-cyan accents),
   matching how Workspace reports already behave. */
body.light-mode .score-box,
body.light-mode .score-breakdown,
body.light-mode .analysis-section,
body.light-mode .screenshot-container {
    background: var(--bg-card) !important;
    border-color: var(--border-light-medium) !important;
    color: var(--text-primary) !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: var(--text-primary) !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: var(--text-secondary) !important;
}

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

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

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: var(--text-secondary) !important;
    border-color: var(--border-light-medium) !important;
}

body.light-mode .analysis-section strong,
body.light-mode .score-breakdown strong {
    color: var(--text-primary) !important;
}

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

/* 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, filter 0.3s ease;
    filter: var(--logo-filter);
}

.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;
}

.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;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

.canvas-header-top {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    min-height: 52px;
}

.canvas-status-row {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0 24px 8px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2;
}

.canvas-status-row.active {
    display: block;
}

.canvas-status-row .sticky-sphere-status {
    display: block;
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
    transform: none;
    max-width: 100%;
    line-height: 1.4;
}

.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;
}

/* Markdown rendering inside DEON's home-chat bubbles. Mirrors the Workspace
   chat rules so both surfaces look identical. Selectors target the assistant
   bubble (and the natural-conversation .deon-message bubble) so user
   messages are unaffected. */
.message.assistant .message-bubble .ws-md-h3,
.deon-message .ws-md-h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 14px 0 6px 0;
    line-height: 1.3;
}
.message.assistant .message-bubble .ws-md-h4,
.deon-message .ws-md-h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 12px 0 4px 0;
    line-height: 1.3;
}
.message.assistant .message-bubble .ws-md-h3:first-child,
.message.assistant .message-bubble .ws-md-h4:first-child,
.message.assistant .message-bubble span > .ws-md-h3:first-child,
.message.assistant .message-bubble span > .ws-md-h4:first-child,
.deon-message .ws-md-h3:first-child,
.deon-message .ws-md-h4:first-child { margin-top: 0; }
.message.assistant .message-bubble .ws-md-list,
.deon-message .ws-md-list {
    margin: 6px 0;
    padding-left: 22px;
    list-style: disc;
}
.message.assistant .message-bubble .ws-md-list li,
.deon-message .ws-md-list li { margin: 2px 0; }
.message.assistant .message-bubble strong,
.deon-message strong { color: #fff; font-weight: 600; }

body.light-mode .message.assistant .message-bubble .ws-md-h3,
body.light-mode .message.assistant .message-bubble .ws-md-h4,
body.light-mode .message.assistant .message-bubble strong,
body.light-mode .deon-message .ws-md-h3,
body.light-mode .deon-message .ws-md-h4,
body.light-mode .deon-message strong { color: #1A1A1E; }


/* 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;
}

@media (max-width: 640px) {
    .interactive-msg-card {
        padding: 18px;
    }
    .interactive-msg-card .card-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        flex-wrap: nowrap;
        margin-top: 14px;
    }
    .interactive-msg-card .card-actions .btn-card-primary,
    .interactive-msg-card .card-actions .btn-card-secondary {
        width: 100%;
        white-space: normal;
        word-break: break-word;
        min-height: 44px;
        padding: 12px 18px;
        line-height: 1.3;
    }
    .interactive-msg-card .card-actions .btn-card-primary-lg {
        font-size: 16px;
        padding: 14px 18px;
    }
}

/* 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) calc(20px + var(--sidebar-gap-bottom)) 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;
    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;
}

/* 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;
}

/* 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-cell.is-today .ws-cal-day-num {
    font-weight: 800;
    color: #fff;
}
.ws-cal-tags {
    position: absolute;
    bottom: 1px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
    padding: 0 3px;
}
.ws-cal-tag {
    font-size: 9px;
    font-weight: 700;
    color: #000;
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
    width: 100%;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #3AAFD4;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-sizing: border-box;
}
.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;
}
.ws-cal-tag-icon .platform-icon {
    width: 9px;
    height: 9px;
    fill: #000;
}
.ws-cal-tag-facebook { background: #1877F2; }
.ws-cal-tag-instagram { background: #E4405F; }
.ws-cal-tag-linkedin { background: #0A66C2; }
.ws-cal-tag-tiktok { background: #25F4EE; }
.ws-cal-tag-twitter { background: #1DA1F2; }
.ws-cal-tag-x { background: #1DA1F2; }
.ws-cal-tag-youtube { background: #FF0000; }
.ws-cal-tag-pinterest { background: #E60023; }
.ws-cal-tag-google { background: #4285F4; }
.ws-cal-tag.ws-cal-tag-posted {
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.9);
}
.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: 35px;
    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: 55px;
    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: 16px;
    }
    
    .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;
    }

    
    .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: 16px;
        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: 16px;
    }
    
    .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: 16px;
        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) + var(--sidebar-gap-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: 16px !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 .canvas-status-row .sticky-sphere-status {
    color: rgba(0, 0, 0, 0.6);
    text-shadow: none;
}

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);
}

/* Round 9: Match the .btn-edit ("No, let me correct it") white-pill
   treatment so both DEON secondary buttons share one look. */
body.light-mode .btn-card-secondary,
body.light-mode .btn-maybe-later {
    background: #FFFFFF !important;
    color: #1A1A1E !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}
body.light-mode .btn-card-secondary:hover,
body.light-mode .btn-maybe-later:hover {
    background: #F8FAFC !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

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-no-business-prompt {
    position: absolute;
    left: 50%;
    bottom: 12vh;
    transform: translateX(-50%);
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 33px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.25;
    background: linear-gradient(135deg, #5ECAF0 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    max-width: 90%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    pointer-events: none;
    z-index: 3;
}
body.light-mode .memory-no-business-prompt {
    background: linear-gradient(135deg, #1A7A9E 0%, #0a3a52 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
@media (max-width: 768px) {
    .memory-no-business-prompt {
        font-size: 22px;
        bottom: 10vh;
    }
}
.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); }
}

.map-routes-message {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 800;
    background: rgba(10, 14, 28, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.map-routes-message.visible {
    display: block;
}

.memory-sphere-blurred {
    background: #0a0a1a !important;
}
.memory-sphere-blurred canvas {
    filter: blur(3px) brightness(0.7);
    pointer-events: none;
}


/* ============================================ */
/* iOS App Wrap Polish (Median.co webview)      */
/* ============================================ */
@media (max-width: 768px) {
    html, body {
        overscroll-behavior-y: none;
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }
    body {
        /* Honor iOS safe areas at the page chrome level */
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    /* Disable text selection + iOS callouts on app chrome (NOT on chat / report content) */
    .mobile-bottom-tabs,
    .mobile-tab,
    .mobile-tab-panel-header,
    .mobile-tab-panel-handle,
    .mobile-tab-panel-close,
    .sidebar,
    .mobile-back-btn,
    .mobile-menu-btn,
    .mobile-chat-back,
    .mobile-profile-header {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    /* Allow selection wherever the user reads or edits real content */
    .chat-message, .chat-message *,
    .message-content, .message-content *,
    input, textarea, [contenteditable="true"] {
        -webkit-user-select: text;
        user-select: text;
        -webkit-touch-callout: default;
    }
}


  /* === Mobile zoom-prevention safety net (Task #343) ===
     iOS Safari auto-zooms inputs whose font-size < 16px on focus.
     Force every text-entry control to render at >= 16px on phone widths.
     Desktop (>768px) is untouched. */
  @media (max-width: 768px) {
      input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
      textarea,
      select {
          font-size: 16px;
      }
  }

  /* === Phone-only polish (Task #347) ===
     Wider home input, dark-grey solid chat reply bar, and breathing
     room above the bottom tab bar. Scoped to <=640px; desktop and
     light mode are untouched. */
  @media (max-width: 640px) {
      .input-wrapper {
          max-width: none !important;
          margin: 0 8px !important;
          width: calc(100% - 16px) !important;
      }

      body:not(.light-mode) .chat-input {
          background: #242429;
          backdrop-filter: none;
          -webkit-backdrop-filter: none;
      }

      .chat-input-container {
          margin-bottom: 78px;
      }
  }
  
/* ===================================================================
   Task #348 — Theme polish pass (light/dark mode)
   =================================================================== */

/* T001: Soften phone-only dark background AND sidebar (desktop unchanged) */
@media (max-width: 640px) {
    body:not(.light-mode) {
        --bg-body: #14141a;
        --bg-chat: #14141a;
        --bg-sidebar: rgba(20, 20, 26, 0.92);
        --bg-sidebar-solid: #14141a;
        --bg-sidebar-rgb: 20, 20, 26;
        --bg-sidebar-toggle: rgba(20, 20, 26, 0.95);
        --bg-sidebar-toggle-hover: rgba(28, 28, 36, 0.95);
    }
    body:not(.light-mode) .chat-messages,
    body:not(.light-mode) .chat-main {
        background: #14141a;
    }
}

/* T002: Home input pill keeps DEON cyan in light mode — scoped to landing-view
   (the home page) so chat / contact input pills are unaffected. */
body.light-mode .landing-view .input-wrapper {
    background: linear-gradient(90deg, #3AAFD4 0%, #3AAFD4 100%) !important;
}
body.light-mode .landing-view .send-btn {
    background: #3AAFD4 !important;
    color: #FFFFFF !important;
}
body.light-mode .landing-view .send-btn svg {
    stroke: #FFFFFF !important;
    color: #FFFFFF !important;
}

/* T003: Sidebar workspace text — slightly darker cyan in light mode */
body.light-mode .workspace-title {
    color: #1A7A9E !important;
}

/* T005: Free-tier chat — real light-mode theming for message bubbles */
body.light-mode .message.assistant .message-bubble {
    color: #1A1A1E;
    border: 1px solid var(--chat-bubble-border);
}
body.light-mode .message.assistant .message-bubble p,
body.light-mode .message.assistant .message-bubble li,
body.light-mode .message.assistant .message-bubble em,
body.light-mode .message.assistant .message-bubble span {
    color: #1A1A1E;
}
body.light-mode .message.assistant .message-bubble a {
    color: #1A7A9E;
}
body.light-mode .message.user .message-bubble {
    color: #1A1A1E;
    border: 1px solid var(--chat-bubble-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
body.light-mode .deon-message {
    color: #1A1A1E;
}
body.light-mode .deon-message p,
body.light-mode .deon-message li,
body.light-mode .deon-message em,
body.light-mode .deon-message span {
    color: #1A1A1E;
}
body.light-mode .deon-message a {
    color: #1A7A9E;
}

/* T005b: Home greeting headline — deep cyan gradient in light mode */
body.light-mode .home-welcome-headline {
    background: linear-gradient(135deg, #1A7A9E 0%, #0F5A78 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* T006: Screenshot/preview "browser frame" — re-theme in light mode */
body.light-mode .screenshot-container,
body.light-mode .ws-wa-browser-frame,
body.light-mode .browser-frame {
    background: var(--bg-card) !important;
    border-color: var(--border-light-medium) !important;
}
body.light-mode .browser-chrome,
body.light-mode .ws-wa-browser-chrome {
    background: rgba(0, 0, 0, 0.04) !important;
    border-bottom-color: var(--border-light-medium) !important;
}
body.light-mode .browser-url,
body.light-mode .ws-wa-browser-url {
    color: var(--text-secondary) !important;
    background: rgba(0, 0, 0, 0.04) !important;
}

/* ===================================================================
   Task #348 — Free-tier report light-mode polish (post-review)
   Override remaining inline whites in app.js report templates and
   browser-frame chrome so light mode reads cleanly.
   =================================================================== */

/* Browser frame chrome (used by .website-analysis-section screenshots) */
body.light-mode .browser-frame {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .browser-frame-bar {
    background: #F5F6F8 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .browser-frame-dot {
    background: rgba(0, 0, 0, 0.18) !important;
}
body.light-mode .browser-frame-url {
    background: rgba(0, 0, 0, 0.04) !important;
    color: rgba(0, 0, 0, 0.55) !important;
}

/* Report section translucent dark backgrounds → soft light card surface */
body.light-mode .categories-breakdown,
body.light-mode .website-analysis-section,
body.light-mode .visibility-check-section {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Local competitor pills (inline #1A1A1E backgrounds) */
body.light-mode .local-competitors-section .competitor-item {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #1A1A1E;
}
body.light-mode .local-competitors-section .competitor-item span,
body.light-mode .local-competitors-section .competitor-item .competitor-name,
body.light-mode .local-competitors-section .competitor-item .rating-info {
    color: #1A1A1E !important;
}

/* Neutralize inline color:#FFFFFF / color:white in report templates */
body.light-mode .categories-breakdown [style*="color: #FFFFFF"],
body.light-mode .categories-breakdown [style*="color:#FFFFFF"],
body.light-mode .categories-breakdown [style*="color: white"],
body.light-mode .categories-breakdown [style*="color:white"],
body.light-mode .website-analysis-section [style*="color: #FFFFFF"],
body.light-mode .website-analysis-section [style*="color:#FFFFFF"],
body.light-mode .website-analysis-section [style*="color: white"],
body.light-mode .website-analysis-section [style*="color:white"],
body.light-mode .visibility-check-section [style*="color: #FFFFFF"],
body.light-mode .visibility-check-section [style*="color:#FFFFFF"],
body.light-mode .visibility-check-section [style*="color: #ffffff"],
body.light-mode .visibility-check-section [style*="color:#ffffff"],
body.light-mode .visibility-check-section [style*="color: white"],
body.light-mode .local-competitors-section [style*="color: #FFFFFF"],
body.light-mode .local-competitors-section [style*="color:#FFFFFF"],
body.light-mode .local-competitors-section [style*="color: white"],
body.light-mode .evaluation-section [style*="color: #FFFFFF"],
body.light-mode .evaluation-section [style*="color:#FFFFFF"],
body.light-mode .evaluation-section [style*="color: white"],
body.light-mode .evaluation-section [style*="color: #ffffff"] {
    color: #1A1A1E !important;
}

/* Soften translucent white labels (rgba(255,255,255,0.7) etc) inside reports */
body.light-mode .categories-breakdown [style*="rgba(255, 255, 255, 0.7)"],
body.light-mode .website-analysis-section [style*="rgba(255, 255, 255, 0.7)"],
body.light-mode .visibility-check-section [style*="rgba(255, 255, 255, 0.7)"],
body.light-mode .local-competitors-section [style*="rgba(255, 255, 255, 0.7)"] {
    color: #59616E !important;
}

/* Translucent white panel backgrounds inside reports → soft light surface */
body.light-mode .categories-breakdown [style*="background: rgba(255,255,255,0.06)"],
body.light-mode .website-analysis-section [style*="background: rgba(255,255,255,0.06)"],
body.light-mode .visibility-check-section [style*="background: rgba(255,255,255,0.06)"] {
    background: rgba(0, 0, 0, 0.03) !important;
}

/* ===================================================================
   Task #351 — Light-mode polish round 2
   =================================================================== */

/* T2: Mini "thinking" loading sphere wrapper — drop dark background in light mode.
   The container itself is transparent, AND the inline-styled parent bubble
   (showThinking() sets `background: rgba(17, 17, 19, 0.8)` directly on the
   thinking content div) gets overridden via attribute selector. */
body.light-mode .mini-sphere-container,
body.light-mode .deon-message .mini-sphere-container,
body.light-mode .message .mini-sphere-container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
body.light-mode #thinking [style*="rgba(17, 17, 19, 0.8)"],
body.light-mode #thinking [style*="rgba(17,17,19,0.8)"] {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode #thinking .thinking-text {
    color: #4B5563 !important;
}

/* T1b: Right-side canvas panel — transparent backdrop in light mode so the
   sticky sphere reads against the page background like on the home page. */
body.light-mode .canvas-panel {
    background: transparent !important;
    backdrop-filter: none !important;
    border-left-color: rgba(0, 0, 0, 0.06) !important;
}

/* T3: Verification business card — readable body text in light mode */
body.light-mode .business-card .business-info-value,
body.light-mode .business-card .business-info-description,
body.light-mode .business-card .confirmation-question {
    color: #1A1A1E !important;
}
body.light-mode .business-card .business-info-label {
    color: #59616E !important;
}
body.light-mode .business-card .business-info-separator {
    color: rgba(0, 0, 0, 0.35) !important;
}
body.light-mode .business-card .social-link {
    background: #EEF1F5 !important;
    color: #1A1A1E !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .business-card .social-link:hover {
    background: #E2E8F0 !important;
    color: #1A7A9E !important;
    border-color: rgba(26, 122, 158, 0.3) !important;
}

/* T4: Score Breakdown chevrons — dark stroke in light mode (overrides inline SVG attr) */
body.light-mode .categories-breakdown .category-chevron,
body.light-mode .categories-breakdown .category-chevron polyline {
    stroke: rgba(26, 26, 30, 0.65) !important;
}
body.light-mode .categories-breakdown .category-expand-toggle {
    background: rgba(0, 0, 0, 0.05) !important;
}
body.light-mode .categories-breakdown .category-expand-toggle:hover {
    background: rgba(26, 122, 158, 0.12) !important;
}

/* T5: Visual Assessment heading + labels — dark text in light mode.
   Targets both static template (.analysis-section.visual-assessment) and
   progressive render path. The existing .evaluation-section[style*="#FFFFFF"]
   override doesn't catch these, so add dedicated selectors. */
body.light-mode .visual-assessment [style*="color: #FFFFFF"],
body.light-mode .visual-assessment [style*="color:#FFFFFF"],
body.light-mode .visual-assessment [style*="color: white"],
body.light-mode .analysis-section [style*="color: #FFFFFF"],
body.light-mode .analysis-section [style*="color:#FFFFFF"],
body.light-mode .analysis-section [style*="color: white"] {
    color: #1A1A1E !important;
}
body.light-mode .visual-assessment .item-label,
body.light-mode .visual-assessment .item-value,
body.light-mode .visual-assessment .item-content,
body.light-mode .analysis-section .item-label,
body.light-mode .analysis-section .item-value,
body.light-mode .analysis-section .item-content {
    color: #1A1A1E !important;
}
/* Translucent white separator lines inside visual assessment */
body.light-mode .visual-assessment [style*="border-bottom: 1px solid rgba(255,255,255,0.1)"],
body.light-mode .analysis-section [style*="border-bottom: 1px solid rgba(255,255,255,0.1)"] {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

/* T6: Section vertical accent bars — saturate colors and drop dark-mode glow on white */
body.light-mode .evaluation-item.status-pass::before {
    background: #16A34A !important;
    box-shadow: none !important;
}
body.light-mode .evaluation-item.status-fail::before {
    background: #DC2626 !important;
    box-shadow: none !important;
}
body.light-mode .evaluation-item.status-warning::before,
body.light-mode .evaluation-item.status-caution::before {
    background: #D97706 !important;
    box-shadow: none !important;
}
/* Section-level gradient strip — keep but soften shadow on white */
body.light-mode .analysis-section::before {
    filter: saturate(1.15);
}

/* T7: Local Competitors — readable competitor name, ratings and "% positive" */
body.light-mode .local-competitors-section .competitor-name,
body.light-mode .local-competitors-section [style*="color: #F0F0F2"],
body.light-mode .local-competitors-section [style*="color:#F0F0F2"] {
    color: #1A1A1E !important;
}
body.light-mode .local-competitors-section [style*="rgba(255,255,255,0.4)"],
body.light-mode .local-competitors-section [style*="rgba(255, 255, 255, 0.4)"],
body.light-mode .local-competitors-section [style*="rgba(255,255,255,0.5)"],
body.light-mode .local-competitors-section [style*="rgba(255, 255, 255, 0.5)"] {
    color: #4B5563 !important;
}
body.light-mode .local-competitors-section [style*="rgba(255,255,255,0.3)"],
body.light-mode .local-competitors-section [style*="rgba(255, 255, 255, 0.3)"] {
    color: #6B7280 !important;
}
body.light-mode .local-competitors-section [style*="background: rgba(255,255,255,0.06)"],
body.light-mode .local-competitors-section [style*="background:rgba(255,255,255,0.06)"] {
    background: rgba(0, 0, 0, 0.04) !important;
}

/* T8: "How I Evaluate Your Business" callout — fully light card surface.
   The element is #progressive-evaluation-criteria with inline
   background: rgba(17,17,19,0.5) and a dark border-image. */
body.light-mode #progressive-evaluation-criteria {
    background: #F8FAFC !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-left: 4px solid #1A7A9E !important;
    border-image: none !important;
}
body.light-mode #progressive-evaluation-criteria h4 {
    color: #1A7A9E !important;
}
body.light-mode #progressive-evaluation-criteria p,
body.light-mode #progressive-evaluation-criteria [style*="rgba(255,255,255,0.8)"],
body.light-mode #progressive-evaluation-criteria [style*="rgba(255, 255, 255, 0.8)"] {
    color: #1A1A1E !important;
}
body.light-mode #progressive-evaluation-criteria [style*="rgba(255,255,255,0.7)"],
body.light-mode #progressive-evaluation-criteria [style*="rgba(255, 255, 255, 0.7)"] {
    color: #59616E !important;
}

/* ===================================================================
   Task #354 — Light-mode polish Round 3
   - Canvas Evaluation tab + status text
   - Verification "No, let me correct it" button
   - Visual Assessment (.analysis-section) boundaries + accent strip
   - "What's holding you back" section full re-theme
   - Catch-all DEON message safety net
   - What's Possible report sweep
   - Competitor Analysis report sweep
   All overrides scoped under body.light-mode so dark mode is byte-identical.
   =================================================================== */

/* --- 1. Canvas Evaluation tab + status text --- */
body.light-mode .canvas-tab {
    color: #4B5563;
}
body.light-mode .canvas-tab:hover {
    color: #1A1A1E;
    background: rgba(0, 0, 0, 0.05);
}
body.light-mode .canvas-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, #1A7A9E 0%, #135a75 100%);
    box-shadow: 0 2px 8px rgba(26, 122, 158, 0.25);
}
/* Already exists for sticky-sphere-status; reinforce for canvas row */
body.light-mode .canvas-status-row .sticky-sphere-status,
body.light-mode .canvas-panel .sticky-sphere-status {
    color: #4B5563 !important;
    text-shadow: none !important;
}

/* --- 2. Verification "No, let me correct it" button --- */
body.light-mode .btn-edit {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}
body.light-mode .btn-edit:hover {
    background: #F8FAFC !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .btn-edit .btn-edit-no,
body.light-mode .btn-edit .btn-edit-text {
    color: #1A1A1E !important;
    opacity: 1 !important;
}

/* --- 3. Visual Assessment / .analysis-section boundaries --- */
body.light-mode .analysis-section {
    background: #FFFFFF !important;
    color: #1A1A1E !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
body.light-mode .analysis-section h4 {
    color: #59616E !important;
}
/* Inline-style row separators in Visual Assessment / Technical Analysis */
body.light-mode .analysis-section [style*="rgba(255,255,255,0.1)"],
body.light-mode .analysis-section [style*="rgba(255, 255, 255, 0.1)"] {
    background-color: rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .analysis-section [style*="rgba(255,255,255,0.06)"],
body.light-mode .analysis-section [style*="rgba(255, 255, 255, 0.06)"],
body.light-mode .analysis-section [style*="rgba(255,255,255,0.03)"],
body.light-mode .analysis-section [style*="rgba(255, 255, 255, 0.03)"] {
    background: rgba(0, 0, 0, 0.03) !important;
}
body.light-mode .analysis-section [style*="color: #FFFFFF"],
body.light-mode .analysis-section [style*="color:#FFFFFF"],
body.light-mode .analysis-section [style*="color: white"],
body.light-mode .analysis-section [style*="color:white"] {
    color: #1A1A1E !important;
}
body.light-mode .analysis-section [style*="color: #9CA3AF"],
body.light-mode .analysis-section [style*="color:#9CA3AF"] {
    color: #59616E !important;
}
body.light-mode .analysis-section [style*="color: #666"],
body.light-mode .analysis-section [style*="color:#666"] {
    color: #59616E !important;
}

/* --- 4. "What's holding you back" full re-theme --- */
body.light-mode .holdback-title {
    color: #1A1A1E;
}
body.light-mode .holdback-count {
    background: rgba(248, 113, 113, 0.18);
    color: #B91C1C;
}
body.light-mode .holdback-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
body.light-mode .holdback-card-title {
    color: #1A1A1E;
}
body.light-mode .holdback-card-desc {
    color: #4B5563;
}
body.light-mode .holdback-loss-text {
    color: #6B7280;
}

/* --- 5. Catch-all DEON message safety net (scoped to chat) --- */
body.light-mode .deon-message [style*="color: #FFFFFF"],
body.light-mode .deon-message [style*="color:#FFFFFF"],
body.light-mode .deon-message [style*="color: #fff"],
body.light-mode .deon-message [style*="color:#fff"],
body.light-mode .deon-message [style*="color: white"],
body.light-mode .deon-message [style*="color:white"],
body.light-mode .message.assistant .message-bubble [style*="color: #FFFFFF"],
body.light-mode .message.assistant .message-bubble [style*="color:#FFFFFF"],
body.light-mode .message.assistant .message-bubble [style*="color: #fff"],
body.light-mode .message.assistant .message-bubble [style*="color:#fff"],
body.light-mode .message.assistant .message-bubble [style*="color: white"],
body.light-mode .message.assistant .message-bubble [style*="color:white"] {
    color: #1A1A1E !important;
}
body.light-mode .deon-message [style*="rgba(255,255,255,0.9)"],
body.light-mode .deon-message [style*="rgba(255, 255, 255, 0.9)"],
body.light-mode .deon-message [style*="rgba(255,255,255,0.8)"],
body.light-mode .deon-message [style*="rgba(255, 255, 255, 0.8)"],
body.light-mode .message.assistant .message-bubble [style*="rgba(255,255,255,0.9)"],
body.light-mode .message.assistant .message-bubble [style*="rgba(255, 255, 255, 0.9)"],
body.light-mode .message.assistant .message-bubble [style*="rgba(255,255,255,0.8)"],
body.light-mode .message.assistant .message-bubble [style*="rgba(255, 255, 255, 0.8)"] {
    color: #1A1A1E !important;
}
body.light-mode .deon-message [style*="rgba(255,255,255,0.6)"],
body.light-mode .deon-message [style*="rgba(255, 255, 255, 0.6)"],
body.light-mode .deon-message [style*="rgba(255,255,255,0.5)"],
body.light-mode .deon-message [style*="rgba(255, 255, 255, 0.5)"],
body.light-mode .message.assistant .message-bubble [style*="rgba(255,255,255,0.6)"],
body.light-mode .message.assistant .message-bubble [style*="rgba(255, 255, 255, 0.6)"],
body.light-mode .message.assistant .message-bubble [style*="rgba(255,255,255,0.5)"],
body.light-mode .message.assistant .message-bubble [style*="rgba(255, 255, 255, 0.5)"] {
    color: #59616E !important;
}
body.light-mode .deon-message [style*="rgba(255,255,255,0.4)"],
body.light-mode .deon-message [style*="rgba(255, 255, 255, 0.4)"],
body.light-mode .deon-message [style*="rgba(255,255,255,0.3)"],
body.light-mode .deon-message [style*="rgba(255, 255, 255, 0.3)"],
body.light-mode .message.assistant .message-bubble [style*="rgba(255,255,255,0.4)"],
body.light-mode .message.assistant .message-bubble [style*="rgba(255, 255, 255, 0.4)"],
body.light-mode .message.assistant .message-bubble [style*="rgba(255,255,255,0.3)"],
body.light-mode .message.assistant .message-bubble [style*="rgba(255, 255, 255, 0.3)"] {
    color: #6B7280 !important;
}

/* --- 6. What's Possible report sweep --- */
body.light-mode .whats-possible-container,
body.light-mode .marketing-content-container {
    color: #1A1A1E;
}
body.light-mode .whats-possible-container .subsection-card,
body.light-mode .marketing-content-container .subsection-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
body.light-mode .whats-possible-container .ws-opp-header h4,
body.light-mode .marketing-content-container .ws-opp-header h4,
body.light-mode .whats-possible-container .ws-opp-name,
body.light-mode .marketing-content-container .ws-opp-name,
body.light-mode .whats-possible-container .ws-opp-date-day,
body.light-mode .marketing-content-container .ws-opp-date-day {
    color: #1A1A1E;
}
body.light-mode .whats-possible-container .ws-opp-name a,
body.light-mode .whats-possible-container .ws-opp-link,
body.light-mode .marketing-content-container .ws-opp-name a,
body.light-mode .marketing-content-container .ws-opp-link {
    color: #1A7A9E;
}
body.light-mode .whats-possible-container .ws-opp-subtitle,
body.light-mode .marketing-content-container .ws-opp-subtitle,
body.light-mode .whats-possible-container .ws-opp-desc,
body.light-mode .marketing-content-container .ws-opp-desc,
body.light-mode .whats-possible-container .ws-opp-date-month,
body.light-mode .marketing-content-container .ws-opp-date-month,
body.light-mode .whats-possible-container .ws-events-disclaimer,
body.light-mode .marketing-content-container .ws-events-disclaimer {
    color: #59616E;
}
body.light-mode .whats-possible-container .ws-opp-item,
body.light-mode .marketing-content-container .ws-opp-item {
    border-color: rgba(0, 0, 0, 0.08);
}
body.light-mode .whats-possible-container .ws-opp-item:hover,
body.light-mode .marketing-content-container .ws-opp-item:hover {
    border-color: rgba(26, 122, 158, 0.25);
    background: rgba(26, 122, 158, 0.04);
}
body.light-mode .whats-possible-container .ws-opp-date,
body.light-mode .marketing-content-container .ws-opp-date {
    background: rgba(0, 0, 0, 0.04);
}
body.light-mode .whats-possible-container .ws-event-tabs,
body.light-mode .marketing-content-container .ws-event-tabs {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
body.light-mode .whats-possible-container .ws-event-tab,
body.light-mode .marketing-content-container .ws-event-tab {
    color: #59616E;
}
body.light-mode .whats-possible-container .ws-event-tab:hover,
body.light-mode .marketing-content-container .ws-event-tab:hover {
    color: #1A1A1E;
}
body.light-mode .whats-possible-container .ws-event-tab-active,
body.light-mode .marketing-content-container .ws-event-tab-active {
    color: #1A7A9E;
    border-bottom-color: #1A7A9E;
}
body.light-mode .whats-possible-container .ws-event-expand-btn,
body.light-mode .marketing-content-container .ws-event-expand-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #4B5563;
}
body.light-mode .whats-possible-container .ws-event-expand-btn:hover,
body.light-mode .marketing-content-container .ws-event-expand-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}
/* Inline white text catch-all inside What's Possible */
body.light-mode .whats-possible-container [style*="color: #FFFFFF"],
body.light-mode .whats-possible-container [style*="color:#FFFFFF"],
body.light-mode .whats-possible-container [style*="color: #fff"],
body.light-mode .whats-possible-container [style*="color:#fff"],
body.light-mode .whats-possible-container [style*="color: white"],
body.light-mode .marketing-content-container [style*="color: #FFFFFF"],
body.light-mode .marketing-content-container [style*="color:#FFFFFF"],
body.light-mode .marketing-content-container [style*="color: #fff"],
body.light-mode .marketing-content-container [style*="color:#fff"],
body.light-mode .marketing-content-container [style*="color: white"] {
    color: #1A1A1E !important;
}
body.light-mode .whats-possible-container [style*="rgba(255,255,255,0.6)"],
body.light-mode .whats-possible-container [style*="rgba(255, 255, 255, 0.6)"],
body.light-mode .whats-possible-container [style*="rgba(255,255,255,0.5)"],
body.light-mode .whats-possible-container [style*="rgba(255, 255, 255, 0.5)"],
body.light-mode .marketing-content-container [style*="rgba(255,255,255,0.6)"],
body.light-mode .marketing-content-container [style*="rgba(255, 255, 255, 0.6)"],
body.light-mode .marketing-content-container [style*="rgba(255,255,255,0.5)"],
body.light-mode .marketing-content-container [style*="rgba(255, 255, 255, 0.5)"] {
    color: #59616E !important;
}
body.light-mode .whats-possible-container [style*="rgba(255,255,255,0.06)"],
body.light-mode .whats-possible-container [style*="background:rgba(255,255,255,0.06)"],
body.light-mode .marketing-content-container [style*="rgba(255,255,255,0.06)"],
body.light-mode .marketing-content-container [style*="background:rgba(255,255,255,0.06)"] {
    background: rgba(0, 0, 0, 0.04) !important;
}

/* --- 7. Competitor Analysis report sweep --- */
body.light-mode .comparison-container,
body.light-mode .see-how-you-compare-container {
    color: #1A1A1E;
}
body.light-mode .reach-business-info-bar {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    backdrop-filter: none;
}
body.light-mode .reach-business-info-bar .reach-info-label {
    color: #59616E;
}
body.light-mode .reach-business-info-bar .reach-info-value {
    color: #1A1A1E;
}
body.light-mode .reach-business-info-bar .reach-info-divider {
    background: rgba(0, 0, 0, 0.1);
}
body.light-mode .reach-stat-label {
    color: #59616E;
}
body.light-mode .reach-stat-value {
    color: #1A1A1E;
}
body.light-mode .reach-stat-value.highlight {
    color: #1A7A9E;
}
/* Inline white-text catch-all inside competitor report */
body.light-mode .comparison-container [style*="color: #FFFFFF"],
body.light-mode .comparison-container [style*="color:#FFFFFF"],
body.light-mode .comparison-container [style*="color: #fff"],
body.light-mode .comparison-container [style*="color:#fff"],
body.light-mode .comparison-container [style*="color: white"],
body.light-mode .comparison-container [style*="color: #F0F0F2"],
body.light-mode .comparison-container [style*="color:#F0F0F2"],
body.light-mode .comparison-container [style*="color: #e8e8ec"],
body.light-mode .comparison-container [style*="color:#e8e8ec"] {
    color: #1A1A1E !important;
}
body.light-mode .comparison-container [style*="rgba(255,255,255,0.6)"],
body.light-mode .comparison-container [style*="rgba(255, 255, 255, 0.6)"],
body.light-mode .comparison-container [style*="rgba(255,255,255,0.5)"],
body.light-mode .comparison-container [style*="rgba(255, 255, 255, 0.5)"],
body.light-mode .comparison-container [style*="rgba(255,255,255,0.7)"],
body.light-mode .comparison-container [style*="rgba(255, 255, 255, 0.7)"] {
    color: #59616E !important;
}
body.light-mode .comparison-container [style*="rgba(255,255,255,0.4)"],
body.light-mode .comparison-container [style*="rgba(255, 255, 255, 0.4)"],
body.light-mode .comparison-container [style*="rgba(255,255,255,0.3)"],
body.light-mode .comparison-container [style*="rgba(255, 255, 255, 0.3)"] {
    color: #6B7280 !important;
}
body.light-mode .comparison-container [style*="rgba(255,255,255,0.06)"],
body.light-mode .comparison-container [style*="background: rgba(255,255,255,0.06)"],
body.light-mode .comparison-container [style*="background:rgba(255,255,255,0.06)"],
body.light-mode .comparison-container [style*="rgba(255,255,255,0.04)"],
body.light-mode .comparison-container [style*="rgba(255,255,255,0.03)"] {
    background: rgba(0, 0, 0, 0.04) !important;
}
body.light-mode .comparison-container [style*="rgba(255,255,255,0.1)"],
body.light-mode .comparison-container [style*="rgba(255, 255, 255, 0.1)"],
body.light-mode .comparison-container [style*="rgba(255,255,255,0.08)"],
body.light-mode .comparison-container [style*="rgba(255, 255, 255, 0.08)"] {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Round 3 — explicit accent strip on .analysis-section in light mode.
   Ensures the left gradient bar stays visible against the now-white
   card background; complements the saturate filter from Task #351. */
body.light-mode .analysis-section::before {
    opacity: 1;
    box-shadow:
        0 0 6px var(--gradient-primary-color, var(--gradient-primary-medium)),
        inset 1px 0 2px rgba(255, 255, 255, 0.4);
}

/* ===================================================================
   Task #360 — Light-mode polish Round 4
   - Single-report canvas title span
   - Evaluation report <h2> business-name header
   - "Your evaluation report is ready..." interactive-msg-card text
   =================================================================== */

/* 1. Single-report canvas title (rendered when only one report exists) */
body.light-mode .canvas-tabs span[style*="rgba(255,255,255,0.8)"],
body.light-mode .canvas-tabs span[style*="rgba(255, 255, 255, 0.8)"] {
    color: #1A1A1E !important;
}

/* 2. Evaluation report header — business name <h2> */
body.light-mode .evaluation-container h2,
body.light-mode .evaluation-wrapper h2 {
    color: #1A1A1E !important;
}
body.light-mode .evaluation-container [style*="color: #FFFFFF"],
body.light-mode .evaluation-container [style*="color:#FFFFFF"],
body.light-mode .evaluation-container [style*="color: #fff"],
body.light-mode .evaluation-container [style*="color:#fff"],
body.light-mode .evaluation-container [style*="color: white"],
body.light-mode .evaluation-wrapper [style*="color: #FFFFFF"],
body.light-mode .evaluation-wrapper [style*="color:#FFFFFF"],
body.light-mode .evaluation-wrapper [style*="color: #fff"],
body.light-mode .evaluation-wrapper [style*="color:#fff"],
body.light-mode .evaluation-wrapper [style*="color: white"] {
    color: #1A1A1E !important;
}

/* 3. "Your evaluation report is ready..." message text inside the
   interactive-msg-card. Card surface already light from earlier
   override; force inherited text colour to dark so the plain text
   nodes and the "evaluation report" link (color: inherit) are
   readable. Buttons set their own colors so they're unaffected. */
body.light-mode .interactive-msg-card {
    color: #1A1A1E;
}

/* ===================================================================
   Task #362 — Light-mode polish Round 5 + cross-cutting layout
   1. Chat surfaces unification + user bubble distinction
   2. Canvas vs chat panel background + 2x divider (both modes)
   3. Evaluation Score Breakdown empty bar visibility
   4. Evaluation Local Competitors container surface
   5. What's Possible toolkit message readability (force !important)
   6. What's Possible subtitles + section card surfaces
   7. What's Possible calendar polish (past/empty cells, month title)
   8. What's Possible locked event sign-in panel
   9. What's Possible Image Analysis section sweep + green accent
  10. Competitors map theme-sync (companion CSS for tile container)
  11. Competitors surrounding card surfaces
  12. Get Started (manager) tab sweep
   =================================================================== */

/* --- 1. Chat surfaces unification ---------------------------------- */
/* DEON-side cards (assistant bubble, business card, interactive card)
   share one elevated surface; user bubble keeps its tinted accent.    */
:root {
    --bg-deon-surface: #1E1E22;
    --bg-deon-surface-border: rgba(255, 255, 255, 0.06);
}
body.light-mode {
    --bg-deon-surface: #FFFFFF;
    --bg-deon-surface-border: rgba(0, 0, 0, 0.06);
    /* Shared cyan→gold ring used by every DEON action card in light
       mode (verification + interactive-message wrappers). */
    --deon-card-gradient: linear-gradient(135deg, #3AAFD4 0%, #1A7A9E 50%, #D4A843 100%);
}
.message.assistant .message-bubble,
.business-card,
.interactive-msg-card {
    background: var(--bg-deon-surface);
    border: 1px solid var(--bg-deon-surface-border);
}
/* Interactive-message wrapper: Round 9 restores the cyan→gold gradient
   ring in light mode so every DEON action card (post-evaluation,
   What's Possible, Competitors) matches the verification card's
   distinctive look. Inner card keeps the unified white DEON surface. */
body.light-mode .interactive-msg-card-wrapper {
    background: var(--deon-card-gradient);
    border: none;
    padding: 2px;
    box-shadow: 0 2px 14px rgba(26, 122, 158, 0.10);
}
body.light-mode .interactive-msg-card-wrapper .interactive-msg-card {
    background: var(--bg-deon-surface);
    border: none;
}
/* User bubble: stronger tint + subtle border so it visually separates
   from the DEON surface in both modes. */
.message.user .message-bubble {
    background: var(--bg-user-message);
    border: 1px solid rgba(58, 175, 212, 0.25);
}
body.light-mode .message.user .message-bubble {
    background: rgba(26, 122, 158, 0.10);
    border: 1px solid rgba(26, 122, 158, 0.22);
    color: #0F2A36;
}
body.light-mode .message.assistant .message-bubble {
    color: #1A1A1E;
}
body.light-mode .business-card,
body.light-mode .business-card h3,
body.light-mode .business-card .business-info {
    color: #1A1A1E;
}

/* --- 2. Canvas vs chat panel layout polish ------------------------- */
/* Dark mode: lift canvas slightly vs the chat column                  */
.canvas-panel {
    background: rgba(8, 8, 14, 0.55);
    border-left: 2px solid rgba(255, 255, 255, 0.06);
}
/* Light mode: very subtle off-white differentiation + visible divider */
body.light-mode .chat-view {
    background: #F5F7FA;
}
body.light-mode .canvas-panel {
    background: #FAFBFC;
    border-left: 2px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
}

/* --- 3. Evaluation Score Breakdown empty bar visibility ------------ */
/* Inline track is rgba(255,255,255,0.1) which is invisible on white.  */
body.light-mode .categories-breakdown [style*="background: rgba(255,255,255,0.1)"],
body.light-mode .categories-breakdown [style*="background:rgba(255,255,255,0.1)"],
body.light-mode .categories-breakdown [style*="background: rgba(255, 255, 255, 0.1)"],
body.light-mode .evaluation-container [style*="background: rgba(255,255,255,0.1)"],
body.light-mode .evaluation-container [style*="background:rgba(255,255,255,0.1)"],
body.light-mode .evaluation-wrapper [style*="background: rgba(255,255,255,0.1)"] {
    background: rgba(0, 0, 0, 0.08) !important;
}

/* --- 4. Local Competitors container surface (light mode card) ------ */
body.light-mode .local-competitors-section {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 20px;
    border-radius: 14px;
}
body.light-mode .local-competitors-section h4 {
    color: #1A1A1E;
}
body.light-mode .local-competitors-section .competitor-item {
    background: #F5F7FA;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
body.light-mode .local-competitors-section .competitor-item:hover {
    background: #EEF1F5;
    border-color: rgba(26, 122, 158, 0.25);
}
body.light-mode .local-competitors-section .competitor-item span {
    color: #1A1A1E;
}
body.light-mode .local-competitors-section .competitor-item .rating-info {
    color: #59616E;
}

/* --- 5. Marketing toolkit message readability (force) -------------- */
body.light-mode .interactive-msg-card,
body.light-mode .interactive-msg-card span {
    color: #1A1A1E !important;
}

/* --- 6. What's Possible subtitles + section surfaces --------------- */
/* Catch the #94A3B8 subtitle color used inline throughout WP/marketing*/
body.light-mode .whats-possible-container [style*="color: #94A3B8"],
body.light-mode .whats-possible-container [style*="color:#94A3B8"],
body.light-mode .marketing-content-container [style*="color: #94A3B8"],
body.light-mode .marketing-content-container [style*="color:#94A3B8"] {
    color: #59616E !important;
}
/* Promote the inline-styled section wrappers to white cards */
body.light-mode #progressive-images-section,
body.light-mode #progressive-color-section,
body.light-mode #progressive-events-section,
body.light-mode #progressive-image-analysis-section,
body.light-mode #progressive-social-section,
body.light-mode .whats-possible-container [style*="background: rgba(255, 255, 255, 0.06)"],
body.light-mode .whats-possible-container [style*="background:rgba(255, 255, 255, 0.06)"],
body.light-mode .marketing-content-container [style*="background: rgba(255, 255, 255, 0.06)"],
body.light-mode .marketing-content-container [style*="background:rgba(255, 255, 255, 0.06)"] {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
body.light-mode #progressive-images-section h3,
body.light-mode #progressive-color-section h3,
body.light-mode #progressive-events-section h3,
body.light-mode #progressive-image-analysis-section h3,
body.light-mode #progressive-social-section h3 {
    color: #1A1A1E;
}

/* --- 7. Calendar polish (light mode) ------------------------------- */
body.light-mode .calendar-month-title {
    color: #1A1A1E;
}
body.light-mode .calendar-weekday,
body.light-mode .legend-text,
body.light-mode .calendar-nav-btn,
body.light-mode .calendar-today-btn {
    color: #59616E;
}
body.light-mode .calendar-nav-btn:hover,
body.light-mode .calendar-today-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1A1A1E;
}
body.light-mode .calendar-days-grid {
    background: rgba(0, 0, 0, 0.08);
}
body.light-mode .calendar-day-cell {
    background: #FFFFFF;
}
body.light-mode .calendar-day-cell:hover {
    background: #F5F7FA;
}
body.light-mode .calendar-day-cell.empty,
body.light-mode .calendar-day-cell.empty:hover,
body.light-mode .calendar-day-cell.is-past,
body.light-mode .ws-cal-cell.is-past {
    background: #EEF1F5;
}
body.light-mode .calendar-day-number {
    color: #1A1A1E;
}
body.light-mode .calendar-day-cell.empty .calendar-day-number,
body.light-mode .calendar-day-cell.is-past .calendar-day-number,
body.light-mode .ws-cal-cell.is-past .calendar-day-number {
    color: #94A3B8;
}
body.light-mode .calendar-day-cell.is-today .calendar-day-number {
    color: #1A7A9E;
}

/* --- 8. Locked event sign-in panel --------------------------------- */
body.light-mode .ws-event-detail-panel {
    background: #FFFFFF;
    border-top: 1px solid rgba(26, 122, 158, 0.15);
    color: #1A1A1E;
}
body.light-mode .ws-event-detail-panel [style*="color:#FFFFFF"],
body.light-mode .ws-event-detail-panel [style*="color: #FFFFFF"] {
    color: #1A1A1E !important;
}
body.light-mode .ws-event-detail-panel [style*="rgba(255,255,255,0.4)"],
body.light-mode .ws-event-detail-panel [style*="rgba(255, 255, 255, 0.4)"],
body.light-mode .ws-event-detail-panel [style*="rgba(255,255,255,0.45)"],
body.light-mode .ws-event-detail-panel [style*="rgba(255, 255, 255, 0.45)"],
body.light-mode .ws-event-detail-panel [style*="rgba(255,255,255,0.85)"],
body.light-mode .ws-event-detail-panel [style*="rgba(255, 255, 255, 0.85)"] {
    color: #59616E !important;
}
body.light-mode .ws-event-detail-panel [style*="background:rgba(255,255,255,0.1)"],
body.light-mode .ws-event-detail-panel [style*="background: rgba(255,255,255,0.1)"] {
    background: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .ws-event-detail-error {
    color: #B91C1C;
}

/* --- 9. Image Analysis section (light mode + green accent) --------- */
body.light-mode .image-analysis-card {
    --accent-analysis-green: #16A34A;
}
body.light-mode .image-analysis-card [style*="color: #4ADE80"],
body.light-mode .image-analysis-card [style*="color:#4ADE80"] {
    color: #16A34A !important;
}
body.light-mode .image-analysis-card [style*="background: rgba(74, 222, 128, 0.1)"],
body.light-mode .image-analysis-card [style*="background:rgba(74, 222, 128, 0.1)"] {
    background: rgba(22, 163, 74, 0.08) !important;
}
body.light-mode .image-analysis-card [style*="border: 1px solid rgba(74, 222, 128, 0.4)"],
body.light-mode .image-analysis-card [style*="rgba(74, 222, 128, 0.4)"] {
    border-color: rgba(22, 163, 74, 0.35) !important;
}
body.light-mode .image-analysis-card [style*="background: rgba(255,255,255,0.03)"],
body.light-mode .image-analysis-card [style*="background:rgba(255,255,255,0.03)"],
body.light-mode .image-analysis-card [style*="background: var(--color-bg-surface"] {
    background: #F5F7FA !important;
}

/* --- 10/11. Competitor map + surrounding surfaces ------------------ */
body.light-mode #reach-map-container,
body.light-mode .reach-potential-map {
    background: #F5F7FA;
}
body.light-mode .reach-potential-map.light-mode-map {
    background: #FFFFFF;
}
body.light-mode .reach-route-legend,
body.light-mode .reach-comparison-chip {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #1A1A1E !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* --- 12. Get Started (Marketing Manager) tab sweep ----------------- */
/* Real classes confirmed via DOM/grep on app.js: .marketing-manager-section
   (outer wrapper) → .mm-main-container (inner card flex row) with these
   children: .mm-step-header, .mm-step-counter, .mm-step-indicator,
   .mm-step-circle, .mm-step-label, .mm-slider-container, .mm-slider,
   .mm-slide, .mm-show-pricing-btn, .mm-back-link, #mmPricingCards,
   .mm-plan-card (+.selected), #mmAuthSection, #mmAuthSuccess,
   #mmSignUpForm, .mm-skip-btn, #marketing-manager-video.
   Overrides below are scoped to .marketing-manager-section so they
   don't leak. Inline styles dominate the markup so attribute selectors
   handle text colors; class selectors handle box surfaces. */
body.light-mode .marketing-manager-section,
body.light-mode .marketing-manager-section .mm-main-container {
    color: #1A1A1E;
}
body.light-mode .marketing-manager-section .mm-main-container {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
body.light-mode .marketing-manager-section .mm-step-header {
    background: #F5F7FA !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Collapsed Marketing Manager (after Skip) — strip the card so the
   heading sits directly on the chat surface. Wins over both the inline
   dark backdrop and the light-mode .mm-main-container override above. */
.marketing-manager-section .mm-main-container.mm-collapsed-state,
body.light-mode .marketing-manager-section .mm-main-container.mm-collapsed-state {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
/* Heading color follows the active theme. Dark mode keeps the inline
   white; light mode flips to the same near-black used elsewhere on
   the section. The "DEON" gradient also flips so it stays visible
   on a white background. */
body.light-mode .marketing-manager-section .mm-collapsed-header h2 {
    color: #1A1A1E !important;
    -webkit-text-fill-color: #1A1A1E !important;
}
body.light-mode .marketing-manager-section .mm-collapsed-header h2 .mm-collapsed-deon {
    background: linear-gradient(135deg, #5ECAF0 0%, #1A7A9E 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
/* Collapsed-state arrow — fixed (no bounce) and the cyan halo only
   appears on hover. Scoped to .mm-collapsed-header so the same
   .deon-arrow-pointer class keeps its existing look elsewhere. */
.mm-collapsed-header .deon-arrow-pointer {
    box-shadow: none;
    animation: none !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.mm-collapsed-header:hover .deon-arrow-pointer,
.mm-collapsed-header .deon-arrow-pointer:hover {
    box-shadow: 0 0 20px rgba(58, 175, 212, 0.4);
}
/* Generic inline-style overrides scoped to the section.
   Text colors: white/near-white → near-black. */
body.light-mode .marketing-manager-section [style*="color: #F0F0F2"],
body.light-mode .marketing-manager-section [style*="color:#F0F0F2"],
body.light-mode .marketing-manager-section [style*="color: #E0E7EF"],
body.light-mode .marketing-manager-section [style*="color:#E0E7EF"],
body.light-mode .marketing-manager-section [style*="color: #FFFFFF"],
body.light-mode .marketing-manager-section [style*="color:#FFFFFF"],
body.light-mode .marketing-manager-section [style*="color: #fff"],
body.light-mode .marketing-manager-section [style*="color:#fff"],
body.light-mode .marketing-manager-section [style*="color: white"] {
    color: #1A1A1E !important;
}
/* Mid-grey labels stay mid-grey but on the new mid-grey scale (#59616E). */
body.light-mode .marketing-manager-section [style*="color: #64748B"],
body.light-mode .marketing-manager-section [style*="color:#64748B"],
body.light-mode .marketing-manager-section [style*="color: #94A3B8"],
body.light-mode .marketing-manager-section [style*="color:#94A3B8"],
body.light-mode .marketing-manager-section [style*="color: #3A3A42"],
body.light-mode .marketing-manager-section [style*="color:#3A3A42"],
body.light-mode .marketing-manager-section [style*="rgba(255,255,255,0.6)"],
body.light-mode .marketing-manager-section [style*="rgba(255, 255, 255, 0.6)"],
body.light-mode .marketing-manager-section [style*="rgba(255,255,255,0.5)"],
body.light-mode .marketing-manager-section [style*="rgba(255, 255, 255, 0.5)"] {
    color: #59616E !important;
}
/* Inline backgrounds — translucent-white card surfaces (plan cards
   use 0.04, pill chips use 0.06) become a subtle neutral grey so they
   still read as chips on the now-white container. The .mm-plan-card
   class rule below re-promotes the plan cards back to pure white via
   higher cascade order. */
body.light-mode .marketing-manager-section [style*="background: rgba(255, 255, 255, 0.04)"],
body.light-mode .marketing-manager-section [style*="background:rgba(255, 255, 255, 0.04)"],
body.light-mode .marketing-manager-section [style*="background: rgba(255,255,255,0.04)"],
body.light-mode .marketing-manager-section [style*="background:rgba(255,255,255,0.04)"],
body.light-mode .marketing-manager-section [style*="background: rgba(255, 255, 255, 0.06)"],
body.light-mode .marketing-manager-section [style*="background:rgba(255, 255, 255, 0.06)"],
body.light-mode .marketing-manager-section [style*="background: rgba(255,255,255,0.06)"],
body.light-mode .marketing-manager-section [style*="background:rgba(255,255,255,0.06)"] {
    background: #F5F7FA !important;
}
/* Inner-card-base inline backdrop (rgba(17,17,19,...)) on the
   .mm-main-container is handled by the .mm-main-container class rule
   above; the original step-header inline rgba(0,0,0,0.2) is covered by
   the .mm-step-header class rule. No duplicate attribute selectors are
   needed for those. */
/* The right-rail video panel and its inner gradient frame use darker
   inline backdrops — give them a soft neutral so they nest on white. */
body.light-mode .marketing-manager-section [style*="background: rgba(0, 0, 0, 0.3)"],
body.light-mode .marketing-manager-section [style*="background:rgba(0, 0, 0, 0.3)"],
body.light-mode .marketing-manager-section [style*="background: rgba(0,0,0,0.3)"],
body.light-mode .marketing-manager-section [style*="background:rgba(0,0,0,0.3)"] {
    background: #F5F7FA !important;
    border-left-color: rgba(0, 0, 0, 0.06) !important;
}
/* Inline borders/dividers — translucent-white edges become subtle dark. */
body.light-mode .marketing-manager-section [style*="border: 1px solid rgba(255, 255, 255, 0.06)"],
body.light-mode .marketing-manager-section [style*="border:1px solid rgba(255, 255, 255, 0.06)"],
body.light-mode .marketing-manager-section [style*="border: 1px solid rgba(255, 255, 255, 0.08)"],
body.light-mode .marketing-manager-section [style*="border:1px solid rgba(255, 255, 255, 0.08)"],
body.light-mode .marketing-manager-section [style*="border: 1px solid rgba(255, 255, 255, 0.1)"],
body.light-mode .marketing-manager-section [style*="border:1px solid rgba(255, 255, 255, 0.1)"] {
    border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .marketing-manager-section [style*="border-bottom: 1px solid rgba(255, 255, 255, 0.06)"],
body.light-mode .marketing-manager-section [style*="border-bottom:1px solid rgba(255, 255, 255, 0.06)"],
body.light-mode .marketing-manager-section [style*="border-bottom: 1px solid rgba(255, 255, 255, 0.08)"],
body.light-mode .marketing-manager-section [style*="border-bottom:1px solid rgba(255, 255, 255, 0.08)"] {
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .marketing-manager-section [style*="border-left: 1px solid rgba(255, 255, 255, 0.08)"],
body.light-mode .marketing-manager-section [style*="border-left:1px solid rgba(255, 255, 255, 0.08)"] {
    border-left-color: rgba(0, 0, 0, 0.06) !important;
}
/* Step indicator connector: a thin 2px bar colored rgba(255,255,255,0.1)
   reads as nothing on white. */
body.light-mode .marketing-manager-section .mm-step-header [style*="background: rgba(255, 255, 255, 0.1)"],
body.light-mode .marketing-manager-section .mm-step-header [style*="background:rgba(255, 255, 255, 0.1)"],
body.light-mode .marketing-manager-section .mm-step-header [style*="background: rgba(255,255,255,0.1)"],
body.light-mode .marketing-manager-section .mm-step-header [style*="background:rgba(255,255,255,0.1)"] {
    background: rgba(0, 0, 0, 0.12) !important;
}
/* ---- Authoritative class-scoped surfaces (placed last so they win
   the cascade over the generic attribute selectors above). ---- */
/* Plan cards (free/pro/unlimited) — promote to clean white card
   surfaces; the .selected card keeps a cyan-tinted accent. */
body.light-mode .marketing-manager-section .mm-plan-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    color: #1A1A1E;
}
body.light-mode .marketing-manager-section .mm-plan-card.selected {
    background: rgba(26, 122, 158, 0.06) !important;
    border: 2px solid #1A7A9E !important;
    box-shadow: 0 4px 14px rgba(26, 122, 158, 0.18);
}
/* Skip button — soften the dark border and grey out the label. */
body.light-mode .marketing-manager-section .mm-skip-btn {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #59616E !important;
}
body.light-mode .marketing-manager-section .mm-skip-btn:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}
/* Inactive step circle — white-on-white is invisible. */
body.light-mode .marketing-manager-section .mm-step-indicator .mm-step-circle[style*="rgba(255, 255, 255, 0.08)"],
body.light-mode .marketing-manager-section .mm-step-indicator .mm-step-circle[style*="rgba(255,255,255,0.08)"] {
    background: rgba(0, 0, 0, 0.06) !important;
}
/* Auth success banner — keep the green accent but anchor the surface. */
body.light-mode .marketing-manager-section #mmAuthSuccess {
    background: rgba(22, 163, 74, 0.08) !important;
    border-color: rgba(22, 163, 74, 0.3) !important;
}
/* Right-side video panel frame. */
body.light-mode .marketing-manager-section #marketing-manager-video {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* ============================================================
   ROUND 6 — Light-mode polish (Task #367)
   - Expanded What's Possible event panel (Preparation Timeline,
     What to Print, Budget tabs with inline white text)
   - Calendar (ws-cal-* squares + header + footer)
   - Image Analysis outer wrapper + per-image cards
   - Reach map style toggle + reach-stat boxes
   - Competitive Position card/bar (uses new .cp-* classes)
   ============================================================ */

/* --- Competitive Position: shared (dark + light) classes ----- */
#competitive-position-container .cp-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
}
#competitive-position-container .cp-title {
    font-size: 15px;
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 14px;
    font-family: 'Manrope', system-ui, sans-serif;
}
#competitive-position-container .cp-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
#competitive-position-container .cp-name {
    width: 90px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#competitive-position-container .cp-row-user .cp-name {
    color: #FFFFFF;
    font-weight: 700;
}
#competitive-position-container .cp-bar-track {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    height: 12px;
    overflow: hidden;
}
#competitive-position-container .cp-bar-fill {
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}
#competitive-position-container .cp-row-user .cp-bar-fill {
    background: #FFFFFF;
}
#competitive-position-container .cp-value {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    min-width: 55px;
    text-align: right;
}
#competitive-position-container .cp-row-user .cp-value {
    color: #FFFFFF;
}

/* --- Competitive Position: light-mode overrides -------------- */
body.light-mode #competitive-position-container .cp-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
body.light-mode #competitive-position-container .cp-title {
    color: #1A1A1E;
}
body.light-mode #competitive-position-container .cp-name {
    color: #4B5563;
}
body.light-mode #competitive-position-container .cp-row-user .cp-name {
    color: #1A1A1E;
}
body.light-mode #competitive-position-container .cp-bar-track {
    background: rgba(0, 0, 0, 0.06);
}
body.light-mode #competitive-position-container .cp-bar-fill {
    background: #9CA3AF;
}
body.light-mode #competitive-position-container .cp-row-user .cp-bar-fill {
    background: #1A7A9E;
}
body.light-mode #competitive-position-container .cp-value {
    color: #4B5563;
}
body.light-mode #competitive-position-container .cp-row-user .cp-value {
    color: #1A1A1E;
}

/* --- Expanded event panel (Preparation Timeline / Print / Budget) --- */
/* The .ws-event-detail-panel surface itself was already turned white in
   Round 5 (Section 8). These rules cover the inline rgba(255,255,255,*)
   text/border/background values inside the three tab renderers. */
body.light-mode .ws-event-detail-panel [style*="rgba(255,255,255,0.85)"],
body.light-mode .ws-event-detail-panel [style*="rgba(255, 255, 255, 0.85)"] {
    color: #1A1A1E !important;
}
body.light-mode .ws-event-detail-panel [style*="rgba(255,255,255,0.55)"],
body.light-mode .ws-event-detail-panel [style*="rgba(255, 255, 255, 0.55)"],
body.light-mode .ws-event-detail-panel [style*="rgba(255,255,255,0.5)"],
body.light-mode .ws-event-detail-panel [style*="rgba(255, 255, 255, 0.5)"] {
    color: #4B5563 !important;
}
body.light-mode .ws-event-detail-panel [style*="rgba(255,255,255,0.35)"],
body.light-mode .ws-event-detail-panel [style*="rgba(255, 255, 255, 0.35)"],
body.light-mode .ws-event-detail-panel [style*="rgba(255,255,255,0.3)"],
body.light-mode .ws-event-detail-panel [style*="rgba(255, 255, 255, 0.3)"] {
    color: #6B7280 !important;
}
/* Print-tab dividers + budget surrounds (rgba 0.06 / 0.04 backgrounds) */
body.light-mode .ws-event-detail-panel [style*="border-bottom:1px solid rgba(255,255,255,0.06)"],
body.light-mode .ws-event-detail-panel [style*="border-bottom: 1px solid rgba(255,255,255,0.06)"] {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .ws-event-detail-panel [style*="background:rgba(255,255,255,0.04)"],
body.light-mode .ws-event-detail-panel [style*="background: rgba(255,255,255,0.04)"] {
    background: #F5F7FA !important;
}
/* Vertical timeline rail */
body.light-mode .ws-event-detail-panel [style*="background:rgba(255,255,255,0.1)"]:not([style*="padding"]) {
    background: rgba(0, 0, 0, 0.12) !important;
}
body.light-mode .ws-event-detail-empty {
    color: #6B7280;
}

/* --- Calendar (ws-cal-* — generateEmbeddedCalendarHTML) ------ */
body.light-mode .ws-cal-title {
    color: #1A1A1E;
}
body.light-mode .ws-cal-weekday {
    color: #4B5563;
}
body.light-mode .ws-cal-cell {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
}
body.light-mode .ws-cal-cell.empty {
    background: transparent;
    border-color: transparent;
}
body.light-mode .ws-cal-cell.is-past {
    background: #EEF1F5;
    border-color: rgba(0, 0, 0, 0.06);
}
body.light-mode .ws-cal-cell.is-today {
    background: rgba(58, 175, 212, 0.10);
    border-color: rgba(26, 122, 158, 0.45);
    box-shadow: 0 0 8px rgba(26, 122, 158, 0.15);
}
body.light-mode .ws-cal-cell.has-post {
    background: rgba(58, 175, 212, 0.06);
    border-color: rgba(26, 122, 158, 0.30);
}
body.light-mode .ws-cal-cell.has-post:hover {
    background: rgba(58, 175, 212, 0.14);
    border-color: rgba(26, 122, 158, 0.45);
}
body.light-mode .ws-cal-day-num {
    color: #1A1A1E;
}
body.light-mode .ws-cal-cell.is-today .ws-cal-day-num {
    color: #1A7A9E;
}
body.light-mode .ws-cal-cell.is-past .ws-cal-day-num {
    color: #94A3B8;
    opacity: 0.7;
}
body.light-mode .ws-cal-footer {
    color: #1A7A9E;
}
body.light-mode .ws-cal-nav-btn {
    border-color: rgba(0, 0, 0, 0.1);
    color: #4B5563;
}
body.light-mode .ws-cal-nav-btn:hover {
    border-color: rgba(26, 122, 158, 0.35);
    color: #1A7A9E;
}
/* Standalone calendar (.calendar-day-cell): cover today/has-post tints
   that the Round 5 rule didn't catch. */
body.light-mode .calendar-day-cell.is-today {
    background: rgba(58, 175, 212, 0.10);
}
body.light-mode .calendar-day-cell.is-today:hover {
    background: rgba(58, 175, 212, 0.16);
}
body.light-mode .calendar-day-cell.is-today::after {
    border-color: rgba(26, 122, 158, 0.45);
}
body.light-mode .calendar-day-cell.clickable.has-post {
    background: rgba(58, 175, 212, 0.06);
}
body.light-mode .calendar-day-cell.clickable.has-post:hover {
    background: rgba(58, 175, 212, 0.14);
    box-shadow: 0 4px 12px rgba(26, 122, 158, 0.15);
}

/* --- Image Analysis outer wrapper + per-image cards ---------- */
/* The progressive section uses inline background rgba(255,255,255,0.06)
   already caught by Section 6 (line 11650). Here we override the
   per-image card created in createImageAnalysisCard() which uses
   var(--bg-card) for the outer container and var(--color-bg-surface)
   for the image wrapper. */
body.light-mode #progressive-image-analysis-content {
    --bg-card: #FFFFFF;
    --color-bg-surface: #F5F7FA;
}
body.light-mode #progressive-image-analysis-content > div {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
/* "Original image" / "Analysis report" labels and flaw-card titles are
   now driven by classes (.wp-image-section-label, .wp-flaw-title) — see
   the dedicated block lower in this file. Prior attempts here used
   [style*="color: #94A3B8"] / [style*="color: #FFFFFF"] attribute
   selectors which silently fail because browsers normalize inline hex
   colors to rgb() in the serialized style attribute. Those rules have
   been removed; the issue-description body rule below stays since it's
   a separate concern. */
body.light-mode #progressive-image-analysis-content [style*="color: #94A3B8"]:not([style*="letter-spacing"]),
body.light-mode #progressive-image-analysis-content [style*="color:#94A3B8"]:not([style*="letter-spacing"]) {
    color: #374151 !important;
}

/* --- Top Visual Strengths / Areas for Improvement -----------------
   Both the legacy and progressive renderers use a single tinted
   <div> container with a 1px rgba(255,255,255,0.1) row separator on
   each row (subtle in dark mode, fully neutralized in light mode).

   Why the .analysis-section scope and !important on background:
   the broader rule earlier in this file
     body.light-mode .analysis-section [style*="rgba(255,255,255,0.1)"]
   matches every row (each row carries a 1px rgba(255,255,255,0.1)
   border-bottom inline) and applies a dark-grey background-color,
   which renders as visible "stripe" rectangles inside the green/
   orange tinted block. We need equal-or-higher specificity AND
   !important to fully erase that. The selector below is (0,3,1) —
   same as the offender — and comes later in source, so it wins.
   The old .eval-strengths-table / .eval-improvements-table overrides
   are removed because the markup no longer renders as a table. */
body.light-mode .analysis-section .eval-strengths-list-row,
body.light-mode .analysis-section .eval-improvements-list-row {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- Reach map controls + reach-stat boxes ------------------- */
/* Style toggle + expand button: white pill, neutral grey, lower.
   Round 7 fix: scope to body.light-mode only (NOT .light-mode-map),
   so the bottom offset and white-pill styling stay constant when the
   user toggles map tile style. Previously the rules required
   .light-mode-map which was removed when switching to dark tiles,
   causing the button to jump from bottom:16px to bottom:35px. */
/* Round 8: strengthened so the pill is unmistakably visible against
   the very light map tiles — solid white, darker stroke, real shadow. */
body.light-mode .map-style-toggle,
body.light-mode .reach-expand-btn {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: #1F2937;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.10);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.light-mode .map-style-toggle:hover,
body.light-mode .reach-expand-btn:hover {
    background: #F3F4F6;
    color: #0F172A;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.12);
}
/* Lower the style toggle slightly per user request — applies in light
   page mode regardless of the tile style class. */
body.light-mode .map-style-toggle {
    bottom: 16px;
}
body.light-mode .reach-potential-container.reach-fullscreen .map-style-toggle {
    bottom: 30px;
}
/* Task #370 — Map toggle icon visibility on dark site + light map.
   When the page is in dark mode but the user has switched the map to
   light tiles, the default toggle styling renders a near-white pill
   with a white sun/moon icon, making the icon disappear against the
   bright tiles. Apply the same readable white-pill / dark-icon styling
   that body.light-mode already uses, scoped to the .light-mode-map
   container so it activates whenever the map itself is light —
   regardless of the page mode. Bottom-position offsets are intentionally
   NOT touched here (Round 7 keeps those scoped to body.light-mode). */
.light-mode-map .map-style-toggle {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: #1F2937;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.10);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.light-mode-map .map-style-toggle:hover {
    background: #F3F4F6;
    color: #0F172A;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.12);
}
/* Three stat boxes above the map (People in range / Peak foot traffic /
   Untapped audience) */
body.light-mode .ws-reach-stat-box {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
body.light-mode .ws-reach-stat-box .ws-reach-stat-label-top {
    color: #59616E;
}
body.light-mode .ws-reach-stat-box .ws-reach-stat-value {
    color: #1A1A1E;
}
body.light-mode .ws-reach-stat-box .ws-reach-stat-label {
    color: #6B7280;
}

/* ===================================================================
   Task #368 — Light-mode polish Round 7
   - Verification card gradient ring restored + sphere darken
   - Calendar legend, social-platform pills (ws-cal-tag)
   - Image Analysis subtitle
   - Customers You're Missing card surface, Top searches rows,
     summary paragraph
   - Competitive Position + Reach Potential outer panels
   - Reach map control panel (white-glass)
   - Get Started green check circles + Show me pricing CTA polish
   All overrides scoped under body.light-mode so dark mode is byte-identical.
   =================================================================== */

/* --- 1. Verification card: restore + strengthen gradient ring ------ */
/* Override the Round-6 flat-border treatment with a thicker, fully
   opaque cyan→gold gradient ring that reads against the white page.   */
body.light-mode .business-card-wrapper {
    background: var(--deon-card-gradient);
    border: none;
    padding: 2px;
    box-shadow: 0 2px 14px rgba(26, 122, 158, 0.10);
}
body.light-mode .business-card-wrapper .business-card {
    background: var(--bg-deon-surface);
    border: none;
}

/* --- 2. Spheres: tint darker on white so silhouette + highlights read */
/* Sphere is rendered to a 2D canvas; CSS filter is the safest, lowest-
   risk way to darken it without touching geometry/animation logic.    */
body.light-mode .sticky-sphere-container canvas,
body.light-mode .mini-sphere-container canvas {
    filter: brightness(0.55) saturate(1.15) contrast(1.15);
}

/* --- 3. Calendar legend (ws-cal-legend) ---------------------------- */
body.light-mode .ws-cal-legend {
    border-top-color: rgba(0, 0, 0, 0.08);
}
body.light-mode .ws-cal-legend-item {
    color: #4B5563;
}

/* --- 4. Social-platform tags (ws-cal-tag) — lighten dark-blue brands */
/* Facebook, LinkedIn, Google read as dark blobs on white; brighten or
   tint them in light mode so they remain identifiable but readable.   */
body.light-mode .ws-cal-tag-facebook {
    background: #4A95F4;
}
body.light-mode .ws-cal-tag-linkedin {
    background: #2D8AD6;
}
body.light-mode .ws-cal-tag-google {
    background: #5C9BF7;
}
body.light-mode .ws-cal-tag-x,
body.light-mode .ws-cal-tag-twitter {
    background: #4DB5F5;
}

/* --- 5. Image Analysis subtitle (rgba 255/255/255/0.4) ------------- */
/* Renderer at app.js ~8730 sets the description color inline. The
   existing #94A3B8 override (Section above) handles the per-card
   "Original image"/"Analysis report" labels. Add subtitle handling. */
body.light-mode #progressive-image-analysis-section [style*="rgba(255,255,255,0.4)"],
body.light-mode #progressive-image-analysis-section [style*="rgba(255, 255, 255, 0.4)"] {
    color: #59616E !important;
}

/* --- 6. Customers You're Missing — outer + inner hero card --------- */
/* Outer section (created in two paths: progressive 11479 + SSE 12188) */
body.light-mode #customers-missing-section,
body.light-mode #competitive-position-section,
body.light-mode #reach-potential-section {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}
/* Section headers (h3 + subtitle paragraph) inside these three panels */
body.light-mode #customers-missing-section h3,
body.light-mode #competitive-position-section h3,
body.light-mode #reach-potential-section h3 {
    color: #1A1A1E !important;
}
body.light-mode #customers-missing-section [style*="rgba(255,255,255,0.4)"],
body.light-mode #customers-missing-section [style*="rgba(255, 255, 255, 0.4)"],
body.light-mode #competitive-position-section [style*="rgba(255,255,255,0.4)"],
body.light-mode #competitive-position-section [style*="rgba(255, 255, 255, 0.4)"],
body.light-mode #reach-potential-section [style*="rgba(255,255,255,0.4)"],
body.light-mode #reach-potential-section [style*="rgba(255, 255, 255, 0.4)"] {
    color: #59616E !important;
}

/* Round 9: Competitor Reach search-term cards. The renderer at
   app.js ~12872 stamps each card and its progress bars with white-alpha
   inline styles that disappear on the now-white section background.
   Re-color the card surface, bar tracks, competitor fill, losing-You
   fill, and in-card text in light mode only. */
/* Search-term card container */
body.light-mode #reach-potential-section [style*="background: rgba(255, 255, 255, 0.03)"],
body.light-mode #reach-potential-section [style*="background:rgba(255,255,255,0.03)"] {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
/* Empty bar track */
body.light-mode #reach-potential-section [style*="background: rgba(255,255,255,0.06)"],
body.light-mode #reach-potential-section [style*="background:rgba(255,255,255,0.06)"] {
    background: #E5E7EB !important;
}
/* Competitor (top) bar fill — was rgba(255,255,255,0.3) */
body.light-mode #reach-potential-section [style*="background: rgba(255,255,255,0.3)"],
body.light-mode #reach-potential-section [style*="background:rgba(255,255,255,0.3)"] {
    background: #9CA3AF !important;
}
/* Losing-You bar fill — was rgba(255, 255, 255, 0.4) */
body.light-mode #reach-potential-section [style*="background: rgba(255, 255, 255, 0.4)"],
body.light-mode #reach-potential-section [style*="background:rgba(255,255,255,0.4)"] {
    background: #1A7A9E !important;
}
/* In-card text values (competitor name, position, "Visible") */
body.light-mode #reach-potential-section [style*="color: rgba(255,255,255,0.5)"],
body.light-mode #reach-potential-section [style*="color: rgba(255, 255, 255, 0.5)"],
body.light-mode #reach-potential-section [style*="color: rgba(255,255,255,0.6)"],
body.light-mode #reach-potential-section [style*="color: rgba(255, 255, 255, 0.6)"] {
    color: #4B5563 !important;
}
body.light-mode #reach-potential-section [style*="color: rgba(255,255,255,0.35)"],
body.light-mode #reach-potential-section [style*="color: rgba(255, 255, 255, 0.35)"] {
    color: #6B7280 !important;
}
/* Search-term title + "You" label (rendered as #FFFFFF inline) */
body.light-mode #reach-potential-section [style*="color: #FFFFFF"],
body.light-mode #reach-potential-section [style*="color:#FFFFFF"] {
    color: #1A1A1E !important;
}

/* Inner "410 customers searching" hero box — was rgba(0,0,0,0.3)
   (a dark grey blob in light mode). Convert to a soft cyan-tinted
   panel that reads as a featured stat without screaming. */
body.light-mode #customers-missing-container [style*="background: rgba(0, 0, 0, 0.3)"],
body.light-mode #customers-missing-container [style*="background:rgba(0,0,0,0.3)"],
body.light-mode #customers-missing-container [style*="background: rgba(0,0,0,0.3)"] {
    background: #F0F8FB !important;
    border: 1px solid rgba(26, 122, 158, 0.18) !important;
}
/* The "410" digit + secondary copy inside that hero box */
body.light-mode #customers-missing-container [style*="color: #FFFFFF"],
body.light-mode #customers-missing-container [style*="color:#FFFFFF"] {
    color: #1A1A1E !important;
}
body.light-mode #customers-missing-container [style*="rgba(255,255,255,0.7)"],
body.light-mode #customers-missing-container [style*="rgba(255, 255, 255, 0.7)"] {
    color: #4B5563 !important;
}
body.light-mode #customers-missing-container [style*="rgba(255,255,255,0.4)"],
body.light-mode #customers-missing-container [style*="rgba(255, 255, 255, 0.4)"] {
    color: #59616E !important;
}
/* "Top searches in your area" h4 (#F0F0F2) */
body.light-mode #customers-missing-container [style*="color: #F0F0F2"],
body.light-mode #customers-missing-container [style*="color:#F0F0F2"] {
    color: #1A1A1E !important;
}

/* --- 7. Top searches rows ----------------------------------------- */
/* Row wrapper: rgba(255,255,255,0.03) bg + rgba(255,255,255,0.06)
   border are invisible on white. Convert to a subtle white card.    */
body.light-mode #customers-missing-container [style*="background: rgba(255, 255, 255, 0.03)"],
body.light-mode #customers-missing-container [style*="background:rgba(255,255,255,0.03)"] {
    background: #FFFFFF !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}
body.light-mode #customers-missing-container [style*="border: 1px solid rgba(255,255,255,0.06)"],
body.light-mode #customers-missing-container [style*="border:1px solid rgba(255,255,255,0.06)"] {
    border-color: rgba(0, 0, 0, 0.08) !important;
}
/* Row text colors: term ("blue widgets"), competitor name, position
   labels, italic "Visible"/"Not ranked"/"No data" all use
   rgba(255,255,255,*) inline. Map them to dark neutrals. */
body.light-mode #customers-missing-container [style*="color: #FFFFFF; font-weight: 700"],
body.light-mode #customers-missing-container [style*="color:#FFFFFF; font-weight: 700"] {
    color: #1A1A1E !important;
}
body.light-mode #customers-missing-container [style*="rgba(255,255,255,0.6)"],
body.light-mode #customers-missing-container [style*="rgba(255, 255, 255, 0.6)"] {
    color: #4B5563 !important;
}
body.light-mode #customers-missing-container [style*="rgba(255,255,255,0.5)"],
body.light-mode #customers-missing-container [style*="rgba(255, 255, 255, 0.5)"] {
    color: #4B5563 !important;
}
body.light-mode #customers-missing-container [style*="rgba(255,255,255,0.45)"],
body.light-mode #customers-missing-container [style*="rgba(255, 255, 255, 0.45)"] {
    color: #59616E !important;
}
body.light-mode #customers-missing-container [style*="rgba(255,255,255,0.35)"],
body.light-mode #customers-missing-container [style*="rgba(255, 255, 255, 0.35)"] {
    color: #6B7280 !important;
}
/* Ranking bar (track + fills) is now driven by stable classes —
   .csm-bar-track, .csm-bar-fill-competitor, .csm-bar-fill-user,
   .csm-bar-fill-winner, .csm-rank-label, .csm-bar-track-empty.
   See the dedicated block lower in this file. The previous
   [style*="background: rgba(255, 255, 255, 0.3)"] / 0.4 / 0.06
   attribute-selector overrides have been removed because modern
   browsers serialize inline rgba() backgrounds to rgb(...) (CSS
   Color Level 4) in the style attribute, so those selectors
   silently failed to match — leaving the dark-mode rgba whites
   on a near-white track in light mode. */
/* "~XXX searches/mo" pill */
body.light-mode #customers-missing-container [style*="background: rgba(148, 163, 184, 0.15)"] {
    background: rgba(148, 163, 184, 0.18) !important;
    color: #4B5563 !important;
}
/* Dashed "No data" / "Not ranked" lines */
body.light-mode #customers-missing-container [style*="rgba(255,255,255,0.15)"],
body.light-mode #customers-missing-container [style*="rgba(255, 255, 255, 0.15)"],
body.light-mode #customers-missing-container [style*="rgba(255,255,255,0.1)"],
body.light-mode #customers-missing-container [style*="rgba(255, 255, 255, 0.1)"] {
    border-top-color: rgba(0, 0, 0, 0.15) !important;
}

/* --- 8. Summary paragraph ("You're appearing in N out of M…") ----- */
body.light-mode #customers-missing-container [style*="background: rgba(255,255,255,0.02)"],
body.light-mode #customers-missing-container [style*="background:rgba(255,255,255,0.02)"] {
    background: #F8FAFC !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* --- 10. Map control panel (.reach-toggle-container) -------------- */
/* Dark glass → white glass with darkened text/pills.                 */
body.light-mode .reach-toggle-container {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
body.light-mode .reach-toggle-container .rtp-section-label {
    color: #59616E;
}
body.light-mode .reach-toggle-container .rtp-pill-group {
    background: rgba(0, 0, 0, 0.04);
}
body.light-mode .reach-toggle-container .rtp-pill-label {
    color: #4B5563;
}
body.light-mode .reach-toggle-container .rtp-pill-option input:checked + .rtp-pill-label {
    background: rgba(26, 122, 158, 0.15);
    color: #1A7A9E;
    box-shadow: 0 0 8px rgba(26, 122, 158, 0.18);
}
body.light-mode .reach-toggle-container .rtp-overlay-label {
    color: #4B5563;
}

/* --- 12. Get Started: green check circles ------------------------- */
/* Inline circles use rgba(74, 222, 128, 0.15) and SVG fill #4ADE80.
   On white those wash out. Deepen background and stroke under
   light mode, scoped to the marketing-manager modal slides.        */
body.light-mode .mm-slide [style*="rgba(74, 222, 128, 0.15)"],
body.light-mode .mm-single-page [style*="rgba(74, 222, 128, 0.15)"] {
    background: rgba(22, 163, 74, 0.18) !important;
    border: 1px solid rgba(22, 163, 74, 0.30) !important;
}
body.light-mode .mm-slide svg[fill="#4ADE80"],
body.light-mode .mm-single-page svg[fill="#4ADE80"] {
    fill: #15803D !important;
}

/* --- 13. Get Started primary CTA: full pill in light mode ---------- */
/* The button radius is set inline; force a full pill in light mode.
   The chevron SVG removal + wrapper margin-top push happens in JS.
   Targets both the legacy .mm-show-pricing-btn (kept for backward
   compatibility) and the current .mm-start-free-btn that funnels
   visitors straight into sign-up. */
body.light-mode .mm-show-pricing-btn,
body.light-mode .mm-start-free-btn {
    border-radius: 999px !important;
}

/* ============================================================
   ROUND 10 — Light-mode polish (Task #377)
   - Image-analysis card labels & flaw-card titles → near-black
   - Marketing-manager stepper circles: lock perfect circle shape
   - Active step circle → DEON brand blue (#1A7A9E)
   - Step labels → near-black at every state
   - Show-me-pricing CTA → DEON brand blue in BOTH modes
   ============================================================ */

/* --- 1. What's Possible image-analysis card -----------------------
   The eyebrow labels ("Original image", "Analysis report") and each
   flaw-card title now carry stable classes (.wp-image-section-label
   and .wp-flaw-title). Drive their color from class selectors so we
   are not at the mercy of browser inline-style normalization (which
   silently broke prior [style*="color: #94A3B8"] / [style*="color:
   #FFFFFF"] attempts because browsers serialize hex to rgb()). */
.wp-image-section-label {
    color: #94A3B8;
    -webkit-text-fill-color: #94A3B8;
}
.wp-flaw-title {
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
}
body.light-mode .wp-image-section-label {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}
body.light-mode .wp-flaw-title {
    color: #1A1A1E !important;
    -webkit-text-fill-color: #1A1A1E !important;
}

/* --- 2. Marketing-manager stepper: shape lock --------------------
   The mm-step-circle inline width/height get squashed to ovals when
   the parent flex row compresses on narrow widths. flex-shrink:0 +
   min-width keeps them perfectly round. Apply unconditionally
   (shape, not color) so dark mode also benefits. */
.marketing-manager-section .mm-step-circle {
    flex-shrink: 0 !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 50% !important;
}

/* --- 3. Stepper active circle → DEON brand blue in light mode ----
   The active circle is identified by its 0 0 16px box-shadow (only
   the active state ever sets a non-none shadow — inactive/completed
   states set box-shadow:none). Override the inline cyan to brand
   blue with matching shadow, beating the JS-set inline values. */
body.light-mode .marketing-manager-section .mm-step-circle[style*="box-shadow: 0 0 16px"] {
    background: #1A7A9E !important;
    border-color: #1A7A9E !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 16px rgba(26, 122, 158, 0.4) !important;
}

/* --- 4. Stepper labels: always near-black in light mode ----------
   JS dynamically sets label.style.color to one of #F0F0F2 / #94A3B8
   / #3A3A42 depending on selected/completed/inactive state. Force a
   single near-black color for every state so labels stay readable.
   This rule is placed after the generic attribute selectors above so
   it wins the source-order tiebreak at equal specificity. */
body.light-mode .marketing-manager-section .mm-step-label {
    color: #1A1A1E !important;
}

/* --- 5. Get Started primary CTA: DEON brand blue in both modes ---
   The button background tracks getThemeCyan(): #1A7A9E in light mode
   (already brand blue) but #3AAFD4 in dark mode (a lighter cyan).
   Force #1A7A9E unconditionally so the CTA reads identical in both
   themes. Covers both the legacy .mm-show-pricing-btn and the
   current single-step .mm-start-free-btn. */
.mm-show-pricing-btn,
.mm-start-free-btn {
    background: #1A7A9E !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(26, 122, 158, 0.3) !important;
}

/* ============================================================
   ROUND 11 — Competitor "Top searches in your area" ranking bar
   - Stable classes for track + fills + rank label, replacing the
     [style*="background: rgba(...)"] attribute selectors that
     silently failed because Chrome serializes inline rgba() as
     rgb() (CSS Color Level 4) in the style attribute.
   - Light-mode fills are pulled toward darker neutrals + DEON
     brand blue so the competitor and "you" bars are clearly
     distinguishable from the track and from each other.
   - .csm-rank-label reserves a fixed horizontal column so the
     bar's right edge sits at the same x-coordinate whether the
     rank is "#1" or "#10" — no jitter between rows or cards.
   ============================================================ */

/* Track — flexes to fill remaining row width */
.csm-bar-track {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    height: 12px;
    overflow: hidden;
}

/* Empty (dashed) track — used for "No data" / "Not ranked" rows */
.csm-bar-track-empty {
    flex: 1;
    height: 2px;
    border-top: 2px dashed rgba(255, 255, 255, 0.1);
}
.csm-bar-track-empty-user {
    border-top-color: rgba(255, 255, 255, 0.15);
}

/* Fill base */
.csm-bar-fill {
    height: 100%;
    border-radius: 4px;
}

/* Per-role fills — dark mode defaults match prior look exactly */
.csm-bar-fill-competitor {
    background: rgba(255, 255, 255, 0.3);
}
.csm-bar-fill-user {
    background: rgba(255, 255, 255, 0.4);
}
.csm-bar-fill-winner {
    background: #4ADE80;
}

/* Rank label — fixed-width column so #1 and #10 align identically */
.csm-rank-label {
    flex-shrink: 0;
    min-width: 36px;
    text-align: right;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}
.csm-rank-label-italic {
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
}
.csm-rank-label-muted {
    color: rgba(255, 255, 255, 0.35);
}

/* Light-mode overrides — clear contrast against the lightened track */
body.light-mode .csm-bar-track {
    background: rgba(0, 0, 0, 0.08);
}
body.light-mode .csm-bar-track-empty {
    border-top-color: rgba(0, 0, 0, 0.15);
}
body.light-mode .csm-bar-track-empty-user {
    border-top-color: rgba(0, 0, 0, 0.2);
}
body.light-mode .csm-bar-fill-competitor {
    background: #64748B;
}
body.light-mode .csm-bar-fill-user {
    background: #1A7A9E;
}
body.light-mode .csm-bar-fill-winner {
    background: #15803D;
}
body.light-mode .csm-rank-label {
    color: #4B5563;
}
body.light-mode .csm-rank-label-italic {
    color: #4B5563;
}
body.light-mode .csm-rank-label-muted {
    color: #6B7280;
}
