/* Divine Tech AI Platform - AI Platform Styles */

/* AI Platform Header */
.ai-platform-header {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.ai-header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ai-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-title i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
}

.ai-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.ai-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.ai-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.feature i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.ai-header-visual {
    position: relative;
}

.ai-header-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

/* Chat Section */
.ai-chat-section {
    padding: 0;
    background: var(--dark-bg);
    min-height: 70vh;
}

.chat-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 80vh;
    margin: 0 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Chat Sidebar */
.chat-sidebar {
    background: rgba(5, 5, 5, 0.9);
    border-right: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.new-chat-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.new-chat-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.chat-item {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    color: var(--text-gray);
}

.chat-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--text-light);
}

.chat-item.active {
    background: var(--gradient-primary);
    color: white;
}

.chat-item i {
    font-size: 0.9rem;
    width: 16px;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    display: block;
}

.profile-status {
    font-size: 0.8rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Main Chat Area */
.chat-main {
    display: flex;
    flex-direction: column;
}

.chat-mode-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 247, 0.1));
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.chat-mode-header h2 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chat-mode-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin: 0;
}

.chat-header {
    background: rgba(0, 212, 255, 0.05);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.ai-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

.ai-status {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.action-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.model-selector, .chat-mode-selector {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.model-selector label, .chat-mode-selector label {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 500;
}

.model-selector select {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 140px;
}

.chat-mode-selector select {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(123, 47, 247, 0.3);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 180px;
}

.control-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.control-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.welcome-message {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.welcome-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.welcome-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.welcome-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.welcome-text p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.welcome-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.welcome-text li {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Quick Help Section */
.quick-help {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: var(--border-radius);
}

.quick-help h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.tip-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.tip-card:hover {
    background: rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

.tip-card i {
    color: var(--electric-cyan);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tip-card span {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Support CTA Section */
.support-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.1));
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: var(--border-radius);
    text-align: center;
}

.support-cta p {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.support-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.support-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.support-btn i {
    font-size: 1.1rem;
}

.support-btn.sl {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.support-btn.ng {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

/* Mobile Responsive for Support Elements */
@media (max-width: 768px) {
    .welcome-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .welcome-avatar {
        align-self: center;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .support-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .support-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .welcome-message {
        padding: 1.5rem;
    }
    
    .quick-help {
        padding: 1rem;
    }
    
    .support-cta {
        padding: 1rem;
    }
}

.message {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

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

.ai-message .message-avatar {
    background: var(--gradient-primary);
    color: white;
}

.user-message .message-avatar {
    background: var(--text-gray);
    color: var(--text-light);
}

.message-content {
    flex: 1;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    line-height: 1.6;
}

.user-message .message-content {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

.message-content p {
    margin-bottom: 0.75rem;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul,
.message-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.message-content li {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.message-content code {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.message-content pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.message-content pre code {
    background: none;
    padding: 0;
    color: var(--text-light);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 212, 255, 0.3);
    margin-left: 3rem;
}

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

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    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);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input-container {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    background: rgba(5, 5, 5, 0.9);
}

.chat-input-wrapper {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.input-tools {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tool-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary-color);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tool-btn:hover,
.tool-btn.active {
    background: var(--primary-color);
    color: white;
}

.input-container {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

#chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;
    resize: none;
    min-height: 24px;
    max-height: 120px;
    padding: 0;
}

#chat-input:focus {
    outline: none;
}

#chat-input::placeholder {
    color: var(--text-gray);
}

.send-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.char-count {
    font-weight: 500;
}

/* Settings Panel */
.chat-settings {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 212, 255, 0.3);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.chat-settings.active {
    right: 0;
}

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

.settings-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.close-settings {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-settings:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
}

.settings-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.setting-group {
    margin-bottom: 2rem;
}

.setting-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.setting-group select {
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--text-light);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem !important;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Learning Paths */
.learning-paths {
    padding: 100px 0;
    background: var(--gradient-dark);
}

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

.path-card {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.path-card:hover::before {
    left: 100%;
}

.path-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

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

.path-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.path-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.path-progress {
    text-align: left;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.path-progress span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* AI Capabilities */
.ai-capabilities {
    padding: 100px 0;
    background: var(--dark-bg);
}

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

.capability-category {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.3s ease;
}

.capability-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.capability-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.capability-category h3 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.capability-category ul {
    list-style: none;
    padding: 0;
}

.capability-category li {
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.capability-category li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ai-header-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .ai-features {
        grid-template-columns: 1fr;
    }
    
    .chat-container {
        margin: 0 10px;
        grid-template-columns: 250px 1fr;
    }
    
    .chat-settings {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .ai-platform-header {
        padding: 100px 0 60px;
    }
    
    .ai-title {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ai-title i {
        font-size: 2rem;
    }
    
    .chat-container {
        grid-template-columns: 1fr;
        height: 70vh;
        margin: 0 5px;
    }
    
    .chat-sidebar {
        display: none;
    }
    
    .chat-sidebar.mobile-open {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
    }
    
    .chat-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .chat-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .model-selector select {
        min-width: 120px;
    }
    
    .welcome-content {
        flex-direction: column;
        text-align: center;
    }
    
    .message {
        gap: 0.75rem;
    }
    
    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .message-content {
        padding: 1rem;
    }
    
    .chat-settings {
        width: 100%;
        right: -100%;
    }
    
    .paths-grid {
        grid-template-columns: 1fr;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .capability-category {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ai-title {
        font-size: 1.8rem;
    }
    
    .ai-description {
        font-size: 1rem;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .welcome-message {
        padding: 1.5rem;
    }
    
    .chat-input-container {
        padding: 1rem;
    }
    
    .input-tools {
        justify-content: center;
    }
    
    .input-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Payment Buttons */
.payment-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.payment-btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
}

.payment-btn.basic {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.payment-btn.pro {
    background: linear-gradient(135deg, var(--primary-color), #00d4ff);
    color: white;
}

.payment-btn.enterprise {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.payment-btn i {
    font-size: 0.8rem;
}

/* Mobile Responsive for Payment Buttons */
@media (max-width: 768px) {
    .payment-buttons {
        flex-direction: column;
    }
    
    .payment-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Welcome Message Enhancements */
.ai-status-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1.5rem 0;
}

.ai-status-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.status-item.active i {
    color: #28a745;
    animation: pulse 2s infinite;
}

.quick-upgrade {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 143, 171, 0.1));
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.quick-upgrade h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quick-upgrade p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.upgrade-btn {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 107, 157, 0.3);
}

/* Mobile Responsive for Welcome Elements */
@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-upgrade {
        padding: 1rem;
    }
    
    .upgrade-btn {
        width: 100%;
        justify-content: center;
    }
}

/* AI Models Showcase */
.ai-models-showcase {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.ai-models-showcase h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.model-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.model-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 212, 255, 0.2);
}

.model-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.model-card span {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.model-card small {
    color: var(--text-gray);
    font-size: 0.75rem;
}

/* Platform Features */
.platform-features {
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.platform-features h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Service Upgrade */
.service-upgrade {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 107, 157, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.service-upgrade h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.service-upgrade p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.service-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.service-btn {
    background: linear-gradient(135deg, var(--primary-color), #00d4ff);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.service-btn.secondary {
    background: linear-gradient(135deg, var(--secondary-color), #ff8fab);
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Directory Guide */
.directory-guide {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.directory-guide h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.5);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.step-number {
    background: var(--gradient-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.step-content strong {
    color: var(--text-light);
    font-size: 0.9rem;
}

.step-content span {
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* Mobile Responsive for New Elements */
@media (max-width: 768px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .service-buttons {
        flex-direction: column;
    }
    
    .service-btn {
        width: 100%;
        justify-content: center;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    /* Improved Chat Interface Responsive */
    .chat-mode-header h2 {
        font-size: 1.5rem;
    }
    
    .chat-mode-header p {
        font-size: 1rem;
    }
    
    .chat-controls {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .control-group {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .model-selector, .chat-mode-selector {
        width: 100%;
    }
    
    .model-selector select, .chat-mode-selector select {
        width: 100%;
        min-width: unset;
    }
    
    .action-controls {
        justify-content: center;
        width: 100%;
    }
    
    .chat-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .chat-title {
        justify-content: center;
        text-align: center;
    }
}

/* Mobile Responsive for Small Screens */
@media (max-width: 480px) {
    .chat-mode-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .chat-mode-header h2 {
        font-size: 1.3rem;
    }
    
    .chat-controls {
        gap: 0.75rem;
    }
    
    .control-group {
        gap: 0.5rem;
    }
    
    .model-selector label, .chat-mode-selector label {
        font-size: 0.75rem;
    }
    
    .model-selector select, .chat-mode-selector select {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .action-controls {
        gap: 0.25rem;
    }
    
    .control-btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}