:root {
    --pedro-color: 59, 130, 246;
    --laura-color: 236, 72, 153;
    --leticia-color: 234, 179, 8;
    --accent-rgb: var(--pedro-color);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    touch-action: pan-y;
    overflow-x: hidden;
    overflow-y: scroll !important;
    height: auto;
    min-height: 100%;
}

html {
    overflow-x: hidden;
    overflow-y: scroll !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: auto;
}

html::-webkit-scrollbar {
    display: none;
}

.small-label {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

#scroll-indicator {
    position: fixed;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#scroll-indicator .scroll-percent {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(6, 182, 212, 0.6);
}

#scroll-indicator .scroll-line {
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

#scroll-indicator .scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.8), rgba(6, 182, 212, 0.4));
    border-radius: 1px;
    transition: height 0.1s ease;
}

.profile-pedro { --accent-rgb: var(--pedro-color); }
.profile-laura { --accent-rgb: var(--laura-color); }
.profile-leticia { --accent-rgb: var(--leticia-color); }

.profile-accent {
    color: rgb(var(--accent-rgb));
}

.profile-bg {
    background-color: rgb(var(--accent-rgb));
}

.profile-border {
    border-color: rgba(var(--accent-rgb), 0.3);
}

.nav-item {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.nav-item:hover,
.nav-item:active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    color: rgb(var(--accent-rgb));
    background: rgba(var(--accent-rgb), 0.1);
}

.profile-btn {
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.profile-btn:hover,
.profile-btn:active {
    color: white;
}

.profile-btn.active {
    background: rgba(var(--accent-rgb), 0.2);
    color: rgb(var(--accent-rgb));
}

.widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.875rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    transition: all 0.5s;
    max-width: 100%;
}

.widget:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.widget-collapsible[data-collapsed="true"] .widget-content {
    display: none;
}

.widget-collapsible[data-collapsed="false"] .widget-content {
    display: block;
}

.widget-collapsible[data-collapsed="true"] .widget-chevron {
    transform: rotate(0deg);
}

.widget-collapsible[data-collapsed="false"] .widget-chevron {
    transform: rotate(180deg);
}

.widget-chevron {
    transition: transform 0.3s ease;
}

.avatar-center-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
    pointer-events: none;
}

.avatar-center-display.hidden {
    display: none;
}

.avatar-center-display h2 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    text-shadow: 0 0 60px rgba(var(--accent-rgb), 0.4);
}

.avatar-center-display p {
    font-size: clamp(0.75rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 0.75rem;
}

.avatar-name-corner {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 15;
    pointer-events: none;
}

.avatar-name-corner.hidden {
    display: none;
}

.avatar-name-corner span {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    opacity: 0.6;
}

#btn-mic.recording {
    color: #ef4444 !important;
    animation: pulse-recording 1s infinite;
}

@keyframes pulse-recording {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@media (max-width: 640px) {
    .avatar-name-corner {
        bottom: 1rem;
        right: 1rem;
    }
    
    .avatar-name-corner span {
        font-size: 0.75rem;
    }
}

.conversation-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 480px;
    max-height: 60vh;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 1rem;
    z-index: 30;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.15);
}

.conversation-panel.hidden {
    display: none;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.conversation-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 200px;
    max-height: 45vh;
}

.conversation-line {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    padding-left: 1rem;
    border-left: 2px solid rgba(var(--accent-rgb), 0.3);
    opacity: 0;
    transform: translateY(10px);
}

.conversation-line.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease-out;
}

.conversation-line .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: rgb(var(--accent-rgb));
    margin-left: 2px;
    animation: cursorBlink 0.8s infinite;
    vertical-align: middle;
}

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

@media (max-width: 640px) {
    .conversation-panel {
        width: 95%;
        max-height: 70vh;
    }
    
    .conversation-content {
        padding: 1rem;
        min-height: 150px;
    }
    
    .conversation-line {
        font-size: 12px;
    }
}

.sync-bar {
    flex: 1;
    background: linear-gradient(to top, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0.6));
    border-radius: 2px 2px 0 0;
    transition: all 1s;
    min-width: 8px;
}

.emotion-btn {
    padding: 0.375rem 0.5rem;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.05);
    font-size: 8px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.emotion-btn:hover,
.emotion-btn:active {
    background: rgba(var(--accent-rgb), 0.2);
    color: rgb(var(--accent-rgb));
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.action-btn:hover,
.action-btn:active {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.3);
    color: rgb(var(--accent-rgb));
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.375rem;
    border-radius: 0.375rem;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.doc-item:hover,
.doc-item:active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 3px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.relax-mode .widget {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.relax-mode header,
.relax-mode footer {
    opacity: 0.3;
}

#avatar-info {
    text-align: center;
    z-index: 10;
}

@media (max-width: 480px) {
    .sidebar-mobile {
        width: 3.5rem !important;
    }
    
    .main-mobile {
        margin-left: 3.5rem !important;
    }
    
    .nav-item {
        width: 2rem;
        height: 2rem;
    }
    
    .nav-item svg {
        width: 1rem;
        height: 1rem;
    }
    
    .profile-btn {
        padding: 0.3rem 0.5rem;
        font-size: 8px;
    }
    
    .widget {
        padding: 0.625rem;
        border-radius: 0.75rem;
    }
    
    .widget-header {
        font-size: 7px;
        gap: 0.25rem;
    }
    
    .widget-header svg {
        width: 10px;
        height: 10px;
    }
    
    .sync-bar {
        min-width: 6px;
    }
    
    .emotion-btn {
        padding: 0.25rem 0.375rem;
        font-size: 7px;
    }
    
    .action-btn {
        padding: 0.375rem 0.5rem;
        font-size: 8px;
    }
    
    .action-btn svg {
        width: 10px;
        height: 10px;
    }
    
    .doc-item {
        font-size: 8px;
        padding: 0.25rem;
    }
    
    #avatar-name {
        font-size: 1.5rem !important;
    }
    
    #avatar-status {
        font-size: 8px !important;
        letter-spacing: 0.15em !important;
    }
    
    #chat-input {
        font-size: 12px;
    }
    
    .chat-bar-mobile {
        padding: 0.5rem 0.75rem !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .widget {
        padding: 0.875rem;
        border-radius: 1rem;
    }
    
    .widget-header {
        font-size: 8px;
    }
    
    .emotion-btn {
        font-size: 8px;
    }
    
    .action-btn {
        font-size: 9px;
    }
    
    #avatar-name {
        font-size: 2rem !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .widget {
        padding: 1rem;
    }
    
    .widget-header {
        font-size: 9px;
    }
    
    .emotion-btn {
        font-size: 9px;
        padding: 0.4rem 0.6rem;
    }
    
    #avatar-name {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 1025px) {
    .widget {
        padding: 1.25rem;
        border-radius: 1.25rem;
    }
    
    .widget-header {
        font-size: 9px;
    }
    
    .profile-btn {
        padding: 0.5rem 1rem;
        font-size: 11px;
    }
    
    .emotion-btn {
        padding: 0.5rem 0.75rem;
        font-size: 9px;
    }
    
    .action-btn {
        padding: 0.625rem 0.875rem;
        font-size: 10px;
    }
    
    .doc-item {
        font-size: 10px;
        padding: 0.5rem;
    }
    
    #avatar-name {
        font-size: 3rem !important;
    }
}

@media (min-height: 900px) {
    .sync-bars-container {
        height: 6rem;
    }
}

@media (max-height: 700px) {
    .widget {
        padding: 0.5rem;
    }
    
    .sync-bars-container {
        height: 3rem;
    }
    
    .emotion-grid {
        gap: 0.25rem;
    }
    
    #avatar-info {
        margin-bottom: 0.5rem;
    }
}

@supports (padding: max(0px)) {
    .safe-area-bottom {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    .safe-area-top {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
}

@media (hover: none) and (pointer: coarse) {
    .widget:hover {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .emotion-btn:active,
    .action-btn:active,
    .profile-btn:active {
        transform: scale(0.95);
    }
}

.mood-slider-container {
    width: 100%;
}

.mood-slider-track {
    position: relative;
    height: 1.5rem;
    background: linear-gradient(90deg, 
        rgba(239, 68, 68, 0.3) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(34, 197, 94, 0.3) 100%
    );
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.mood-slider-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 215, 0, 0.4), 
        rgba(255, 215, 0, 0.8)
    );
    border-radius: 0.75rem;
    transition: all 0.15s ease-out;
    pointer-events: none;
}

.mood-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    z-index: 10;
}

.mood-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    cursor: grab;
}

.mood-slider-input:active::-webkit-slider-thumb {
    cursor: grabbing;
}

.mood-slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1.25rem;
    height: 1.25rem;
    background: linear-gradient(135deg, #FFD700, #f59e0b);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    pointer-events: none;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.mood-slider-thumb.active {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.4);
}

.absorption-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.absorption-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    animation: floatParticle 1s ease-out forwards;
}

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

.emotion-btn-mini {
    width: 100%;
    padding: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s;
}

.emotion-btn-mini:hover,
.emotion-btn-mini:active {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: rgba(var(--accent-rgb), 0.3);
    color: rgb(var(--accent-rgb));
}

.emotion-btn-mini.active {
    background: rgba(var(--accent-rgb), 0.2);
    border-color: rgba(var(--accent-rgb), 0.4);
    color: rgb(var(--accent-rgb));
}

.music-controls {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.music-controls:hover {
    opacity: 1;
}

.music-controls .nav-item {
    width: 2rem;
    height: 2rem;
}

.music-controls .nav-item.active {
    color: rgb(var(--accent-rgb));
    background: rgba(var(--accent-rgb), 0.1);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    height: 3px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgb(var(--accent-rgb));
    cursor: pointer;
    transition: transform 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgb(var(--accent-rgb));
    cursor: pointer;
    border: none;
}

/* Branding Carousel */
.branding-carousel {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.carousel-frame {
    position: relative;
    width: 320px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 60px rgba(59, 130, 246, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
}

@media (min-width: 640px) {
    .carousel-frame {
        width: 420px;
        height: 236px;
        border-radius: 20px;
    }
}

@media (min-width: 1024px) {
    .carousel-frame {
        width: 520px;
        height: 292px;
        border-radius: 24px;
    }
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 2.5s cubic-bezier(0.4, 0, 0.2, 1), transform 12s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    animation: kenBurns 12s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.08) translate(-1%, -1%);
    }
}

.carousel-glow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.15) 0%,
        transparent 40%,
        transparent 60%,
        rgba(168, 85, 247, 0.1) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.carousel-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.carousel-dot.active {
    background: rgba(var(--accent-rgb), 0.8);
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
    transform: scale(1.3);
}

.carousel-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Hide carousel when conversation panel is open */
.branding-carousel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.5s ease;
}


/* Pro Mode Notification */
.pro-mode-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 15, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 32px 40px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    max-width: 380px;
    z-index: 9999;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    animation: fadeInNotification 0.4s ease;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
}

.pro-mode-notification.pro-type {
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.pro-mode-notification.warning-type {
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.pro-mode-notification.fade-out {
    animation: fadeOutNotification 0.3s ease forwards;
}

.pro-notification-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pro-notification-icon {
    margin-bottom: 16px;
}

.pro-notification-text {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.01em;
}

.pro-notification-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pro-notification-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

@keyframes fadeInNotification {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOutNotification {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

.pro-mode-btn.active {
    background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(139,92,246,0.2)) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
}

.pro-mode-btn.active i,
.pro-mode-btn.active span {
    color: #60a5fa !important;
}

/* ===== MOBILE MENU STYLES ===== */

#mobile-menu-panel.open {
    transform: translateX(0);
}

.mobile-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    width: 100%;
}

.mobile-profile-btn:hover,
.mobile-profile-btn:active {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-profile-btn.active {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.mobile-profile-btn .check-icon {
    display: none;
}

.mobile-profile-btn.active .check-icon {
    display: block;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
}

.mobile-action-btn:hover,
.mobile-action-btn:active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.avatar-indicator-dot {
    transition: background-color 0.3s ease;
}

.profile-pedro .avatar-indicator-dot { background-color: rgb(96, 165, 250); }
.profile-laura .avatar-indicator-dot { background-color: rgb(236, 72, 153); }
.profile-leticia .avatar-indicator-dot { background-color: rgb(251, 191, 36); }

/* Mobile-specific main content */
@media (max-width: 767px) {
    .main-content {
        margin-left: 0 !important;
    }
    
    .chat-bar {
        max-width: 100%;
        border-radius: 1rem;
    }
    
    .avatar-name-corner {
        bottom: 6rem;
        right: 1rem;
    }
    
    .avatar-center-display h2 {
        font-size: 2.5rem;
    }
    
    .avatar-center-display p {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }
    
    #chat-container {
        bottom: 5.5rem;
        width: 95%;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .sidebar-desktop {
        width: 4rem;
    }
    
    .main-content {
        margin-left: 4rem;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .sidebar-desktop {
        width: 5rem;
    }
    
    .main-content {
        margin-left: 5rem;
    }
}

/* Enhanced Chat Messages */
#chat-messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 182, 212, 0.3) transparent;
}

#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.3);
    border-radius: 3px;
}

#chat-messages .chat-message-user {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 1rem 1rem 0.25rem 1rem;
    padding: 0.875rem 1rem;
    margin-left: auto;
    max-width: 85%;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

#chat-messages .chat-message-avatar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem 1rem 1rem 0.25rem;
    padding: 0.875rem 1rem;
    max-width: 85%;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

#chat-messages .chat-message-avatar .avatar-name {
    display: block;
    font-size: 0.75rem;
    color: rgba(6, 182, 212, 0.8);
    margin-bottom: 0.375rem;
    font-weight: 500;
}

@media (max-width: 640px) {
    #chat-messages .chat-message-user,
    #chat-messages .chat-message-avatar {
        max-width: 90%;
        font-size: 0.875rem;
        padding: 0.75rem;
    }
}

/* Enhanced Chat Container with Transparency */
#chat-container > div {
    background: rgba(24, 24, 27, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#chat-messages {
    scroll-behavior: smooth;
}

/* Chat container positioning for pseudo-elements */
#chat-container {
    position: relative;
}

/* Glow effect when avatar captures information */
@keyframes captureGlow {
    0% { box-shadow: 0 0 0 rgba(6, 182, 212, 0); }
    50% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), inset 0 0 10px rgba(6, 182, 212, 0.1); }
    100% { box-shadow: 0 0 0 rgba(6, 182, 212, 0); }
}

#chat-container.capturing {
    animation: captureGlow 0.6s ease-out;
}

#chat-container.capturing #chat-avatar-indicator {
    background: #22d3ee !important;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
}

/* Subtle background activity indicator */
#chat-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(45deg, transparent 40%, rgba(6, 182, 212, 0.03) 50%, transparent 60%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    z-index: 1;
}

#chat-container.processing::after {
    opacity: 1;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
