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

/* Hero Section */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0e27 0%, #141b3d 50%, #1e2548 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-main {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #c9a96e;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #e8e8e8;
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.5;
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary-hero {
    background: linear-gradient(135deg, #c9a96e, #d4b574);
    color: #0a0e27;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 220px;
    justify-content: center;
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(201, 169, 110, 0.4);
    color: #0a0e27;
    text-decoration: none;
    filter: brightness(1.1);
}

.btn-secondary-hero {
    background: transparent;
    color: #c9a96e;
    padding: 1.2rem 2.5rem;
    border: 2px solid #c9a96e;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 220px;
    justify-content: center;
}

.btn-secondary-hero:hover {
    background: rgba(201, 169, 110, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.2);
    color: #c9a96e;
    text-decoration: none;
}

/* Chat Widget Floating */
.chat-widget-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a96e, #d4b574);
    border: none;
    color: #0a0e27;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(201, 169, 110, 0.5);
}

.chat-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a96e, #d4b574);
    opacity: 0.6;
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.chat-container-mini {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header-mini {
    background: rgba(201, 169, 110, 0.1);
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.sophia-avatar-mini {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #c9a96e, #d4b574);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sophia-avatar-mini i {
    font-size: 1.2rem;
    color: #0a0e27;
}

.sophia-info-mini h4 {
    color: #e8e8e8;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.status-mini {
    color: #c9a96e;
    font-size: 0.8rem;
    opacity: 0.8;
}

.chat-close-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #e8e8e8;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chat-close-btn:hover {
    background: rgba(201, 169, 110, 0.2);
    color: #c9a96e;
}

.chat-messages-mini {
    padding: 1rem;
    max-height: 250px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.chat-input-container-mini {
    padding: 1rem;
    border-top: 1px solid rgba(201, 169, 110, 0.1);
}

.chat-input-group-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-input-mini {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 20px;
    padding: 0.8rem 1rem;
    color: #e8e8e8;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.chat-input-mini:focus {
    outline: none;
    border-color: #c9a96e;
    box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.1);
}

.chat-send-btn-mini {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #c9a96e, #d4b574);
    border: none;
    border-radius: 50%;
    color: #0a0e27;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send-btn-mini:hover {
    transform: scale(1.1);
}

.audio-button-mini {
    width: 40px;
    height: 40px;
    background: rgba(201, 169, 110, 0.2);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.audio-button-mini:hover {
    background: rgba(201, 169, 110, 0.3);
    transform: scale(1.1);
}

.audio-button-mini.recording {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
    animation: pulse 1.5s infinite;
}

.audio-status-mini {
    color: var(--accent-gold);
    font-size: 0.8rem;
    padding: 0.3rem 0;
    text-align: center;
    font-style: italic;
}

/* Chat Messages Mini Styling */
.chat-messages-mini .message {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chat-messages-mini .sophia-message {
    justify-content: flex-start;
}

.chat-messages-mini .user-message {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.chat-messages-mini .message-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #c9a96e, #d4b574);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-messages-mini .message-avatar i {
    font-size: 1rem;
    color: #0a0e27;
}

.chat-messages-mini .message-content {
    max-width: 70%;
}

.chat-messages-mini .message-bubble {
    padding: 0.8rem 1rem;
    border-radius: 18px;
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.chat-messages-mini .sophia-message .message-bubble {
    background: rgba(201, 169, 110, 0.15);
    border: 1px solid rgba(201, 169, 110, 0.25);
    color: #e8e8e8;
    border-bottom-left-radius: 6px;
}

.chat-messages-mini .user-message .message-bubble {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #e8e8e8;
    border-bottom-right-radius: 6px;
}

.chat-messages-mini .message-bubble a {
    color: #c9a96e;
    text-decoration: underline;
    font-weight: 500;
}

.chat-messages-mini .message-bubble a:hover {
    color: #d4b574;
    text-decoration: none;
}

/* Chat Options Mini */
.chat-options-mini {
    padding: 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-option-btn {
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.3);
    color: #c9a96e;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

.chat-option-btn:hover {
    background: rgba(201, 169, 110, 0.2);
    border-color: #c9a96e;
    transform: translateY(-1px);
}

/* Typing indicator for mini chat */
.chat-messages-mini .typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.chat-messages-mini .typing-indicator span {
    width: 6px;
    height: 6px;
    background: #c9a96e;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.chat-messages-mini .typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-messages-mini .typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@keyframes pulse-recording {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(231, 76, 60, 0.8);
    }
}

/* Chat Overlay Styling - Modern Interface */
.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-overlay.fade-in {
    opacity: 1;
}

.chat-overlay.fade-out {
    opacity: 0;
}

.chat-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.chat-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    height: 85vh;
    max-height: 600px;
    background: rgba(10, 14, 39, 0.98);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.chat-overlay.fade-in .chat-container {
    transform: scale(1);
}

.chat-header {
    background: rgba(201, 169, 110, 0.08);
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 20px 20px 0 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.sophia-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #c9a96e, #d4b574);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.2);
}

.sophia-avatar i {
    font-size: 1.3rem;
    color: #0a0e27;
}

.sophia-info {
    flex: 1;
}

.sophia-info h4 {
    color: #e8e8e8;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.status {
    color: #c9a96e;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 2px;
}

.chat-close-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #e8e8e8;
    transform: scale(1.1);
}

.chat-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.chat-messages {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    scroll-behavior: smooth;
}

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

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 110, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 169, 110, 0.5);
}

.chat-footer {
    border-top: 1px solid rgba(201, 169, 110, 0.12);
    padding: 1.25rem 1.5rem;
    background: rgba(5, 7, 20, 0.6);
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
}

.chat-input-container {
    margin-bottom: 0;
}

.chat-input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 22px;
    padding: 0.9rem 1.4rem;
    color: #e8e8e8;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    resize: none;
}

.chat-input:focus {
    outline: none;
    border-color: rgba(201, 169, 110, 0.6);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.08);
    background: rgba(255, 255, 255, 0.09);
}

.chat-input::placeholder {
    color: #999;
    font-size: 0.9rem;
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #c9a96e, #d4b574);
    border: none;
    border-radius: 50%;
    color: #0a0e27;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.2);
}

.chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.35);
}

.audio-button {
    width: 44px;
    height: 44px;
    background: rgba(201, 169, 110, 0.15);
    color: #c9a96e;
    border: 1px solid rgba(201, 169, 110, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.audio-button:hover {
    background: rgba(201, 169, 110, 0.25);
    border-color: rgba(201, 169, 110, 0.6);
    transform: scale(1.08);
}

.audio-button.recording {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
    animation: pulse 1.5s infinite;
}

.audio-status {
    color: #c9a96e;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    text-align: center;
    font-style: italic;
}

/* Chat Messages in Overlay */
.chat-messages .message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.chat-messages .sophia-message {
    justify-content: flex-start;
}

.chat-messages .user-message {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.chat-messages .message-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #c9a96e, #d4b574);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(201, 169, 110, 0.2);
}

.chat-messages .message-avatar i {
    font-size: 1.1rem;
    color: #0a0e27;
}

.chat-messages .message-content {
    max-width: 78%;
}

.chat-messages .message-bubble {
    padding: 0.85rem 1.2rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.chat-messages .sophia-message .message-bubble {
    background: rgba(201, 169, 110, 0.12);
    border: 1px solid rgba(201, 169, 110, 0.22);
    color: #e8e8e8;
    border-bottom-left-radius: 6px;
}

.chat-messages .user-message .message-bubble {
    background: rgba(33, 150, 243, 0.18);
    border: 1px solid rgba(33, 150, 243, 0.28);
    color: #e8e8e8;
    border-bottom-right-radius: 6px;
}

.chat-messages .message-bubble a {
    color: #c9a96e;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.chat-messages .message-bubble a:hover {
    color: #d4b574;
    text-decoration: none;
}

/* Chat Options in Overlay */
.chat-options {
    padding: 0.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.chat-options .chat-option-btn {
    background: rgba(201, 169, 110, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.25);
    color: #c9a96e;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.chat-options .chat-option-btn:hover {
    background: rgba(201, 169, 110, 0.15);
    border-color: rgba(201, 169, 110, 0.5);
    transform: translateY(-1px);
}

/* Typing indicator in overlay */
.chat-messages .typing-indicator {
    display: flex;
    gap: 5px;
    padding: 8px 0;
    align-items: center;
}

.chat-messages .typing-indicator span {
    width: 7px;
    height: 7px;
    background: #c9a96e;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

/* Mobile responsiveness for overlay */
@media (max-width: 768px) {
    .chat-container {
        width: 95%;
        height: 90vh;
        max-height: none;
        border-radius: 16px;
    }
    
    .chat-header {
        padding: 1rem 1.2rem;
        border-radius: 16px 16px 0 0;
    }
    
    .sophia-avatar {
        width: 38px;
        height: 38px;
    }
    
    .sophia-info h4 {
        font-size: 1.1rem;
    }
    
    .status {
        font-size: 0.8rem;
    }
    
    .chat-messages {
        padding: 1.2rem;
        gap: 1rem;
    }
    
    .chat-footer {
        padding: 1rem 1.2rem;
        border-radius: 0 0 16px 16px;
    }
    
    .chat-input-group {
        gap: 0.6rem;
    }
    
    .chat-input {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .chat-send-btn,
    .audio-button {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .chat-messages .message-content {
        max-width: 85%;
    }
    
    .chat-messages .message-bubble {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .chat-close-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

.chat-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.chat-header {
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sophia-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4AF37, #ffd700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.avatar-glow {
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #D4AF37, #ffd700);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

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

.sophia-avatar i {
    font-size: 28px;
    color: #0A0B1A;
}

.sophia-info h3 {
    color: #E0E0E0;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.sophia-info .status {
    color: #D4AF37;
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 25px;
    scroll-behavior: smooth;
}

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

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}

.message {
    display: flex;
    margin-bottom: 20px;
    animation: messageSlideIn 0.3s ease-out;
}

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

.sophia-message {
    justify-content: flex-start;
}

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #ffd700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.message-avatar i {
    color: #0A0B1A;
    font-size: 16px;
}

.message-content {
    max-width: 70%;
}

.user-message .message-content {
    text-align: right;
}

.message-bubble {
    background: rgba(255, 255, 255, 0.08);
    color: #E0E0E0;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.sophia-message .message-bubble {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom-left-radius: 6px;
}

.user-message .message-bubble {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-bottom-right-radius: 6px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D4AF37;
    animation: typing 1.4s infinite;
}

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

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

.chat-input-container {
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 12px 20px;
    color: #E0E0E0;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: #D4AF37;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.chat-input::placeholder {
    color: #888;
}

.chat-send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #ffd700);
    border: none;
    color: #0A0B1A;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.chat-options {
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-option-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #E0E0E0;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.chat-option-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: #D4AF37;
    transform: translateY(-1px);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Root Variables */
:root {
    --bg-primary: #0A0B1A;
    --text-primary: #E0E0E0;
    --accent-gold: #D4AF37;
    --header-bg: rgba(10, 11, 26, 0.8);
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-gold);
}

.btn-pill {
    background: var(--accent-gold);
    color: var(--bg-primary) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-pill:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 4rem;
}

.btn-primary:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.sophia-placeholder {
    width: 100%;
    height: 200px;
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    opacity: 0.7;
    font-style: italic;
}

.sophia-placeholder::after {
    content: "Espaço reservado para elemento interativo de SophIA";
}

/* Professionals Section */
.professionals {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(10, 11, 26, 0.8) 100%);
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--accent-gold);
}

.professionals-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.professionals-track {
    display: flex;
    gap: 2rem;
    animation: carousel 30s linear infinite;
    width: max-content;
}

.professionals-track:hover {
    animation-play-state: paused;
}

@keyframes carousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.professional-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 280px;
    flex-shrink: 0;
}

.professional-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.1);
}

.professional-image-container {
    position: relative;
    margin-bottom: 1rem;
    display: inline-block;
}

.professional-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.specialty-overlay {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.professional-card:hover .specialty-overlay {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.professional-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.professional-info p {
    color: var(--text-primary);
    opacity: 0.8;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
}

.steps-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--bg-primary);
    transition: all 0.3s ease;
}

.step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-primary);
    opacity: 0.8;
    font-weight: 300;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-gold);
}

.social-media {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Simplified for initial implementation */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .steps-flow {
        flex-direction: column;
    }
    
    .professionals-track {
        animation-duration: 20s;
    }
    
    .professional-card {
        min-width: 250px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .professional-card {
        padding: 1.5rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Authentication Pages Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: var(--bg-primary);
}

/* Register Page Specific Styles */
body.register-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.register-page .auth-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.register-card {
    width: 100%;
    max-width: 450px;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.auth-subtitle {
    color: var(--text-primary);
    opacity: 0.8;
    font-size: 1rem;
    font-weight: 300;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: var(--text-primary);
    opacity: 0.5;
}

.checkbox-group {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    vertical-align: middle;
}

.checkbox-group label {
    display: inline;
    line-height: 1.4;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
    opacity: 0.9;
}

.form-checkbox {
    opacity: 0;
    position: absolute;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-checkbox:checked + .checkbox-custom {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.form-checkbox:checked + .checkbox-custom::after {
    content: '✓';
    color: var(--bg-primary);
    font-weight: bold;
    font-size: 12px;
}

.auth-btn {
    margin: 1rem 0;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links p {
    color: var(--text-primary);
    opacity: 0.8;
    font-size: 0.9rem;
}

.auth-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-link:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

/* Mobile responsiveness for auth pages */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem;
        margin: 0 15px;
    }
    
    .auth-title {
        font-size: 1.7rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 80px 15px 20px;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .form-input {
        padding: 0.9rem;
    }
}

/* Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    padding: 100px 20px 40px;
    background: var(--bg-primary);
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-section {
    text-align: center;
    margin-bottom: 4rem;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.dashboard-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    opacity: 0.8;
    font-weight: 300;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--bg-primary);
}

.dashboard-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.dashboard-card p {
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash-message {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

.flash-success {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.flash-error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.flash-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile responsiveness for dashboard */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2rem;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .flash-messages {
        right: 10px;
        left: 10px;
    }
    
    .flash-message {
        min-width: auto;
    }
}

/* Chat Interface Styles */
.chat-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f1419 100%);
    padding-top: 80px;
}

.chat-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

.sophia-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-primary);
}

.chat-info h2 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.chat-status {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) transparent;
}

.chat-window::-webkit-scrollbar {
    width: 6px;
}

.chat-window::-webkit-scrollbar-track {
    background: transparent;
}

.chat-window::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
    opacity: 0.6;
}

.chat-window::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
    opacity: 1;
}

.chat-welcome {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.welcome-message {
    max-width: 80%;
}

.welcome-message .message-content p:first-child {
    margin-bottom: 1rem;
}

.user-message, .sophia-message {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    max-width: 80%;
    margin-bottom: 1rem;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.sophia-message {
    align-self: flex-start;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.user-message .message-avatar {
    background: #1e40af;
    color: white;
}

.sophia-message .message-avatar {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.message-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.message-content:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.user-message .message-content {
    background: #1e40af;
    border-color: #1e40af;
    color: white;
}

.sophia-avatar-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d4af37 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(201, 169, 110, 0.5); }
}

.message-header-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.message-header-text strong {
    color: var(--accent-gold);
    font-weight: 600;
}

.message-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
}

.welcome-text p {
    margin: 0.75rem 0;
    font-size: 1rem;
}

.welcome-text p:first-child {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.highlight-text {
    background: linear-gradient(135deg, var(--accent-gold), #d4af37);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

.call-to-action {
    font-weight: 500;
    color: var(--accent-gold);
    margin-top: 1rem !important;
}

.sophia-message .message-content {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.chat-input-container {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.chat-form {
    max-width: 1000px;
    margin: 0 auto;
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.chat-input::placeholder {
    color: var(--text-primary);
    opacity: 0.6;
}

/* --- INÍCIO DO CÓDIGO A SER ADICIONADO --- */

.input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.5rem; /* Adiciona um pequeno espaço entre os botões */
}

.chat-input {
    flex-grow: 1; /* Faz o campo de texto ocupar todo o espaço disponível */
}

/* --- FIM DO CÓDIGO A SER ADICIONADO --- */

.send-button {
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    border: none;
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.send-button:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.send-button:active {
    transform: scale(0.95);
}

.audio-button {
    width: 50px;
    height: 50px;
    background: rgba(201, 169, 110, 0.2);
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.audio-button:hover {
    background: rgba(201, 169, 110, 0.3);
    transform: scale(1.05);
}

.audio-button.recording {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
    animation: pulse 1.5s infinite;
}

.attachment-button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.attachment-button:hover {
    background: rgba(201, 169, 110, 0.3);
    transform: scale(1.05);
}

.attachment-button:active {
    transform: scale(0.95);
}

/* CTA Links for Guide Mode */
.cta-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.cta-link:hover {
    color: #d4b574;
    border-bottom-color: #d4b574;
    text-decoration: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.audio-status {
    color: var(--accent-gold);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.input-hint {
    text-align: center;
    color: var(--text-primary);
    opacity: 0.6;
    font-size: 0.8rem;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-gold);
    font-style: italic;
    opacity: 0.8;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile responsiveness for chat */
@media (max-width: 768px) {
    .chat-header {
        padding: 1rem;
    }
    
    .chat-window {
        padding: 1rem;
    }
    
    .chat-input-container {
        padding: 1rem;
    }
    
    .user-message, .sophia-message {
        max-width: 90%;
    }
    
    .sophia-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .message-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .chat-header h2 {
        font-size: 1.1rem;
    }
    
    .chat-status {
        font-size: 0.8rem;
    }
    
    .input-wrapper {
        gap: 0.5rem;
    }
    
    .send-button {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* History Page Styles */
.history-container {
    min-height: 100vh;
    background: var(--bg-primary);
    padding-top: 80px;
}

.history-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
    backdrop-filter: blur(10px);
    text-align: center;
}

.history-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.history-subtitle {
    color: var(--text-primary);
    opacity: 0.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.history-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--accent-gold);
    font-weight: 500;
    text-align: center;
}

.stat-item i {
    font-size: 1.2rem;
}

.history-content {
    padding: 3rem 0;
}

.conversations-grid {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.conversation-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.conversation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
}

.conversation-timestamp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--text-primary);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    width: 100%;
}

.conversation-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.conversation-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0.8;
    text-align: right;
    min-width: fit-content;
    flex-shrink: 0;
}

.conversation-exchange {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.message-block {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.user-avatar {
    background: #1e40af;
    color: white;
}

.sophia-avatar {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.message-sender {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.message-content {
    margin-left: 40px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    line-height: 1.6;
}

.user-content {
    background: rgba(30, 64, 175, 0.15);
    border: 1px solid rgba(30, 64, 175, 0.3);
    color: var(--text-primary);
}

.sophia-content {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--text-primary);
}

.conversation-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--bg-primary);
}

.empty-state h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-primary);
    opacity: 0.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.pagination-container {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.pagination-info {
    color: var(--text-primary);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Navigation active state for history */
.nav-link.active {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
}

/* Mobile responsiveness for history */
@media (max-width: 768px) {
    .history-header {
        padding: 2rem 0;
    }
    
    .history-header h1 {
        font-size: 2rem;
    }
    
    .history-stats {
        gap: 2rem;
    }
    
    .conversation-card {
        padding: 1.5rem;
    }
    
    .conversation-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    .message-content {
        margin-left: 0;
    }
    
    .message-header {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .history-content {
        padding: 2rem 0;
    }
    
    .conversation-card {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .history-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Profile Page Styles */
.profile-container {
    min-height: 100vh;
    background: var(--bg-primary);
    padding-top: 80px;
}

.profile-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
    backdrop-filter: blur(10px);
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.profile-header-info h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-subtitle {
    color: var(--text-primary);
    opacity: 0.8;
    font-size: 1.1rem;
    margin: 0;
}

.profile-content {
    padding: 3rem 0;
}

.profile-sections {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.profile-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-primary);
    opacity: 0.7;
    margin: 0;
}

.profile-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-field {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.field-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.field-content {
    flex: 1;
}

.field-label {
    display: block;
    color: var(--text-primary);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.field-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1;
}

.stat-label {
    color: var(--text-primary);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.preferences-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preference-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.preference-icon {
    width: 35px;
    height: 35px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.preference-content {
    flex: 1;
}

.preference-content h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.preference-content p {
    color: var(--text-primary);
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}

.preference-status {
    flex-shrink: 0;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.status-badge.inactive {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    opacity: 0.7;
}

.profile-actions {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.profile-actions .btn-primary,
.profile-actions .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 200px;
    height: 48px;
}

.profile-actions .btn-secondary[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.coming-soon {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 0.5rem;
}

/* Mobile responsiveness for profile */
@media (max-width: 768px) {
    .profile-header {
        padding: 2rem 0;
    }
    
    .profile-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-header-info h1 {
        font-size: 2rem;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    /* Blue Seal for verified users */
    .blue-seal {
        position: absolute;
        bottom: -5px;
        right: -5px;
        background: #007bff;
        color: white;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        border: 2px solid white;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    }
    
    .profile-avatar {
        position: relative;
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, var(--accent-gold), #ffa500);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
        color: var(--bg-primary);
        margin: 0 auto 1rem;
    }
    
    .avatar-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .member-since {
        color: var(--text-secondary);
        font-size: 0.9rem;
        margin-top: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Reusable Profile Avatar Classes */
    /* Removed - using unified avatar component */
    
/* Avatar Component - ÚNICO E DEFINITIVO */
.avatar-container {
    display: inline-block;
    position: relative;
}

.profile-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    vertical-align: middle;
}

.profile-avatar-small { width: 48px; height: 48px; }
.profile-avatar-medium { width: 96px; height: 96px; }
.profile-avatar-large { width: 128px; height: 128px; }

/* Removido - usando .verification-badge unificada */

/* Profile photo styles for review page */
.profile-photo-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-gold);
    margin-right: 1.5rem;
    position: relative;
    flex-shrink: 0;
}

.photo-container {
    position: relative;
    width: 100%;
    height: 100%;
}

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

/* Selo de verificação oficial */
.verification-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
    /* Tamanho padrão (medium) */
    width: 24px;
    height: 24px;
}

/* Tamanhos responsivos baseados no avatar - usando seletor de irmão */
.avatar-container .profile-avatar-small ~ .verification-badge {
    width: 16px;
    height: 16px;
}

.avatar-container .profile-avatar-large ~ .verification-badge {
    width: 30px;
    height: 30px;
}

.photo-placeholder-large {
    width: 100%;
    height: 100%;
    background: var(--surface-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-secondary);
    font-size: 2rem;
}

.photo-placeholder-large span {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Removido - usando imagem agora */

/* Removido - agora usando .verification-badge-img */

/* Remover regras conflitantes - usando estrutura div + i limpa */
    
    /* Removed - using unified avatar component */
    
    /* Dashboard Avatar Styles */
    .dashboard-header-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .dashboard-user-info {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .dashboard-avatar {
        position: relative;
        width: 64px;
        height: 64px;
        background: linear-gradient(135deg, var(--accent-gold), #ffa500);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: var(--bg-primary);
        flex-shrink: 0;
    }
    
    .dashboard-welcome h1 {
        margin: 0;
        font-size: 2rem;
        color: var(--text-primary);
    }
    
    .dashboard-welcome .subtitle {
        margin: 0.5rem 0 0 0;
        color: var(--text-secondary);
        font-size: 1rem;
    }

    /* All avatar styles now handled by unified component */
    
    .profile-section {
        padding: 2rem;
    }
    
    .profile-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .field-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .profile-content {
        padding: 2rem 0;
    }
    
    .profile-section {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .stat-card,
    .preference-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .preference-content {
        text-align: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero content animation handled via individual elements now */

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Validation Request Buttons */
.validation-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-validation-yes,
.btn-validation-no {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-validation-yes {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.btn-validation-yes:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-validation-no {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.btn-validation-no:hover {
    background: linear-gradient(135deg, #d32f2f, #c62828);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.validation-declined {
    color: #FFD700;
    font-style: italic;
    padding: 1rem;
    text-align: center;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
}

.validation-request {
    border-left: 3px solid #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

/* ===== RESPONSIVE VIDEO MODAL STYLES ===== */

/* Video Modal Background */
.modal#videoModal .modal-dialog {
    max-width: 95vw;
    margin: 1.75rem auto;
}

.video-modal-content {
    background: #000;
    border: none;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.video-modal-header {
    background: transparent;
    border: none;
    padding: 15px 20px 0;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
}

.video-modal-body {
    padding: 0;
    background: #000;
}

/* Responsive Video Container */
.responsive-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.responsive-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents cropping/distortion */
    background: #000;
    border-radius: 8px;
}

/* Enhanced Video Controls Styling */
.responsive-video::-webkit-media-controls-panel {
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        transparent 100%
    ) !important;
}

.responsive-video::-webkit-media-controls-current-time-display,
.responsive-video::-webkit-media-controls-time-remaining-display {
    color: #FFD700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.responsive-video::-webkit-media-controls-play-button,
.responsive-video::-webkit-media-controls-mute-button,
.responsive-video::-webkit-media-controls-fullscreen-button {
    filter: brightness(1.2) contrast(1.1);
}

.responsive-video::-webkit-media-controls-timeline {
    background: rgba(255, 215, 0, 0.3) !important;
    border-radius: 2px;
}

/* Custom close button styling */
.video-modal-header .btn-close {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 0.8;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-modal-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.05);
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .modal#videoModal .modal-dialog {
        margin: 0;
        max-width: 100vw;
        max-height: 100vh;
    }
    
    .video-modal-content {
        border-radius: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .video-modal-header {
        padding: 10px 15px 0;
    }
    
    .video-modal-body {
        flex: 1;
        display: flex;
        align-items: center;
        padding: 20px;
    }
    
    .responsive-video-container {
        padding-bottom: 56.25%; /* Maintain 16:9 on mobile */
        border-radius: 8px;
    }
}

/* Large Desktop Optimization */
@media (min-width: 1200px) {
    .modal#videoModal .modal-dialog {
        max-width: 1140px;
    }
    
    .responsive-video-container {
        max-height: 80vh;
        padding-bottom: min(56.25%, 80vh);
    }
}

/* Ultra-wide screen optimization */
@media (min-width: 1600px) {
    .modal#videoModal .modal-dialog {
        max-width: 1400px;
    }
}

/* Landscape phone optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .video-modal-body {
        padding: 10px;
    }
    
    .responsive-video-container {
        padding-bottom: 75%; /* Adjust for landscape */
    }
}

/* Removed - using unified avatar component */

/* Profile picture styling with verification badge support */
.profile-picture {
    border-radius: 50%;
    object-fit: cover;
}

/* Header profile picture with verification */
.user-avatar {
    position: relative;
    display: inline-block;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

/* Dashboard profile picture with verification */
.dashboard-profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin: 0 auto 1rem;
}

/* Wisdom Seal profile picture with verification */
.wisdom-seal-profile {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}


/* How It Works Section Compact */
.steps-flow-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.step-compact {
    text-align: center;
    min-width: 120px;
}

.step-icon-compact {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #c9a96e, #d4b574);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.3);
    transition: all 0.3s ease;
}

.step-compact:hover .step-icon-compact {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(201, 169, 110, 0.4);
}

.step-icon-compact i {
    font-size: 1.8rem;
    color: #0a0e27;
}

.step-title-compact {
    font-size: 1rem;
    font-weight: 600;
    color: #c9a96e;
    margin: 0;
    text-shadow: 0 2px 10px rgba(201, 169, 110, 0.3);
}

.flow-arrow {
    color: #c9a96e;
    font-size: 1.5rem;
    opacity: 0.6;
    margin: 0 0.5rem;
}

.how-it-works-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-discover-more {
    background: transparent;
    color: #c9a96e;
    padding: 1rem 2rem;
    border: 2px solid #c9a96e;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-discover-more:hover {
    background: rgba(201, 169, 110, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.2);
    color: #c9a96e;
    text-decoration: none;
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary-hero,
    .btn-secondary-hero {
        min-width: 280px;
    }
    
    .chat-container-mini {
        width: 320px;
        right: -10px;
    }
    
    .steps-flow-compact {
        flex-direction: column;
        gap: 1rem;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .chat-widget-floating {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-toggle-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* ===== CHATGPT-STYLE CLEAN INTERFACE ===== */
/* Replicando o design minimalista do ChatGPT */

/* Container principal centralizado */
.chat-container {
    max-width: 768px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Input group estilo ChatGPT */
.input-wrapper, 
.chat-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(201, 169, 110, 0.2) !important;
    border-radius: 24px !important;
    padding: 12px 16px !important;
    margin: 20px auto !important;
    max-width: 100% !important;
    transition: border-color 0.2s ease !important;
}

.input-wrapper:focus-within,
.chat-input-group:focus-within {
    border-color: rgba(201, 169, 110, 0.4) !important;
}

/* Campo de texto clean */
.chat-input {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #e8e8e8 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.95rem !important;
    padding: 0 12px !important;
    min-height: 24px !important;
    resize: none !important;
    box-shadow: none !important;
}

.chat-input::placeholder {
    color: rgba(232, 232, 232, 0.4) !important;
}

/* Ícones minimalistas como no ChatGPT */
.attachment-button,
.audio-button,
.chat-send-btn,
.send-button {
    width: 32px !important;
    height: 32px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
    color: rgba(232, 232, 232, 0.6) !important;
    margin: 0 2px !important;
}

/* Ícone de anexo (plus) */
.attachment-button {
    order: 1;
}

.attachment-button .fas {
    font-size: 0.9rem !important;
}

.attachment-button:hover {
    background: rgba(201, 169, 110, 0.1) !important;
    color: #c9a96e !important;
}

/* Ícone de microfone */
.audio-button {
    order: 2;
}

.audio-button:hover {
    background: rgba(201, 169, 110, 0.1) !important;
    color: #c9a96e !important;
}

.audio-button.recording {
    color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.1) !important;
    animation: pulse-recording 1.5s infinite !important;
}

/* Botão de envio */
.chat-send-btn,
.send-button {
    order: 3;
    background: #c9a96e !important;
    color: #0a0e27 !important;
    border-radius: 6px !important;
    opacity: 0.8;
}

.chat-send-btn:hover,
.send-button:hover {
    opacity: 1 !important;
    background: #d4b574 !important;
}

/* Ordem dos elementos no input */
.input-wrapper,
.chat-input-group {
    display: flex !important;
    gap: 4px !important;
}

.chat-input {
    order: 0 !important;
}

/* ===== MENSAGENS ESTILO CHATGPT ===== */

/* Chat window clean */
.chat-window {
    min-height: 400px !important;
    padding: 0 !important;
    margin-bottom: 2rem !important;
    background: transparent !important;
}

.chat-welcome {
    text-align: center !important;
    padding: 3rem 0 !important;
}

.welcome-message {
    background: transparent !important;
    border: none !important;
    text-align: center !important;
    max-width: none !important;
}

.welcome-message .message-content {
    background: transparent !important;
    border: none !important;
    text-align: center !important;
    max-width: none !important;
    color: rgba(232, 232, 232, 0.8) !important;
    font-size: 1.1rem !important;
    font-weight: 300 !important;
    line-height: 1.6 !important;
}

.welcome-message .message-avatar {
    display: none !important;
}

/* Mensagens do chat */
.message {
    margin-bottom: 1.5rem !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    max-width: 100% !important;
}

.sophia-message {
    justify-content: flex-start !important;
}

.user-message {
    justify-content: flex-end !important;
    flex-direction: row-reverse !important;
}

.message-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #c9a96e, #d4b574) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    color: #0a0e27 !important;
    flex-shrink: 0 !important;
}

.message-content {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    color: #e8e8e8 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    font-weight: 300 !important;
}

.user-message .message-content {
    background: rgba(201, 169, 110, 0.08) !important;
    border: 1px solid rgba(201, 169, 110, 0.15) !important;
    border-radius: 18px !important;
    padding: 12px 16px !important;
    max-width: 80% !important;
}

/* Header do chat clean */
.chat-header {
    text-align: center !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1) !important;
}

.chat-header h2 {
    color: #e8e8e8 !important;
    font-size: 1.3rem !important;
    font-weight: 400 !important;
    margin-bottom: 0.5rem !important;
}

.chat-status {
    color: rgba(232, 232, 232, 0.6) !important;
    font-size: 0.85rem !important;
    font-weight: 300 !important;
}

.sophia-avatar {
    display: none !important;
}

/* Input hints e status */
.input-hint {
    text-align: center !important;
    color: rgba(232, 232, 232, 0.4) !important;
    font-size: 0.8rem !important;
    margin-top: 0.5rem !important;
    font-weight: 300 !important;
}

.audio-status {
    text-align: center !important;
    color: #c9a96e !important;
    font-size: 0.8rem !important;
    padding: 0.5rem 0 !important;
    opacity: 0.9 !important;
    font-style: italic !important;
    font-weight: 300 !important;
}

/* Chat overlay clean */
.chat-overlay {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(15px) !important;
}

.chat-overlay .chat-container {
    background: rgba(10, 14, 39, 0.9) !important;
    border: 1px solid rgba(201, 169, 110, 0.1) !important;
    border-radius: 12px !important;
    max-width: 700px !important;
    max-height: 85vh !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.chat-overlay .chat-header {
    background: rgba(201, 169, 110, 0.03) !important;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1) !important;
    padding: 1rem !important;
    margin-bottom: 0 !important;
    text-align: left !important;
}

.chat-overlay .chat-body {
    padding: 1.5rem !important;
    max-height: 50vh !important;
    overflow-y: auto !important;
}

.chat-overlay .chat-footer {
    padding: 1rem !important;
    border-top: 1px solid rgba(201, 169, 110, 0.1) !important;
}

/* ===== FILE PREVIEW SYSTEM ===== */
.file-preview {
    display: none;
    background: rgba(201, 169, 110, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #e8e8e8;
    position: relative;
    z-index: 10;
    max-width: 100%;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.file-preview-content {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 400px;
}

.file-preview-content i {
    color: #c9a96e;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.file-preview-content span {
    flex: 1;
    color: rgba(232, 232, 232, 0.9);
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.remove-files {
    background: transparent;
    border: none;
    color: rgba(232, 232, 232, 0.6);
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remove-files:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e8e8e8;
}

/* Fix for chat input containers to prevent layout breaking */
.input-wrapper,
.chat-input-group {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

.input-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
}

/* Make sure file preview doesn't interfere with input layout */
.input-wrapper .file-preview,
.chat-input-group .file-preview {
    order: -1 !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

/* Force horizontal layout for ask.html */
.chat-container .input-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
}

.chat-container .chat-input {
    flex: 1 !important;
    margin-right: 0 !important;
}

.chat-container .attachment-button,
.chat-container .audio-button,
.chat-container .send-button {
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* Container do chat limpo */
.chat-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.chat-header {
    text-align: center;
    margin-bottom: 30px;
}

.chat-header h2 {
    color: #c9a96e;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.chat-status {
    color: rgba(232, 232, 232, 0.7);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Mensagens do chat limpas */
.chat-window {
    min-height: 300px;
    padding: 20px 0;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sophia-message {
    justify-content: flex-start;
}

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

.message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a96e, #d4b574);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #0a0e27;
    flex-shrink: 0;
}

.message-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: 16px;
    padding: 12px 16px;
    max-width: 70%;
    color: #e8e8e8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.user-message .message-content {
    background: rgba(201, 169, 110, 0.1);
    border-color: rgba(201, 169, 110, 0.2);
}

/* Status do áudio limpo */
.audio-status {
    text-align: center;
    color: #c9a96e;
    font-size: 0.8rem;
    padding: 8px 0;
    opacity: 0.8;
    font-style: italic;
}

/* Input hint limpo */
.input-hint {
    text-align: center;
    color: rgba(232, 232, 232, 0.4);
    font-size: 0.75rem;
    margin-top: 8px;
}

/* Chat overlay limpo */
.chat-overlay {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(10px);
}

.chat-overlay .chat-container {
    background: rgba(10, 14, 39, 0.8) !important;
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: 16px;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
}

.chat-overlay .chat-header {
    background: rgba(201, 169, 110, 0.05);
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
    padding: 16px;
    margin-bottom: 0;
}

.chat-overlay .chat-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.chat-overlay .chat-footer {
    padding: 16px;
    border-top: 1px solid rgba(201, 169, 110, 0.1);
}

/* FORCED STYLE FOR FILE NAME DISPLAY */
.verification-status p {
    word-wrap: break-word !important;
    white-space: normal !important;
    text-align: left !important;
    line-height: 1.5 !important;
}

/* ✅ CSS PADRONIZADO PARA CAIXAS DE CONFIRMAÇÃO DE UPLOAD */
.upload-confirmation-box {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.upload-confirmation-box .confirmation-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #28a745;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.upload-confirmation-box .confirmation-header i {
    font-size: 1.2rem;
}

.upload-confirmation-box .confirmation-content {
    color: var(--text-secondary);
}

.upload-confirmation-box .file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.upload-confirmation-box .file-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    word-break: break-all;
    line-height: 1.4;
}

.upload-confirmation-box .file-item:last-child {
    margin-bottom: 0;
}

.upload-confirmation-box .file-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(201, 169, 110, 0.4);
}

/* Animação para caixas de confirmação */
.upload-confirmation-box {
    animation: fadeInUp 0.4s ease-out;
}

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

/* ✅ FIX: Alto contraste para opções de dropdown */
select.form-control option,
select option,
.form-group select option {
    background-color: white !important;
    color: black !important;
}
