/**
 * Viizor Floating Toolbar - Ultra Clean Icons Only
 * NO frames, NO containers, just pure floating icons
 */

/* Floating toolbar - just icons in a column */
.floating-toolbar {
    position: fixed;
    top: 308px; /* Below branding box (260px + 24px gap + 24px extra) */
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    pointer-events: auto;
}

/* Individual tool buttons - clean floating icons */
.tool-button {
    width: 33px;
    height: 33px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(64, 64, 64, 0.8);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Colored icons for main toolbar buttons */
.tool-measure {
    color: #4a9eff;
}

.tool-import {
    color: #fbbf24;
}

.tool-view {
    color: #10b981;
}

.tool-output {
    color: #ef4444;
}

.tool-advanced-measure {
    color: #d946ef;
}

.tool-button:hover {
    transform: scale(1.05);
}

.tool-measure:hover {
    background: rgba(74, 158, 255, 0.1);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
}

.tool-import:hover {
    background: rgba(251, 191, 36, 0.1);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.tool-view:hover {
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.tool-output:hover {
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.tool-measure.active {
    background: rgba(74, 158, 255, 0.2);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.tool-measure.pinned {
    background: rgba(74, 158, 255, 0.25);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
    border-color: rgba(74, 158, 255, 0.6);
}

.tool-import.active {
    background: rgba(251, 191, 36, 0.2);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.tool-view.active {
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tool-output.active {
    background: rgba(239, 68, 68, 0.2);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.tool-output.pinned {
    background: rgba(239, 68, 68, 0.25);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.6);
}

.tool-advanced-measure.active {
    background: rgba(217, 70, 239, 0.2);
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.3);
}

.tool-advanced-measure.pinned {
    background: rgba(217, 70, 239, 0.25);
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.4);
    border-color: rgba(217, 70, 239, 0.6);
}

/* Output button illuminated when menu is open */
.tool-button-container.show-output .tool-output {
    background: rgba(239, 68, 68, 0.25);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.6);
}

/* Output button with content indicator */
.tool-button.has-output {
    background: rgba(74, 158, 255, 0.1);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
}

/* Tool button container for data with menu */
.tool-button-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Invisible bridge area to keep menu open */
.tool-button-container::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 0;
    width: 12px;
    height: 33px;
    z-index: 1000;
}

/* Measurement menu - horizontal fade in */
.measurement-menu {
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    display: flex;
    flex-direction: row;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Show measurement menu on hover, explicitly shown, or pinned */
.tool-button-container:hover .measurement-menu,
.tool-button-container.show-menu .measurement-menu,
.measurement-menu.pinned {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* View menu - same as measurement menu */
.view-menu {
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    display: flex;
    flex-direction: row;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Show view menu on hover, explicitly shown, or pinned */
.tool-button-container:hover .view-menu,
.tool-button-container.show-menu .view-menu,
.view-menu.pinned {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Advanced measure menu - same as measurement menu */
.advanced-measure-menu {
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    display: flex;
    flex-direction: row;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Show advanced measure menu on hover, explicitly shown, or pinned */
.tool-button-container:hover .advanced-measure-menu,
.tool-button-container.show-menu .advanced-measure-menu,
.advanced-measure-menu.pinned {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.tool-advanced-measure:hover {
    background: rgba(217, 70, 239, 0.1);
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.2);
}

.tool-advanced-measure.active {
    background: rgba(217, 70, 239, 0.2);
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.3);
}

/* Palette container - holds palette button and visualizations menu */
.palette-container {
    position: relative;
}

/* Bridge to keep menu open when moving mouse to it */
.palette-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 16px;
    height: 100%;
    pointer-events: none;
}

.palette-container:hover::after {
    pointer-events: auto;
}

/* Palette button style */
.tool-palette {
    color: #f59e0b;
}

.tool-palette:hover {
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Visualizations menu - to the right of palette button */
.visualizations-menu {
    position: absolute;
    top: 0;
    left: calc(100% + 8px);
    min-width: 200px;
    max-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1001;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(64, 64, 64, 0.8);
    border-radius: 8px;
    padding: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Show visualizations menu on palette hover */
.palette-container:hover .visualizations-menu.has-content,
.visualizations-menu.has-content:hover,
.visualizations-menu.pinned {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Classes submenu - nested inside visualizations menu */
.classes-submenu {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(64, 64, 64, 0.3);
}

.classes-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.classes-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.class-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 1px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.class-item:hover {
    background: rgba(74, 158, 255, 0.1);
}

.class-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.class-toggle-all {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid rgba(64, 64, 64, 0.3);
    margin-bottom: 4px;
    cursor: pointer;
}

/* Elegant scale effect for pencil */
.tool-button-container:hover > .tool-button {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.25);
}

/* Measurement tool button (points icon) - clean like others */
.measurement-tool {
    width: 33px;
    height: 33px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(64, 64, 64, 0.8);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.measurement-tool:hover {
    background: rgba(74, 158, 255, 0.1);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
}

/* View tool button - same as measurement tool */
.view-tool {
    width: 33px;
    height: 33px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(64, 64, 64, 0.8);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.view-tool:hover {
    background: rgba(74, 158, 255, 0.1);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
}

/* Clouds menu for right-side cloud icon */
.clouds-menu-fixed {
    position: fixed;
    top: 92px; /* Same as cloud-icon */
    right: 80px; /* 24px + 52px + 4px (reduced gap) */
    min-width: 280px;
    max-width: 320px;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(64, 64, 64, 0.8);
    border-radius: 8px;
    padding: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001;
    animation: fadeIn 0.2s ease;
}

/* Clouds menu header */
.clouds-menu-header {
    padding: 14px;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(232, 121, 249, 0.1) 100%);
    border-radius: 8px 8px 0 0;
}

.clouds-menu-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.clouds-menu-description {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.clouds-menu-divider {
    height: 1px;
    background: rgba(64, 64, 64, 0.5);
    margin: 0 0 4px 0;
}

/* Add spacing to first and last cloud items */
.cloud-item:first-of-type {
    margin-top: 4px;
}

.cloud-item:last-child {
    margin-bottom: 8px;
}


/* Cloud menu items - minimal style */
.cloud-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 15px;
    margin: 0 4px 3px 4px;
    border-radius: 6px;
}

.cloud-item:hover {
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
}

.cloud-item i {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.cloud-item span {
    white-space: nowrap;
}

/* ============================================================================
   UNIFIED MODAL SYSTEM
   ============================================================================ */

/* Base modal overlay - consistent across all modals */
.tool-input-modal,
.auth-modal,
.branding-invite-modal,
.branding-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* backdrop-filter: blur(6px); DISABLED - testing flicker */
    /* -webkit-backdrop-filter: blur(6px); DISABLED - testing flicker */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    /* animation: fadeIn 0.2s ease; DISABLED - controlled by JS */
}

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

/* Base modal content - consistent styling */
.modal-content,
.auth-modal-content,
.branding-invite-content,
.branding-upload-content,
.autotopo-progress-modal {
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    /* backdrop-filter: blur(12px); DISABLED - testing flicker */
    /* -webkit-backdrop-filter: blur(12px); DISABLED - testing flicker */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    /* animation: slideUp 0.2s ease; DISABLED - controlled by JS */
    max-height: 90vh;
    overflow-y: auto;
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar,
.auth-modal-content::-webkit-scrollbar,
.branding-invite-content::-webkit-scrollbar,
.branding-upload-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track,
.auth-modal-content::-webkit-scrollbar-track,
.branding-invite-content::-webkit-scrollbar-track,
.branding-upload-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb,
.auth-modal-content::-webkit-scrollbar-thumb,
.branding-invite-content::-webkit-scrollbar-thumb,
.branding-upload-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.auth-modal-content::-webkit-scrollbar-thumb:hover,
.branding-invite-content::-webkit-scrollbar-thumb:hover,
.branding-upload-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

/* Minimal variant - smaller and more compact */
.modal-content.minimal,
.auth-modal-content.minimal,
.branding-invite-content.minimal {
    padding: 16px;
    border-radius: 12px;
    max-width: 320px;
}

/* Standard variant - comfortable sizing */
.modal-content.standard,
.branding-invite-content.standard {
    min-width: 280px;
    max-width: 320px;
    padding: 16px;
}

/* Auth modal - más ancho para botón de Google */
.auth-modal-content.standard {
    min-width: 400px;
    max-width: 450px;
    padding: 32px;
}

/* Large variant - for complex forms */
.modal-content.large,
.branding-upload-content {
    padding: 32px;
    min-width: 400px;
    max-width: 480px;
}

.tool-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    width: 200px;
    padding: 8px 0;
    outline: none;
    border-bottom: 1px solid rgba(74, 158, 255, 0.5);
    transition: border-color 0.3s ease;
}

.tool-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.tool-input:focus {
    border-bottom-color: #4a9eff;
}

/* Output menu - appears below the button */
.output-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    max-width: 320px;
    max-height: 80vh;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10000;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(64, 64, 64, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4px;
    overflow-y: scroll !important;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Asegurar que cuando está visible pueda hacer scroll */
.output-menu.has-content {
    overflow-y: scroll !important;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.output-menu::-webkit-scrollbar {
    display: none;
}

.output-section {
    margin-bottom: 8px;
}

.output-section:last-child {
    margin-bottom: 0;
}

.output-section > .output-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 26, 26, 0.98);
    padding: 6px 8px 4px 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(64, 64, 64, 0.3);
    margin-bottom: 4px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.output-section > .output-header:hover {
    background: rgba(40, 40, 40, 0.98);
}

/* Removed ::before arrow - using chevron-icon instead */

.point-groups-list,
.aoi-list,
.pilestocks-list,
.surface-comparisons-list,
.vectors3d-list,
.measurements-list,
.profiles-list,
.tins-list,
.clipping-list {
    display: block;
}

.group-item.layer-group {
    position: sticky;
    top: 24px;
    z-index: 50;
    background: rgba(26, 26, 26, 0.98) !important;
}

.group-item.layer-group:hover {
    background: rgba(26, 26, 26, 0.98) !important;
}

/* Hide scrollbar but keep functionality */
.output-menu::-webkit-scrollbar,
.point-groups-list::-webkit-scrollbar,
.aoi-list::-webkit-scrollbar,
.vectors3d-list::-webkit-scrollbar,
.measurements-list::-webkit-scrollbar,
.profiles-list::-webkit-scrollbar,
.tins-list::-webkit-scrollbar,
.clipping-list::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.output-menu,
.point-groups-list,
.aoi-list,
.vectors3d-list,
.measurements-list,
.profiles-list,
.tins-list,
.clipping-list {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Show output menu on hover or when has content */
.tool-button-container:hover .output-menu.has-content,
.output-menu.has-content:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Show output menu persistently when show-output class is active */
.tool-button-container.show-output .output-menu.has-content,
.tool-button-container.show-output .output-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}


/* Bridge area to keep menu open */
.tool-button-container::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
    z-index: 1000;
}

/* Output sections - REMOVED DUPLICATE, see styles above at line 594 */

/* Group items */
.group-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 13px;
    border-radius: 4px;
    margin-bottom: 1px;
}

.group-item:hover {
    background: rgba(74, 158, 255, 0.1);
}

.group-item.profile-item,
.group-item.tin-item {
    justify-content: space-between;
}

/* AOI items need flex-direction column */
.aoi-item {
    flex-direction: column !important;
    gap: 2px !important;
}


/* Clickable group items with expand icon */
.group-item.clickable {
    position: relative;
}

.expand-icon {
    margin-left: auto;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease;
}

/* Vector group container */
.vector-group-container {
    margin-bottom: 2px;
}

/* Individual vectors list */
.vectors-list {
    margin-left: 16px;
    border-left: 1px solid rgba(74, 158, 255, 0.2);
    padding-left: 8px;
    max-height: 200px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.vectors-list.hidden {
    max-height: 0;
    overflow: hidden;
    padding-left: 0;
    margin-left: 0;
    border-left: none;
}

/* Unified styles for ALL output menu items */
.point-item,
.aoi-item,
.vector-item,
.profile-item,
.measurement-item,
.tin-item,
.pilestock-item,
.comparison-item,
.clipping-item,
.contour-item,
.section-item {
    margin-left: 20px;
    padding: 4px 8px;
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: auto;
    transition: all 0.15s ease;
}

.point-item:hover,
.aoi-item:hover,
.vector-item:hover,
.profile-item:hover,
.measurement-item:hover,
.tin-item:hover,
.pilestock-item:hover,
.comparison-item:hover,
.clipping-item:hover,
.contour-item:hover,
.section-item:hover {
    background: rgba(74, 158, 255, 0.05);
}

.vector-color {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vector-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-color {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.group-name {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.group-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 500;
}

/* User icon in top-right corner */
.user-icon {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(64, 64, 64, 0.8);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}

/* Cloud icon below user icon */
.cloud-icon {
    position: fixed;
    top: 92px; /* 24px (user icon top) + 52px (user icon height) + 16px gap */
    right: 24px;
    width: 52px;
    height: 52px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.6);
    border-radius: 12px;
    color: #10B981;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}

/* Invisible bridge area to keep menu open when moving from icon to menu */
.cloud-icon::after {
    content: '';
    position: absolute;
    left: -16px; /* Bridge to the left where menu appears */
    top: 0;
    width: 16px;
    height: 52px;
    z-index: 1000;
}

.user-icon svg,
.user-icon i,
.cloud-icon svg,
.cloud-icon i {
    pointer-events: none;
}

.user-icon:hover {
    background: rgba(74, 158, 255, 0.1);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
}

.cloud-icon:hover {
    background: rgba(16, 185, 129, 0.25);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.user-icon.logged-in {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.6);
    color: #10B981;
}

.user-icon.logged-in:hover {
    background: rgba(16, 185, 129, 0.25);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.user-icon.visitor-icon:hover {
    background: rgba(239, 68, 68, 0.25);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Auth modal specific styles (base styles inherited from unified system) */
.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(74, 158, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-tab.active {
    border-bottom-color: #4a9eff;
    color: white;
}

.auth-input,
.auth-select {
    background: transparent;
    border: none;
    color: white;
    font-size: 13px;
    width: 100%;
    padding: 8px 8px;
    outline: none;
    border-bottom: 1px solid rgba(74, 158, 255, 0.5);
    transition: border-color 0.3s ease;
    margin-bottom: 8px;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-input:focus,
.auth-select:focus {
    border-bottom-color: #4a9eff;
}

/* Remove autofill white background */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: white !important;
    caret-color: white !important;
}

.auth-input:autofill {
    box-shadow: 0 0 0 30px #1a1a1a inset !important;
    color: white !important;
}

.auth-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a9eff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.auth-select option {
    background: #1a1a1a;
    color: white;
    padding: 6px;
}

.auth-explanation {
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.auth-submit {
    width: 100%;
    background: #4a9eff;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 4px;
}

.auth-submit:hover {
    background: #5ba7ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.auth-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

.auth-message.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* User dropdown - similar to output menu */
.user-dropdown {
    position: fixed;
    top: 92px;
    right: 24px;
    min-width: 280px;
    max-width: 320px;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(64, 64, 64, 0.8);
    border-radius: 8px;
    padding: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1600;  /* Above shared clouds banner (1500) */
    animation: fadeIn 0.2s ease;
}

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

.user-dropdown .output-section {
    margin-bottom: 8px;
}

.user-dropdown .output-section:last-child {
    margin-bottom: 0;
}

.user-dropdown .output-header {
    padding: 6px 8px 4px 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(64, 64, 64, 0.3);
    margin-bottom: 4px;
}

.user-dropdown .group-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 13px;
    border-radius: 4px;
    margin-bottom: 1px;
}

.user-dropdown .group-item:hover {
    background: rgba(74, 158, 255, 0.1);
}

.user-dropdown .projects-list {
    margin-left: 0;
    padding-left: 0;
    max-height: none;
    overflow: visible;
    transition: all 0.3s ease;
}

/* Hide scrollbars but keep scroll functionality */
.user-dropdown {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.user-dropdown::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.projects-list {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-list::-webkit-scrollbar {
    display: none;
}

.user-dropdown .projects-list.collapsed {
    max-height: 0;
    overflow: hidden;
    padding-left: 0;
    margin-left: 0;
    border-left: none;
}

.user-dropdown .project-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    border-radius: 3px;
    margin-bottom: 1px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.user-dropdown .project-item:hover {
    background: rgba(74, 158, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.user-dropdown .project-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.user-dropdown .expand-icon {
    margin-left: auto;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease;
}

.user-dropdown .expand-icon.expanded {
    transform: rotate(90deg);
}

.user-info-section {
    padding: 8px;
    border-top: 1px solid rgba(64, 64, 64, 0.3);
    margin-top: 8px;
    margin-bottom: 8px;
}

.user-email-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    word-break: break-all;
}

.logout-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-toolbar {
        bottom: 24px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
    }

    .clouds-menu {
        left: 50%;
        top: calc(-100% - 12px);
        transform: translateX(-50%) translateY(8px);
    }

    .tool-button-container:hover .clouds-menu {
        transform: translateX(-50%) translateY(0);
    }

    .user-icon {
        top: auto;
        bottom: 24px;
        right: 24px;
    }

    .user-dropdown {
        top: auto;
        bottom: 92px;
        right: 24px;
    }

    /* Branding box on mobile */
    .branding-box {
        top: 24px;
        left: 24px;
        width: 120px;
        height: 120px;
    }

    .branding-title {
        font-size: 12px;
    }

    .branding-subtitle {
        font-size: 10px;
    }

    .branding-icon {
        width: 48px;
        height: 48px;
    }

    .branding-icon svg {
        width: 28px;
        height: 28px;
    }

    /* Branding invite modal is already responsive with standard variant */
}

/* ===================================
   AUTO-TOPO PROGRESS MODAL
   =================================== */

/* Auto-Topo progress modal (inherits base styles from unified system) */
.autotopo-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    pointer-events: all; /* Block all interactions */
    animation: fadeIn 0.2s ease;
}

.autotopo-progress-modal {
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(64, 64, 64, 0.8);
    border-radius: 12px;
    padding: 0;
    min-width: 480px;
    max-width: 520px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.autotopo-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(64, 64, 64, 0.5);
}

.autotopo-header h3 {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.autotopo-subtitle {
    margin: 6px 0 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 400;
}

.autotopo-steps {
    padding: 20px 24px;
}

.autotopo-progress-step {
    margin-bottom: 18px;
}

.autotopo-progress-step:last-child {
    margin-bottom: 0;
}

.autotopo-progress-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.autotopo-progress-label .status-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.autotopo-progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.autotopo-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.autotopo-progress-bar.complete {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.autotopo-progress-summary {
    padding: 20px 24px;
    border-top: 1px solid rgba(64, 64, 64, 0.5);
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
}

/* ===================================
   BRANDING BOX
   =================================== */

.branding-box {
    position: fixed;
    top: 24px;
    left: 24px;
    width: 260px;
    height: 260px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(40, 40, 40, 0.98) 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 999;
    overflow: hidden;
    position: relative;
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Subtle gradient border - neutral tones */
.branding-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.3)
    );
    border-radius: 8px;
    z-index: -1;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

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

/* Shimmer effect overlay */
.branding-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%
    );
    animation: shimmer 6s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.branding-box:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 255, 255, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.branding-box:hover::before {
    animation: gradientShiftFast 2s ease infinite;
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.6),
            0 0 20px rgba(255, 255, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
}

.branding-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.branding-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: iconPulse 2.5s ease-in-out infinite;
}

.branding-box:hover .branding-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.12));
    transform: scale(1.15) rotate(8deg);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow:
            0 4px 12px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 6px 16px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
}

.branding-icon svg {
    width: 44px;
    height: 44px;
}

.branding-text {
    text-align: center;
}

.branding-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    letter-spacing: 0.5px;
}

.branding-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: center;
    max-width: 220px;
}

/* Fade animations for text rotation */
.branding-title.fade-out,
.branding-subtitle.fade-out {
    opacity: 0;
    transform: translateY(-5px);
}

.branding-title.fade-in,
.branding-subtitle.fade-in {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease;
}

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

/* Branding box with uploaded logo */
.branding-box.has-logo {
    padding: 0;
    animation: none; /* Stop pulse when logo uploaded */
}

.branding-box.has-logo::before {
    animation: none; /* Stop gradient shift */
}

.branding-box.has-logo::after {
    display: none; /* Hide shimmer */
}

.branding-box.has-logo .branding-content {
    padding: 0;
}

.branding-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Hover overlay on logo - using different pseudo-element */
.branding-box.has-logo .branding-content::after {
    content: 'Change Logo';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
    z-index: 10;
}

.branding-box.has-logo:hover .branding-content::after {
    opacity: 1;
}

/* Hide change logo overlay in readonly/shared projects */
.branding-box.readonly.has-logo .branding-content::after {
    display: none;
}

.branding-box.readonly {
    cursor: default;
}

/* Branding toggle button (chevron) */
.branding-toggle {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.branding-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

/* Show toggle on hover */
.branding-box:hover .branding-toggle {
    opacity: 1;
    pointer-events: auto;
}

.branding-toggle:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

/* Hide toggle in readonly mode (shared links) */
.branding-box.readonly .branding-toggle {
    display: none !important;
}

/* Branding hidden state */
.branding-box.hidden {
    transform: translateY(calc(-100% - 30px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Collapsed toggle button when branding is hidden */
.branding-collapsed-toggle {
    position: fixed;
    top: 24px;
    left: 24px;
    width: 33px;
    height: 33px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(64, 64, 64, 0.8);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.branding-collapsed-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.branding-collapsed-toggle:hover {
    background: rgba(74, 158, 255, 0.1);
    border-color: rgba(74, 158, 255, 0.3);
    color: #4a9eff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
}

/* Toolbar position when branding is hidden */
.floating-toolbar.branding-hidden {
    top: 65px !important; /* 24px + 33px toggle + 8px gap */
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Social icons transition when branding is hidden */
#brandingSocialIcons {
    transition: opacity 0.3s ease;
}

/* Branding invite modal */
/* Branding invite modal - uses same visual style as auth */
.branding-invite-header {
    text-align: center;
    margin-bottom: 16px;
}

.branding-invite-header h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.branding-invite-header p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.branding-invite-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.branding-invite-btn {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    outline: none;
}

.branding-invite-btn.primary {
    background: #4a9eff;
    color: white;
}

.branding-invite-btn.primary:hover {
    background: #5ba7ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.branding-invite-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.branding-invite-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

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

/* Branding upload modal slots */
.branding-slot {
    display: flex;
    gap: 12px;
    align-items: center;
}

.branding-slot-preview {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.branding-slot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

.branding-slot-placeholder i {
    width: 24px;
    height: 24px;
}

.branding-slot-actions {
    display: flex;
    gap: 8px;
    flex: 1;
}

.branding-slot-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.branding-slot-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.branding-slot-btn i {
    width: 14px;
    height: 14px;
}

.branding-slot-btn.remove {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.branding-slot-btn.remove:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Pinned state for view button */
.tool-view.pinned {
    background: rgba(16, 185, 129, 0.25);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.6);
}

/* Chevron icon transitions */
.chevron-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapsable header hover effect */
.collapsable-header:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

