/* ============================================
   Support Tracks AI Assistant - Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #0d9488;
    --primary-light: #14b8a6;
    --primary-dark: #0f766e;
    --primary-glow: rgba(13, 148, 136, 0.4);
    
    --bg-base: #0a0e1a;
    --bg-surface: #111827;
    --bg-elevated: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.6);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border: rgba(148, 163, 184, 0.1);
    --border-hover: rgba(148, 163, 184, 0.2);
    
    --purple: #a855f7;
    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #f43f5e;
    --sky: #0ea5e9;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    
    /* Typography */
    --font: 'Noto Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px var(--primary-glow);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}

/* --- Animated Background --- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--purple);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.bg-orb-3 {
    width: 400px;
    height: 400px;
    background: var(--sky);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.02); }
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-light);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-elevated);
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot.online {
    background: var(--emerald);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- Hero --- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary-light);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--sky), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

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

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 4px 20px var(--primary-glow); }
    50% { box-shadow: 0 4px 40px var(--primary-glow), 0 0 60px rgba(13, 148, 136, 0.2); }
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-light);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    max-width: 480px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.chat-preview {
    background: var(--bg-surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(13, 148, 136, 0.08);
    transition: transform 0.3s ease;
}

.chat-preview:hover {
    transform: translateY(-4px);
}

.chat-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
}

.chat-preview-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-preview-name {
    font-size: 14px;
    font-weight: 600;
}

.chat-preview-status {
    font-size: 12px;
    opacity: 0.8;
}

.chat-preview-messages {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.preview-msg p {
    margin-bottom: 4px;
}

.preview-msg p:last-child {
    margin-bottom: 0;
}

.preview-msg-bot {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-right-radius: 6px;
}

.preview-msg-user {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    align-self: flex-end;
    border-bottom-left-radius: 6px;
}

/* --- Sections --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* --- Features --- */
.features {
    position: relative;
    z-index: 1;
    padding: var(--section-padding);
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.feature-card-large {
    grid-column: span 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon-primary { background: rgba(13, 148, 136, 0.15); color: var(--primary-light); }
.feature-icon-purple { background: rgba(168, 85, 247, 0.15); color: var(--purple); }
.feature-icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--emerald); }
.feature-icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.feature-icon-rose { background: rgba(244, 63, 94, 0.15); color: var(--rose); }
.feature-icon-sky { background: rgba(14, 165, 233, 0.15); color: var(--sky); }

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- How it Works --- */
.how-it-works {
    position: relative;
    z-index: 1;
    padding: var(--section-padding);
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    flex: 1;
    max-width: 300px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.step-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

.step-connector {
    color: var(--text-muted);
    flex-shrink: 0;
    transform: scaleX(-1); /* RTL */
}

/* --- Demo Section --- */
.demo-section {
    position: relative;
    z-index: 1;
    padding: 60px 0 120px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card-large {
        grid-column: span 1;
    }
    
    .steps-grid {
        flex-direction: column;
    }
    
    .step-connector {
        transform: rotate(90deg) scaleX(-1);
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}


/* ============================================
   CHAT WIDGET STYLES
   ============================================ */

/* FAB Button */
.st-chat-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: all 0.3s ease;
    animation: fab-entrance 0.5s ease-out;
}

.st-chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px var(--primary-glow);
}

.st-chat-fab.active {
    transform: rotate(45deg) scale(1.1);
}

.st-chat-fab svg {
    transition: transform 0.3s ease;
}

.st-chat-fab-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    animation: fab-pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes fab-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes fab-entrance {
    from { transform: scale(0) rotate(-180deg); opacity: 0; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}

/* Chat Window */
.st-chat-window {
    position: fixed;
    bottom: 96px;
    left: 24px;
    width: 520px;
    height: 700px;
    max-height: calc(100vh - 120px);
    background: var(--bg-surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0,0,0,0.3);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom left;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.st-chat-window.hidden {
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.st-chat-window.visible {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Chat Header */
.st-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    flex-shrink: 0;
}

.st-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.st-chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-chat-title {
    font-size: 15px;
    font-weight: 700;
}

.st-chat-subtitle {
    font-size: 12px;
    opacity: 0.85;
}

.st-chat-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.st-chat-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Chat Messages Area */
.st-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

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

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

.st-chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

/* Messages */
.st-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.7;
    animation: msgFadeIn 0.3s ease-out;
    word-wrap: break-word;
}

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

.st-msg-bot {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-right-radius: 6px;
}

.st-msg-user {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    align-self: flex-end;
    border-bottom-left-radius: 6px;
}

.st-msg-bot p { margin-bottom: 8px; }
.st-msg-bot p:last-child { margin-bottom: 0; }
.st-msg-bot strong { color: var(--primary-light); }
.st-msg-bot code {
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.st-msg-bot ol, .st-msg-bot ul {
    padding-right: 20px;
    margin: 4px 0;
}

.st-msg-bot li {
    margin-bottom: 4px;
}

/* Typing indicator */
.st-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    border-bottom-right-radius: 6px;
    align-self: flex-start;
    animation: msgFadeIn 0.3s ease-out;
}

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

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

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-6px); opacity: 1; }
}

/* Suggestions */
.st-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 12px;
    flex-shrink: 0;
}

.st-suggestion {
    padding: 8px 14px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-light);
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}

.st-suggestion:hover {
    background: rgba(13, 148, 136, 0.2);
    border-color: var(--primary);
}

/* Chat Input */
.st-chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
    flex-shrink: 0;
}

.st-chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 4px 4px 4px 12px;
    transition: border-color 0.2s;
}

.st-chat-input-row:focus-within {
    border-color: var(--primary);
}

.st-chat-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    padding: 8px 0;
    direction: rtl;
}

.st-chat-input::placeholder {
    color: var(--text-muted);
}

.st-chat-input-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.st-upload-btn {
    background: rgba(168, 85, 247, 0.15);
    color: var(--purple);
}

.st-upload-btn:hover {
    background: rgba(168, 85, 247, 0.3);
}

.st-send-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.st-send-btn:hover {
    transform: scale(1.05);
}

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

/* Image preview */
.st-image-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.st-image-preview img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.st-image-preview-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
}

.st-image-preview-remove {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(244, 63, 94, 0.15);
    color: var(--rose);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Welcome message */
.st-welcome {
    text-align: center;
    padding: 20px;
}

.st-welcome-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
}

.st-welcome h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.st-welcome p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Sources */
.st-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.st-source-tag {
    padding: 2px 8px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 6px;
    font-size: 11px;
    color: var(--sky);
}

/* Mobile responsive */
@media (max-width: 500px) {
    .st-chat-window {
        width: calc(100vw - 16px);
        height: calc(100vh - 80px);
        bottom: 72px;
        left: 8px;
        right: 8px;
        border-radius: 16px;
    }
    
    .st-chat-fab {
        bottom: 12px;
        left: 12px;
        width: 52px;
        height: 52px;
    }
}

/* Image in message */
.st-msg-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid var(--border);
}

/* Header actions */
.st-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Expand mode */
.st-chat-expanded {
    width: calc(100vw - 48px) !important;
    height: calc(100vh - 120px) !important;
    max-width: 900px;
}

/* Message actions (copy, rate) */
.st-msg-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.06);
    opacity: 0;
    transition: opacity 0.2s;
}

.st-msg:hover .st-msg-actions {
    opacity: 1;
}

.st-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.st-action-btn:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    border-color: var(--border-hover);
}

.st-action-btn.st-action-active {
    color: var(--primary-light);
    border-color: var(--primary);
    background: rgba(13, 148, 136, 0.1);
}

.st-action-btn svg {
    flex-shrink: 0;
}

/* Streaming cursor */
.st-cursor {
    animation: cursorBlink 0.8s infinite;
    color: var(--primary-light);
    font-weight: 100;
}

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

/* Quick Section Buttons */
.st-quick-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
}

.st-quick-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: right;
    direction: rtl;
}

.st-quick-btn:hover {
    background: rgba(13, 148, 136, 0.1);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-1px);
}

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

/* Improved source tags */
.st-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.st-source-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.2);
    color: var(--primary-light);
    font-size: 10px;
    font-family: var(--font);
}

/* Markdown table in bot messages */
.st-msg-bot table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 12px;
}

.st-msg-bot th,
.st-msg-bot td {
    padding: 6px 8px;
    border: 1px solid var(--border);
    text-align: right;
}

.st-msg-bot th {
    background: rgba(255,255,255,0.04);
    font-weight: 600;
}

.st-msg-bot tr:hover {
    background: rgba(255,255,255,0.02);
}

/* Code in bot messages */
.st-msg-bot code {
    background: rgba(0,0,0,0.3);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
}
