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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f23;
    min-height: 100vh;
    color: #e5e7eb;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0f0f23;
    position: relative;
}



.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
}

/* Side Panel - Outside Chat Container */
.side-panel {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 100;
    align-items: flex-end;
    padding: 2rem;
}

.ekagni-branding {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 2rem;
    z-index: 100;
}

.branding-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ekagni-branding .logo-image {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.ekagni-branding h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.branding-subtitle {
    font-size: 0.625rem;
    color: #64748b;
    font-weight: 400;
    letter-spacing: 0.025em;
    margin-left: 0.25rem;
    margin-bottom: 1rem;
}

/* New Chat Icon */
.new-chat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    align-self: center;
}

.new-chat-icon:hover {
    transform: scale(1.1);
}

.new-chat-icon .new-chat-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.85);
}

/* Chat Sessions */
.chat-sessions {
    width: 100%;
    margin-top: 1rem;
}

/* Reserve space for up to 5 session buttons and add grey border below */
#chatSessions {
    border-bottom: 1px solid #334155;
    padding-bottom: 1rem;
}

.sessions-header h3 {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.heading-icon {
    margin-right: 0.4rem;
    vertical-align: middle;
    font-size: 1em; /* match heading text size */
}

.heading-icon-yellow {
    color: #fbbf24; /* amber-400 */
}

.heading-icon-orange {
    color: #fb923c; /* orange-400 */
}

.sessions-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px; /* smaller gap between text and icon */
}

.sessions-header .new-chat-icon {
    margin-top: 8px; /* bring icon down to align with text baseline */
}

.sync-status {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.sync-status i {
    font-size: 0.5rem;
    color: #64748b;
    transition: color 0.3s ease;
}

.sync-status.online i {
    color: #10b981;
    animation: pulse 2s infinite;
}

.sync-status.syncing i {
    color: #f59e0b;
    animation: spin 1s linear infinite;
}

.sync-status.offline i {
    color: #ef4444;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 220px; /* fixed space to fit ~5 session buttons */
    overflow-y: auto; /* scroll when more sessions exist */
    padding-right: 6px; /* small gap between scrollbar and chat buttons */
}

/* Floating Save PDF button container - fixed at left pane area */
#saveChatPdfFloating {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 12000; /* above custom scrollbar */
}

#saveChatPdfFloating .btn-secondary {
    width: auto;
    padding: 0.35rem 0.4rem; /* even tighter sides */
    display: inline-flex;
    align-items: center;
}

#saveChatPdfBtn span {
    margin-left: 4px; /* reduce gap between icon and text */
}

.session-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    color: #e5e7eb;
}

.session-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.5);
}

.session-item.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.session-item i {
    font-size: 0.625rem;
    color: #94a3b8;
}

.session-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-date {
    font-size: 0.625rem;
    color: #64748b;
}

.session-count {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    font-size: 0.5rem;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    min-width: 1.25rem;
    text-align: center;
    font-weight: 500;
}

/* Custom scrollbar for sessions list */
.sessions-list::-webkit-scrollbar {
    width: 4px;
}

.sessions-list::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 2px;
}

.sessions-list::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 2px;
}

.sessions-list::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* Notebooks Section */
.notebooks-section {
    width: 100%;
    margin-top: 1rem;
}

.notebooks-header h3 {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.create-notebook-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #1e293b; /* per theme */
    color: #e5e7eb;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.create-notebook-btn:hover {
    background: #334155;
}

/* Notebook Modal */
.notebook-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3100;
    padding: 2rem;
}

.notebook-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.notebook-card {
    position: relative;
    background: #1a1a2e;
    border: 1px solid #2d3748;
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    z-index: 3101;
}

.notebook-card h2 {
    font-size: 1.1rem;
    color: #f8fafc;
    margin-bottom: 0.75rem;
}

.notebook-form .form-group {
    margin-bottom: 0.875rem;
}

.notebook-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e5e7eb;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.notebook-form input[type="text"],
.notebook-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #1e293b;
    color: #f8fafc;
    font-size: 0.875rem;
}

.notebook-form textarea {
    min-height: 160px;
    resize: vertical;
}

.notebook-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-create-notebook {
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-create-notebook:hover {
    opacity: 0.9;
}

.btn-cancel-notebook {
    background: #334155;
    color: #e5e7eb;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-cancel-notebook:hover {
    background: #4a5568;
}

/* Name field counter (right aligned) */
.notebook-counter {
    text-align: right;
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Media upload box with trigger button */
.media-box {
    border: 1px solid #334155;
    background: #0f172a;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.media-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
}

.media-trigger i {
    font-size: 1rem;
}

/* Selected files container (fixed height to preserve form size) */
.media-selected {
    margin-top: 0.5rem;
    border: 1px dashed #3b82f6;
    background: rgba(30, 58, 138, 0.25);
    border-radius: 12px;
    padding: 0.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    max-height: 160px; /* keep overall form size stable */
    overflow: auto;
}

.media-selected:empty {
    display: none;
}

.media-chip {
    position: relative;
    border: 1px dashed rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.15);
    color: #cbd5e1;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.2rem;
    word-break: break-all;
}

.media-chip .remove {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.media-chip .remove:hover {
    background: #1e293b;
}

/* Dim Save PDF button when any modal is open */
.modal-open #saveChatPdfFloating {
    opacity: 0.35 !important;
    filter: grayscale(100%);
    pointer-events: none;
}

.profile-section {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 90px;
    box-shadow: none !important;
    backdrop-filter: none;
    filter: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

.profile-trigger:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: none !important;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

.profile-trigger:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: none !important;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

.profile-trigger:focus {
    box-shadow: none !important;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    outline: none;
}

.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}

.profile-name {
    font-size: 0.75rem;
    color: #e5e7eb;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.profile-trigger i.fa-chevron-down {
    font-size: 0.625rem;
    color: #94a3b8;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
}

.profile-trigger.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.75rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #2d3748;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 10px 20px rgba(0, 0, 0, 0.2);
    min-width: 240px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    padding: 1.25rem;
    border-bottom: 1px solid #2d3748;
    text-align: center;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin: 0 auto 0.75rem auto;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.dropdown-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.025em;
}

.dropdown-email {
    font-size: 0.75rem;
    color: #94a3b8;
    letter-spacing: 0.025em;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #2d3748 50%, transparent 100%);
    margin: 0.75rem 0;
}

.dropdown-menu {
    padding: 0.75rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 0 0 0 0;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
    color: #f8fafc;
}

.dropdown-item i {
    width: 20px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.dropdown-item:hover i {
    color: #3b82f6;
}



/* Chat Container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: calc(100vh - 200px);
}

/* Hide the original scrollbar completely */
.chat-messages::-webkit-scrollbar {
    width: 0 !important;
    display: none !important;
}

.chat-messages::-webkit-scrollbar-track {
    display: none !important;
}

.chat-messages::-webkit-scrollbar-thumb {
    display: none !important;
}

.chat-messages {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow-y: scroll; /* Keep scrolling functionality */
}

/* Custom scrollbar at the right edge of screen */
.custom-scrollbar {
    position: fixed;
    top: 0;
    right: 4px; /* Doubled gap from the edge */
    width: 8px;
    height: 100vh;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

.custom-scrollbar-thumb {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    background: #4a5568;
    border-radius: 4px;
    transition: background 0.2s ease;
    pointer-events: auto;
    cursor: pointer;
}

.custom-scrollbar-thumb:hover {
    background: #718096;
}





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

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

.chat-messages::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Custom scrollbar for Firefox */
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #4a5568 transparent;
}

/* Message Styles */
.message {
    display: flex;
    gap: 1rem;
    max-width: 80%;
    animation: fadeIn 0.3s ease-out;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bot-message {
    align-self: flex-start;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

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

.message-avatar {
    display: none;
}

.message-content {
    background: #1e293b;
    padding: 0.125rem 1.25rem; /* Reduced top/bottom padding from 0.25rem to 0.125rem */
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 100%;
    border: 1px solid #334155;
}

.bot-message .message-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.25rem 0;
}

.user-message .message-content {
    background: #063970;
    color: white;
    border: 1px solid #303030;
    padding: 0.25rem 1.25rem !important; /* Small vertical padding for user messages */
}

.user-message .message-text {
    margin-bottom: 0 !important; /* Remove bottom margin from user message text */
    line-height: 1.2 !important; /* Reduce line height for tighter spacing */
}

.message-text {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    color: #e5e7eb;
}

.bot-message .message-text {
    color: #e5e7eb;
    font-size: 0.9rem;
    line-height: 1.6;
}

.message-text strong {
    font-weight: 700;
    color: #f8fafc;
}

.message-text em {
    font-style: italic;
    color: #cbd5e1;
}

.message-text code {
    background: #1e293b;
    color: #fbbf24;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    border: 1px solid #334155;
}

.message-text a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.message-text a:hover {
    border-bottom-color: #3b82f6;
}

/* Success and Error Message Styles */
.success-message {
    border-left: 4px solid #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

.error-message {
    border-left: 4px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.message-time {
    display: none; /* Hide message time */
}

.message-actions {
    margin-top: 0.5rem;
    text-align: right;
    opacity: 1;
    transition: opacity 0.2s ease;
    display: flex;
    justify-content: flex-end;
}

.bot-message .message-actions {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

/* Recording animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.copy-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: #334155;
    color: #e5e7eb;
    transform: scale(1.05);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

/* Copy Toast Notification */
.copy-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1e293b;
    color: #e5e7eb;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #334155;
    font-size: 0.875rem;
    z-index: 10000;
    animation: slideInUp 0.3s ease;
}

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

/* Input Container */
.chat-input-container {
    padding: 1.5rem 2rem;
    background: #0f0f23;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 0.5rem 1rem; /* Reduced top/bottom padding from 0.75rem to 0.5rem */
    transition: all 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#messageInput {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.875rem;
    resize: none;
    min-height: 20px;
    max-height: 100px;
    line-height: 36px;
    color: #f8fafc;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

#messageInput::placeholder {
    color: #64748b;
    line-height: 36px;
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.file-input {
    display: none;
}

.send-button {
    width: 36px; /* Reduced from 40px */
    height: 36px; /* Reduced from 40px */
    border: none;
    border-radius: 50%;
    background: #1e293b;
    color: #e5e7eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    border: 1px solid #334155;
}

.send-button:hover {
    background: #334155;
    color: #f8fafc;
    transform: translateY(-1px);
}

.send-button:active {
    transform: translateY(0);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: #1e293b;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #334155;
}

.action-btn:hover {
    background: #334155;
    color: #f8fafc;
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    font-size: 0.875rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.action-btn:hover i {
    color: #3b82f6;
}

/* Typing Indicator in Chat */
.typing-message .message-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-width: 60px;
    padding: 0.25rem 0 !important;
}

.typing-content {
    padding: 0.25rem 0;
    color: #94a3b8;
    font-style: italic;
}

/* Modal Styles */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #1a1a2e;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 90%;
    text-align: center;
    border: 1px solid #2d3748;
}

.modal-content h2 {
    color: #f8fafc;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.modal-content p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

#apiKeyInput {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #334155;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s ease;
    background: #1e293b;
    color: #f8fafc;
}

#apiKeyInput:focus {
    outline: none;
    border-color: #3b82f6;
    background: #1e293b;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #334155;
    color: #e5e7eb;
    border: 1px solid #4a5568;
}

.btn-secondary:hover {
    background: #4a5568;
    color: #f8fafc;
}

/* Mobile Navigation Styles */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #0f0f23;
    border-bottom: 1px solid #2d3748;
    z-index: 1000;
    padding: 0.75rem 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
}

.ham {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 400ms;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hamRotate.active {
    transform: rotate(45deg);
}

.line {
    fill: none;
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
    stroke: #e5e7eb;
    stroke-width: 5.5;
    stroke-linecap: round;
}

.ham1 .top {
    stroke-dasharray: 40 139;
}

.ham1 .bottom {
    stroke-dasharray: 40 180;
}

.ham1.active .top {
    stroke-dashoffset: -98px;
}

.ham1.active .bottom {
    stroke-dashoffset: -138px;
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    backdrop-filter: blur(4px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #1a1a2e;
    border-left: 1px solid #2d3748;
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid #2d3748;
    background: #16213e;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.mobile-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f8fafc;
}

.mobile-user-email {
    font-size: 0.75rem;
    color: #94a3b8;
}

.mobile-menu-content {
    padding: 1rem 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
    background: #1e293b;
    color: #f8fafc;
}

.mobile-menu-item i {
    width: 20px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.mobile-menu-item:hover i {
    color: #3b82f6;
}

.mobile-menu-divider {
    height: 1px;
    background: #2d3748;
    margin: 0.75rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show mobile nav, hide desktop elements */
    .mobile-nav {
        display: block;
    }
    
    .ekagni-branding {
        display: none;
    }

    /* Keep visible on mobile too; user wants static placement */
    
    .side-panel {
        display: none;
    }
    
    .container {
        margin: 0;
        border-radius: 0;
        margin-top: 60px; /* Space for mobile nav */
    }
    

    
    .ekagni-branding .logo-image {
        width: 28px;
        height: 28px;
    }
    
    .ekagni-branding h1 {
        font-size: 1.25rem;
    }
    
    .branding-subtitle {
        font-size: 0.5rem;
        margin-left: 0.125rem;
    }
    
    .profile-trigger {
        min-width: auto;
        padding: 0.75rem 1rem;
    }
    
    .profile-name {
        display: none;
    }
    
    .profile-avatar {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .profile-dropdown {
        min-width: 280px;
        right: -0.5rem;
    }
    
    /* Keep input fixed and let messages scroll behind it */
    .chat-input-container {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 0.75rem 1rem;
        background: #0f0f23;
        z-index: 1000;
        border-top: 1px solid #2d3748;
    }

    .chat-messages {
        padding: 1rem;
        padding-right: 2rem; /* Extra padding for scrollbar on mobile */
        padding-bottom: calc(7.5rem + env(safe-area-inset-bottom)); /* More space for fixed input + mobile safe-area */
        height: calc(100vh - 120px); /* Base height; content gets extra bottom padding */
    }

    /* Hide floating Save PDF button on mobile */
    #saveChatPdfFloating { display: none !important; }

    /* Ensure the last message isn't hidden under the input */
    .message {
        scroll-margin-bottom: 7rem;
    }
    
    .message {
        max-width: 90%;
    }
    
    .chat-input-container {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    
    .side-panel {
        top: 0;
        right: 0;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .ekagni-branding {
        top: 0;
        left: 0;
        padding: 0.75rem;
    }
    
    .ekagni-branding .logo-image {
        width: 24px;
        height: 24px;
    }
    
    .ekagni-branding h1 {
        font-size: 1.125rem;
    }
    
    .branding-subtitle {
        font-size: 0.45rem;
        margin-left: 0.125rem;
    }
    
    .profile-trigger {
        padding: 0.625rem 0.875rem;
        min-width: auto;
    }
    
    .profile-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }
    
    .profile-dropdown {
        min-width: 260px;
        right: -1rem;
    }
    
    .message {
        max-width: 95%;
    }
    
    .message-content {
        padding: 0.75rem 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error States */
.error-message {
    background: #7f1d1d;
    border: 1px solid #991b1b;
    color: #fecaca;
}

/* Success States */
.success-message {
    background: #14532d;
    border: 1px solid #166534;
    color: #bbf7d0;
}

/* File Message Styles */
.file-message .message-content {
    background: #1e40af;
    color: white;
    border: 1px solid #1e40af;
}

.file-content {
    min-width: 200px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.file-info i {
    font-size: 1.25rem;
    color: #fbbf24;
    width: auto;
}

.file-name {
    font-weight: 600;
    color: #f8fafc;
    flex: 1;
    word-break: break-word;
}

.file-size {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* File Type Icons */
.file-info .fa-image { color: #10b981; }
.file-info .fa-video { color: #ef4444; }
.file-info .fa-music { color: #8b5cf6; }
.file-info .fa-file-pdf { color: #ef4444; }
.file-info .fa-file-word { color: #3b82f6; }
.file-info .fa-file-excel { color: #10b981; }
.file-info .fa-file-powerpoint { color: #f59e0b; }
.file-info .fa-file-archive { color: #8b5cf6; }
.file-info .fa-file { color: #94a3b8; }

/* File Preview Styles */
.file-preview {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    max-width: 100%;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: #334155;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

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

.file-preview-item:hover {
    background: #475569;
}

.file-preview-item i {
    font-size: 1.125rem;
    color: #fbbf24;
    width: auto;
    flex-shrink: 0;
}

.file-preview-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.file-preview-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #f8fafc;
    word-break: break-word;
}

.file-preview-size {
    font-size: 0.75rem;
    color: #94a3b8;
}

.file-remove-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 0.875rem;
    outline: none;
    box-shadow: none;
}

.file-remove-btn:hover {
    background: transparent;
    color: #64748b;
    transform: scale(1.1);
}

.file-remove-btn:active {
    transform: scale(1);
    background: transparent;
}

.file-remove-btn:focus {
    outline: none;
}

/* File Type Icons in Preview */
.file-preview-item .fa-image { color: #10b981; }
.file-preview-item .fa-video { color: #ef4444; }
.file-preview-item .fa-music { color: #8b5cf6; }
.file-preview-item .fa-file-pdf { color: #ef4444; }
.file-preview-item .fa-file-word { color: #3b82f6; }
.file-preview-item .fa-file-excel { color: #10b981; }
.file-preview-item .fa-file-powerpoint { color: #f59e0b; }
.file-preview-item .fa-file-archive { color: #8b5cf6; }
.file-preview-item .fa-file { color: #94a3b8; }

/* Login System Styles */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.login-card, .signup-card {
    background: #1a1a2e;
    border: 1px solid #2d3748;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

.login-header, .signup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.login-header h1, .signup-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.login-header p, .signup-header p {
    color: #94a3b8;
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #e5e7eb;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #1e293b;
    color: #f8fafc;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-input {
    position: relative;
}

.password-input input[type="password"],
.password-input input[type="text"] {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
    z-index: 100; /* Increased z-index */
    min-width: 2rem;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto; /* Ensure clicks are captured */
}

.password-toggle:hover {
    color: #e5e7eb;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    transform: translateY(-50%) scale(1.05);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.remember-me, .terms-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e5e7eb;
    cursor: pointer;
}

.remember-me input, .terms-checkbox input {
    width: auto;
    margin: 0;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #2563eb;
}

.terms-checkbox a {
    color: #3b82f6;
    text-decoration: none;
}

.terms-checkbox a:hover {
    color: #2563eb;
}

.login-btn, .signup-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.login-btn:hover, .signup-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.login-btn:active, .signup-btn:active {
    transform: translateY(0);
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-footer, .signup-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.login-footer a, .signup-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-footer a:hover, .signup-footer a:hover {
    color: #2563eb;
}

/* Google Sign-in Button Styles for Main Login Forms */
.login-container .google-btn,
.login-modal .google-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.login-container .google-btn:hover,
.login-modal .google-btn:hover {
    background: #f9fafb;
    border-color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-container .google-btn:active,
.login-modal .google-btn:active {
    transform: translateY(0);
}

.login-container .google-btn i,
.login-modal .google-btn i {
    font-size: 1.125rem;
    color: #4285f4;
}

/* Divider Styles for Main Login Forms */
.login-container .divider,
.login-modal .divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #64748b;
    font-size: 0.875rem;
}

.login-container .divider::before,
.login-container .divider::after,
.login-modal .divider::before,
.login-modal .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #334155;
}

.login-container .divider span,
.login-modal .divider span {
    padding: 0 1rem;
    background: #1a1a2e;
    color: #94a3b8;
}

/* Main App Styles */
.main-app {
    min-height: 100vh;
    background: #0f0f23;
}

/* Login Modal Styles */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 2rem;
}

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

.login-modal .login-card, .login-modal .signup-card {
    position: relative;
    background: #1a1a2e;
    border: 1px solid #2d3748;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    z-index: 3001;
}

.login-modal .signup-card {
    max-width: 520px;
    padding: 1.25rem;
    border-radius: 20px;
}

.login-modal .login-header, .login-modal .signup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-modal .login-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.login-modal .login-header h1, .login-modal .signup-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.login-modal .login-header p, .login-modal .signup-header p {
    color: #94a3b8;
    font-size: 0.875rem;
}

.login-modal .form-group {
    margin-bottom: 1.25rem;
}

.login-modal .form-group label {
    display: block;
    color: #e5e7eb;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.login-modal .form-group input {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #1e293b;
    color: #f8fafc;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-modal .form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-modal .signup-card .form-group input {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.login-modal .signup-card .form-group label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.login-modal .signup-card .form-options {
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.login-modal .signup-card .login-btn, .login-modal .signup-card .signup-btn {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
}

.login-modal .signup-card .login-footer, .login-modal .signup-card .signup-footer {
    margin-top: 0.75rem;
    font-size: 0.8rem;
}

.login-modal .signup-card .login-header h1, .login-modal .signup-card .signup-header h1 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.login-modal .signup-card .login-header p, .login-modal .signup-card .signup-header p {
    font-size: 0.75rem;
}

.login-modal .signup-card .login-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 0.375rem;
}

.form-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.login-modal .password-input {
    position: relative;
}

.login-modal .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.login-modal .password-toggle:hover {
    color: #e5e7eb;
}

.login-modal .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.login-modal .remember-me, .login-modal .terms-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e5e7eb;
    cursor: pointer;
}

.login-modal .remember-me input, .login-modal .terms-checkbox input {
    width: auto;
    margin: 0;
}

.login-modal .forgot-password {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-modal .forgot-password:hover {
    color: #2563eb;
}

.login-modal .terms-checkbox a {
    color: #3b82f6;
    text-decoration: none;
}

.login-modal .terms-checkbox a:hover {
    color: #2563eb;
}

.login-modal .login-btn, .login-modal .signup-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.login-modal .login-btn:hover, .login-modal .signup-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.login-modal .login-btn:active, .login-modal .signup-btn:active {
    transform: translateY(0);
}

.login-modal .btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-modal .login-footer, .login-modal .signup-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.login-modal .login-footer a, .login-modal .signup-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-modal .login-footer a:hover, .login-modal .signup-footer a:hover {
    color: #2563eb;
}

/* Google Sign-in Button Styles */
.google-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.google-btn:hover {
    background: #f9fafb;
    border-color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-btn:active {
    transform: translateY(0);
}

.google-btn i {
    font-size: 1.125rem;
    color: #4285f4;
}

/* Divider Styles */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #64748b;
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #334155;
}

.divider span {
    padding: 0 1rem;
    background: #1a1a2e;
    color: #94a3b8;
}

/* User Menu Items */
.user-menu-item {
    display: none;
}

.user-menu-item.show {
    display: flex !important;
}

/* Typing Indicator */
.message.bot-message.typing .message-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.25rem 0 !important;
    animation: none !important;
}

.message.bot-message.typing .message-text {
    display: block;
    color: #e5e7eb;
    font-style: normal;
}

.typing-dots {
    display: inline-flex;
    gap: 0.25rem;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #94a3b8;
    animation: typing-blink 1.4s infinite both;
    display: inline-block;
}

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

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

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

/* Remove enhanced typing animation that was causing background issues */
.message.bot-message.typing {
    position: relative;
}

.message.bot-message.typing::after {
    display: none !important;
}

/* Stop Button Mode */
.send-button.stop-mode {
    background: #1e293b !important;
    color: #e5e7eb !important;
    border-color: #334155 !important;
    animation: none;
}

.send-button.stop-mode:hover {
    background: #334155 !important;
    color: #f8fafc !important;
    transform: translateY(-1px);
}

/* Info message type */
.message.bot-message.info .message-content {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
    border: 1px solid #0284c7;
    color: #e0f2fe;
}

/* Enhanced send button transitions */
.send-button {
    transition: all 0.3s ease;
}

.send-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.send-button:active {
    transform: translateY(0);
}

/* Pricing Page Styles */
/* === Ekagni Landing Page - Auth0 Inspired === */
.landing-page {
    background: #111;
    color: #f8fafc;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-nav {
    max-width: 144rem;
    margin: 0 auto;
    padding: 1.6rem 2.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: #fffefa;
}

.landing-logo {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.8rem;
}

.landing-links {
    display: flex;
    align-items: center;
    gap: 3.2rem;
}

.landing-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.landing-links a:hover {
    color: #fffefa;
}

.landing-cta {
    background: linear-gradient(26deg, rgba(255,255,255,0.15) -32.04%, rgba(255,255,255,0.00) 133.43%);
    border: 1.5px solid rgba(255,254,250,0.7);
    border-radius: 0.6rem;
    padding: 1.2rem 3.2rem;
    color: #fffefa;
    font-weight: 500;
    transition: all 0.4s ease;
}

.landing-cta:hover {
    background: radial-gradient(72.18% 56.98% at 50% 100%, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.00) 100%), radial-gradient(100.79% 100% at 50% 0%, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0.00) 100%), linear-gradient(26deg, rgba(255,255,255,0.08) -32.04%, rgba(255,255,255,0.00) 133.43%);
    border-color: rgba(255,254,250,0.8);
}

/* Hero Section */
.landing-hero {
    background: linear-gradient(197deg, #111 21.66%, #191919 56.46%, #4016a0 92.21%, #3f59e4 106.26%);
    position: relative;
    overflow: hidden;
    padding: 12rem 0 8rem;
    border-radius: 0 0 2.4rem 2.4rem;
    margin-top: 8rem;
}

.landing-hero::after {
    content: '';
    position: absolute;
    right: -1.6rem;
    top: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(255,255,255,0.1) 0%, transparent 70%);
    width: 100%;
    z-index: 0;
}

.landing-hero-content {
    max-width: 144rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 2.4rem;
}

.landing-hero h1 {
    font-size: 6.4rem;
    font-weight: 400;
    color: #fffefa;
    letter-spacing: -0.0128rem;
    line-height: 7.03rem;
    margin: 0 0 2.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-feature-settings: 'ss02' on, 'ss03' on, 'ss04' on;
}

.landing-hero h1 .for {
    display: inline-block;
    margin-bottom: 0.6rem;
}

.landing-hero .animated-text-wrapper {
    border: 0.1rem solid #96989d;
    border-radius: 2.4rem;
    display: inline-block;
    padding: 0 1.6rem 0.8rem;
    margin: 0.8rem 0;
    width: 29rem;
    height: 6.4rem;
    overflow: hidden;
    vertical-align: middle;
    white-space: pre;
    backdrop-filter: blur(0.3rem);
    background: rgba(255,255,255,0.05);
}

.landing-hero .animated-text-wrapper div {
    height: 6.4rem;
    display: grid;
    align-items: center;
}

.landing-hero .animated-text {
    display: inline-block;
    background: linear-gradient(76deg, #3F59E4 0%, #F2AC84 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 6.4rem;
    height: 6.4rem;
    padding-right: 0.1rem;
    width: fit-content;
    font-weight: 600;
}

.landing-hero-subtitle {
    font-size: 2rem;
    line-height: 2.8rem;
    color: #e5e5e5;
    max-width: 64rem;
    margin: 0 auto 4rem;
    font-weight: 400;
}

.landing-hero-actions {
    display: flex;
    gap: 1.6rem;
    justify-content: center;
    margin-bottom: 6.4rem;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3.2rem;
    border-radius: 0.6rem;
    font-size: 1.6rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.landing-btn-primary {
    background: linear-gradient(0deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0.40) 100%), radial-gradient(123.72% 71.29% at 7.15% 100%, #FFF 0%, rgba(255,255,255,0.00) 100%), radial-gradient(234.4% 144.94% at 84.62% 0%, #FFF 0%, rgba(255,255,255,0.00) 100%), linear-gradient(26deg, rgba(255,255,255,0.17) -32.04%, rgba(255,255,255,0.00) 133.43%);
    color: #000000;
    box-shadow: 0px -16px 24px 0px rgba(255,255,255,0.48) inset, 0px 4px 4px 0px rgba(0,0,0,0.25);
}

.landing-btn-primary:hover {
    background: linear-gradient(0deg, rgba(255,255,255,0.70) 0%, rgba(255,255,255,0.70) 100%), radial-gradient(120.32% 83.76% at 50% 100%, #FFF 0%, rgba(255,255,255,0.00) 100%), radial-gradient(47.47% 14.92% at 50% 0%, #FFF 0%, rgba(255,255,255,0.00) 100%), radial-gradient(67.49% 95.06% at 50% 15.5%, #FFF 0%, rgba(255,255,255,0.36) 100%), radial-gradient(33.16% 50% at 50% 0%, #FFF 0%, rgba(255,255,255,0.00) 100%);
    color: #191919;
    box-shadow: 0px 8px 28px 0px rgba(255,255,255,0.08);
}

.landing-btn-secondary {
    background: linear-gradient(26deg, rgba(255,255,255,0.15) -32.04%, rgba(255,255,255,0.00) 133.43%);
    border: 1.5px solid rgba(255,254,250,0.7);
    color: #fffefa;
}

.landing-btn-secondary:hover {
    background: radial-gradient(72.18% 56.98% at 50% 100%, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.00) 100%), radial-gradient(100.79% 100% at 50% 0%, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0.00) 100%), linear-gradient(26deg, rgba(255,255,255,0.08) -32.04%, rgba(255,255,255,0.00) 133.43%);
    border-color: rgba(255,254,250,0.8);
}

.landing-hero-login-box {
    box-shadow: 0 3.99736rem 4.70278rem rgba(0,0,0,0.08), 0 1.67rem 1.96471rem rgba(0,0,0,0.0575083), 0rem 0.892863rem 1.05043rem rgba(0,0,0,0.0476886), 0 0.500532rem 0.588861rem rgba(0,0,0,0.04), 0 0.265829rem 0.312739rem rgba(0,0,0,0.0323114), 0 0.110617rem 0.130138rem rgba(0,0,0,0.0224916);
    width: 31.5rem;
    border-radius: 1.6rem;
    border: 0.05rem solid #fffefa;
    background: linear-gradient(26deg, rgba(255,255,255,0.25) -32.04%, rgba(255,255,255,0) 133.43%);
    backdrop-filter: blur(2.1rem);
    padding: 3.829rem 4.7rem 3.63rem 4.7rem;
    position: absolute;
    right: 10%;
    top: 4rem;
    z-index: 1;
}

/* Logos Section */
.landing-logos {
    padding: 6.4rem 0;
    background: #111;
}

.landing-logos-content {
    max-width: 144rem;
    margin: 0 auto;
    text-align: center;
    padding: 0 2.4rem;
}

.landing-logos-content p {
    color: #ababab;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 3.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.landing-logos-grid {
    display: flex;
    justify-content: center;
    gap: 4.8rem;
    flex-wrap: wrap;
}

.landing-logo-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #e5e5e5;
    font-size: 1.6rem;
    font-weight: 500;
}

.landing-logo-dot {
    width: 0.8rem;
    height: 0.8rem;
    background: #3f59e4;
    border-radius: 50%;
}

/* Features Section */
.landing-features {
    padding: 8rem 0;
    background: #111;
}

.landing-features-content {
    max-width: 144rem;
    margin: 0 auto;
    padding: 0 2.4rem;
}

.landing-features-content h2 {
    font-size: 4.8rem;
    font-weight: 400;
    color: #fffefa;
    text-align: center;
    margin-bottom: 6.4rem;
    letter-spacing: -0.1rem;
    line-height: 5.6rem;
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3.2rem;
}

.landing-feature-card {
    background: linear-gradient(26deg, rgba(255,255,255,0.05) -32.04%, rgba(255,255,255,0.00) 133.43%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1.6rem;
    padding: 3.2rem;
    transition: all 0.3s ease;
}

.landing-feature-card:hover {
    background: linear-gradient(26deg, rgba(255,255,255,0.08) -32.04%, rgba(255,255,255,0.00) 133.43%);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-0.4rem);
}

.landing-feature-card h3 {
    font-size: 2.4rem;
    font-weight: 600;
    color: #fffefa;
    margin-bottom: 1.6rem;
}

.landing-feature-card p {
    font-size: 1.6rem;
    line-height: 2.4rem;
    color: #e5e5e5;
}

/* Resources Section */
.landing-resources {
    padding: 8rem 0;
    background: #111;
}

.landing-resources-content {
    max-width: 144rem;
    margin: 0 auto;
    padding: 0 2.4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3.2rem;
}

.landing-resource-card {
    background: linear-gradient(26deg, rgba(255,255,255,0.05) -32.04%, rgba(255,255,255,0.00) 133.43%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1.6rem;
    padding: 3.2rem;
    transition: all 0.3s ease;
}

.landing-resource-card:hover {
    background: linear-gradient(26deg, rgba(255,255,255,0.08) -32.04%, rgba(255,255,255,0.00) 133.43%);
    border-color: rgba(255,255,255,0.2);
}

.landing-resource-card h4 {
    font-size: 2rem;
    font-weight: 600;
    color: #fffefa;
    margin-bottom: 1.6rem;
}

.landing-resource-card p {
    font-size: 1.6rem;
    line-height: 2.4rem;
    color: #e5e5e5;
    margin-bottom: 2.4rem;
}

.landing-link {
    color: #3f59e4;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.landing-link:hover {
    color: #f2ac84;
    text-decoration: underline;
}

/* CTA Section */
.landing-cta-section {
    padding: 8rem 0;
    background: linear-gradient(197deg, #111 21.66%, #191919 56.46%, #4016a0 92.21%, #3f59e4 106.26%);
    text-align: center;
}

.landing-cta-content {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 2.4rem;
}

.landing-cta-content h2 {
    font-size: 4.8rem;
    font-weight: 400;
    color: #fffefa;
    margin-bottom: 1.6rem;
    letter-spacing: -0.1rem;
    line-height: 5.6rem;
}

.landing-cta-content p {
    font-size: 2rem;
    line-height: 2.8rem;
    color: #e5e5e5;
    margin-bottom: 4rem;
}

/* Footer */
.landing-footer {
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 3.2rem 0;
}

.landing-footer-content {
    max-width: 144rem;
    margin: 0 auto;
    padding: 0 2.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-footer-content span {
    color: #80868f;
    font-size: 1.4rem;
}

.landing-footer-nav {
    display: flex;
    gap: 3.2rem;
}

.landing-footer-nav a {
    color: #80868f;
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.landing-footer-nav a:hover {
    color: #e5e5e5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .landing-hero h1 {
        font-size: 5.6rem;
        line-height: 6.2rem;
    }
    
    .landing-hero-subtitle {
        font-size: 1.8rem;
        line-height: 2.6rem;
    }
    
    .landing-features-content h2 {
        font-size: 4rem;
        line-height: 4.8rem;
    }
    
    .landing-cta-content h2 {
        font-size: 4rem;
        line-height: 4.8rem;
    }
}

@media (max-width: 900px) {
    .landing-nav {
        padding: 1.2rem 1.6rem;
    }
    
    .landing-links {
        display: none;
    }
    
    .landing-hero {
        padding: 8rem 0 6rem;
        margin-top: 6rem;
    }
    
    .landing-hero h1 {
        font-size: 4rem;
        line-height: 4.8rem;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .landing-hero .animated-text-wrapper {
        width: 24rem;
        height: 5.6rem;
    }
    
    .landing-hero .animated-text {
        line-height: 5.6rem;
        height: 5.6rem;
    }
    
    .landing-hero-subtitle {
        font-size: 1.6rem;
        line-height: 2.4rem;
    }
    
    .landing-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    
    .landing-btn {
        width: 100%;
        max-width: 28rem;
    }
    
    .landing-hero-login-box {
        position: relative;
        right: auto;
        top: auto;
        margin: 4rem auto 0;
        width: 100%;
        max-width: 35rem;
    }
    
    .landing-features-content h2 {
        font-size: 3.2rem;
        line-height: 4rem;
    }
    
    .landing-features-grid {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }
    
    .landing-resources-content {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }
    
    .landing-cta-content h2 {
        font-size: 3.2rem;
        line-height: 4rem;
    }
    
    .landing-cta-content p {
        font-size: 1.8rem;
        line-height: 2.6rem;
    }
    
    .landing-footer-content {
        flex-direction: column;
        gap: 1.6rem;
        text-align: center;
    }
    
    .landing-footer-nav {
        gap: 2.4rem;
    }
}

@media (max-width: 600px) {
    .landing-hero {
        padding: 6rem 0 4rem;
        margin-top: 5rem;
    }
    
    .landing-hero h1 {
        font-size: 3.2rem;
        line-height: 4rem;
    }
    
    .landing-hero .animated-text-wrapper {
        width: 20rem;
        height: 4.8rem;
    }
    
    .landing-hero .animated-text {
        line-height: 4.8rem;
        height: 4.8rem;
        font-size: 1.8rem;
    }
    
    .landing-hero-subtitle {
        font-size: 1.4rem;
        line-height: 2.2rem;
    }
    
    .landing-btn {
        padding: 1rem 2.4rem;
        font-size: 1.4rem;
    }
    
    .landing-logos-grid {
        gap: 2.4rem;
    }
    
    .landing-logo-item {
        font-size: 1.4rem;
    }
}

.pricing-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.pricing-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.pricing-header p {
    font-size: 1rem;
    color: #94a3b8;
    max-width: 100%;
    margin: 0 auto;
    white-space: nowrap; /* Keep subtitle on a single line for desktop */
    overflow: visible;
    text-overflow: clip;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #64748b;
}

.pricing-card.featured {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #475569;
    transform: none;
}

.pricing-card.featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.plan-badge {
    display: none;
}

.plan-header {
    text-align: center;
    margin-bottom: 1rem;
}

.plan-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.price {
    margin-bottom: 0.5rem;
}

.price .amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f8fafc;
}

.price .period {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-left: 0.25rem;
}

.plan-description {
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.4;
}

.plan-features {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0;
    color: #e2e8f0;
    font-size: 0.75rem;
}

.plan-features li i {
    color: #10b981;
    font-size: 1rem;
    width: 16px;
}

.plan-action {
    text-align: center;
}

.plan-action button {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 116, 139, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 116, 139, 0.4);
}

/* FAQ Section */
.faq-section {
    margin-top: 2rem;
}

.faq-section h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

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

.faq-item {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    border-color: #64748b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #cbd5e1;
    line-height: 1.4;
    font-size: 0.875rem;
}

/* Student Discount Section */
.student-discount-section {
    margin-top: 0.125rem;
    text-align: center;
}

.student-discount-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.student-discount-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: #64748b;
}

.student-icon {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.student-icon i {
    color: white;
    font-size: 1rem;
}

.student-content {
    text-align: left;
    flex-grow: 1;
}

.student-content .text-section {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.student-content h3 {
    color: #f8fafc;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.student-content p {
    color: #cbd5e1;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.btn-student {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.btn-student:hover {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(100, 116, 139, 0.3);
}

/* Active navigation styles */
.dropdown-item.active,
.mobile-menu-item.active {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    color: white;
}

.dropdown-item.active i,
.mobile-menu-item.active i {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-container {
        padding: 1rem;
        gap: 2rem;
    }
    
    .pricing-header h1 {
        font-size: 2rem;
    }
    
    .pricing-header p {
        font-size: 1rem;
        white-space: normal; /* Allow wrapping on mobile */
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }
    
    .pricing-card {
        padding: 1rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-section h2 {
        font-size: 2rem;
    }
    
    .price .amount {
        font-size: 2rem;
    }
    
    /* Mobile styles for student discount card */
    .student-discount-section {
        margin-top: 0.5rem;
    }
    
    .student-discount-card {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .student-content {
        flex: 1;
    }
    
    .student-content .text-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .student-content h3 {
        font-size: 1rem;
        text-align: left;
        margin-bottom: 0.25rem;
    }
    
    .student-content p {
        font-size: 0.8rem;
        text-align: left;
        margin-bottom: 0.75rem;
    }
    
    .btn-student {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        min-width: 160px;
    }
}
/* === Minimalistic Landing Page - Dark Theme === */
.minimal-landing {
    background: #0a0a0a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header */
.minimal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1a1a1a;
}

.minimal-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.minimal-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: #ffffff;
}

.minimal-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
}

.minimal-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.minimal-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.minimal-links a:hover {
    color: #ffffff;
}

.minimal-cta {
    background: #3b82f6;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.minimal-cta:hover {
    background: #2563eb;
    color: white !important;
}

/* Hero Section */
.minimal-hero {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.minimal-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.minimal-hero-content p {
    font-size: 1.25rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
    max-width: 500px;
}

.minimal-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.minimal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.minimal-btn-primary {
    background: #3b82f6;
    color: white;
}

.minimal-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.minimal-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #333333;
}

.minimal-btn-secondary:hover {
    background: #1a1a1a;
    border-color: #404040;
}

/* Hero Visual */
.minimal-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.minimal-chat-preview {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 1rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.minimal-chat-header {
    background: #0f0f0f;
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #333333;
}

.minimal-chat-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #404040;
}

.minimal-chat-dot:nth-child(1) { background: #ff5f57; }
.minimal-chat-dot:nth-child(2) { background: #ffbd2e; }
.minimal-chat-dot:nth-child(3) { background: #28ca42; }

.minimal-chat-messages {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.minimal-message {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    max-width: 80%;
    font-size: 0.9rem;
}

.minimal-message.minimal-user {
    background: #3b82f6;
    color: white;
    align-self: flex-end;
}

.minimal-message.minimal-ai {
    background: #2a2a2a;
    color: #ffffff;
    align-self: flex-start;
}

/* Features Section */
.minimal-features {
    padding: 4rem 2rem;
    background: #0f0f0f;
}

.minimal-features-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.minimal-features-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3rem;
}

.minimal-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.minimal-feature {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    border: 1px solid #333333;
}

.minimal-feature:hover {
    transform: translateY(-5px);
    border-color: #404040;
}

.minimal-feature-icon {
    width: 4rem;
    height: 4rem;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.minimal-feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.minimal-feature p {
    color: #a0a0a0;
    line-height: 1.6;
}

/* CTA Section */
.minimal-cta-section {
    padding: 4rem 2rem;
    background: #0a0a0a;
    text-align: center;
}

.minimal-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.minimal-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.minimal-cta-content p {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
}

/* Footer */
.minimal-footer {
    background: #0f0f0f;
    color: white;
    padding: 2rem;
    border-top: 1px solid #333333;
}

.minimal-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.minimal-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.minimal-footer-logo {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
}

.minimal-footer-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
}

.minimal-footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.minimal-footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .minimal-nav {
        padding: 1rem;
    }
    
    .minimal-links {
        display: none;
    }
    
    .minimal-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 6rem 1rem 2rem;
        text-align: center;
    }
    
    .minimal-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .minimal-hero-content p {
        font-size: 1.1rem;
    }
    
    .minimal-hero-actions {
        justify-content: center;
    }
    
    .minimal-features-content h2 {
        font-size: 2rem;
    }
    
    .minimal-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .minimal-cta-content h2 {
        font-size: 2rem;
    }
    
    .minimal-footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .minimal-footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .minimal-hero-content h1 {
        font-size: 2rem;
    }
    
    .minimal-hero-content p {
        font-size: 1rem;
    }
    
    .minimal-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .minimal-feature {
        padding: 1.5rem;
    }
}

/* Checkout Modal Styles */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.checkout-modal.active {
    display: flex;
}

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

.checkout-card {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: checkoutSlideIn 0.3s ease-out;
}

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

.checkout-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.checkout-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.checkout-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checkout-header p {
    color: #a0a0a0;
    font-size: 14px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #a0a0a0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.checkout-content {
    padding: 30px;
}

.plan-summary {
    margin-bottom: 30px;
}

.plan-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.plan-price {
    margin-bottom: 20px;
}

.plan-price .amount {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
}

.plan-price .period {
    font-size: 16px;
    color: #a0a0a0;
    margin-left: 5px;
}

.plan-features-list {
    list-style: none;
    padding: 0;
}

.plan-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #e0e0e0;
    font-size: 14px;
}

.plan-features-list li i {
    color: #86efac;
    font-size: 12px;
}

.payment-methods h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    text-align: left;
}

.payment-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.payment-option:active {
    transform: translateY(0);
}

.payment-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

#razorpayOption .payment-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#paypalOption .payment-icon {
    background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
    color: white;
}

.payment-info {
    flex: 1;
}

.payment-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.payment-desc {
    display: block;
    font-size: 13px;
    color: #a0a0a0;
}

.payment-arrow {
    color: #a0a0a0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.payment-option:hover .payment-arrow {
    color: #667eea;
    transform: translateX(3px);
}

.checkout-footer {
    margin-top: 30px;
    text-align: center;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #86efac;
    font-size: 13px;
    font-weight: 500;
}

.security-note i {
    font-size: 14px;
}

/* Payment Processing States */
.payment-option.processing {
    opacity: 0.7;
    pointer-events: none;
}

.payment-option.processing .payment-arrow {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-card {
        width: 95%;
        margin: 20px;
    }
    
    .checkout-header {
        padding: 25px 20px 15px;
    }
    
    .checkout-content {
        padding: 25px 20px;
    }
    
    .checkout-header h1 {
        font-size: 20px;
    }
    
    .plan-price .amount {
        font-size: 28px;
    }
    
    .payment-option {
        padding: 15px;
    }
    
    .payment-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .payment-name {
        font-size: 15px;
    }
    
    .payment-desc {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .checkout-card {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .checkout-header {
        padding: 20px 15px 15px;
    }
    
    .checkout-content {
        padding: 20px 15px;
    }
    
    .close-btn {
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
    }
}

