/* assets/css/style.css — Quedele Search CSS (Light & Dark Themes Restored) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0c0c0e;
    --bg-panel: #14141c;
    --bg-box: #1a1a24;
    --border: #262636;
    --text-main: #f1f5f9;
    --text-sub: #94a3b8;
    --brand: #6366f1;
    --brand-hover: #4f46e5;
    --link-color: #8ab4f8;
    --link-hover: #a5c7ff;
    --primary: #f59e0b;
    --accent-color: #6366f1;
    --color-vitrine: #ec4899;
    --color-petag: #f59e0b;
    --color-orvix: #10b981;
    --color-maps: #8b5cf6;
    --color-pas: #3b82f6;
    --color-vetatires: #10b981;
    --shadow: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
    --font: 'Inter', -apple-system, sans-serif;
}

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-panel: #ffffff;
    --bg-box: #f1f5f9;
    --border: #e2e8f0;
    --text-main: #0f172a;
    --text-sub: #475569;
    --brand: #2563eb;
    --brand-hover: #1d4ed8;
    --link-color: #1a0dab;
    --link-hover: #150991;
    --shadow: 0 4px 14px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }
body {
    margin: 0; padding: 0;
    background: var(--bg-main); color: var(--text-main);
    font-family: var(--font); min-height: 100vh;
    display: flex; flex-direction: column;
}

/* HEADER */
.main-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 24px; background: var(--bg-panel); border-bottom: 1px solid var(--border);
}
.header-left, .header-right { display: flex; align-items: center; gap: 14px; }

.brand-logo-small {
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 22px;
    color: var(--text-main); text-decoration: none !important; letter-spacing: -0.5px;
}
.brand-q { color: var(--brand); font-weight: 900; -webkit-text-stroke: 1px var(--brand); }

/* SEARCH BAR & INPUT */
.search-wrapper { flex: 1; max-width: 680px; }
.search-box {
    display: flex; align-items: center; background: var(--bg-box);
    border: 1px solid var(--border); border-radius: 24px; padding: 6px 16px;
    transition: all 0.2s ease;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
.search-input {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--text-main); font-size: 15px; padding: 6px 10px;
}
.box-icon { color: var(--text-sub); font-size: 18px; }
.box-actions { display: flex; align-items: center; gap: 2px; }
.btn-icon {
    background: transparent; border: none; color: var(--text-sub);
    font-size: 18px; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s;
}
.btn-icon:hover { background: rgba(128,128,128,0.15); color: var(--text-main); }

/* Codex trigger button - icon only with subtle tooltip label */
.codex-trigger-btn {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--text-sub);
    transition: all 0.2s ease;
}
.codex-trigger-btn:hover {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.25);
    color: var(--brand);
}
.codex-trigger-btn::after {
    content: 'Codex';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 600;
    color: var(--text-sub);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
    pointer-events: none;
}
.codex-trigger-btn:hover::after { opacity: 0.7; }

/* Divider between voice and codex buttons */
.box-actions .voice-search-btn { margin-right: 2px; }
.box-actions .codex-trigger-btn { margin-left: 0; }

/* AI Overview code blocks - premium style */
#ai-overview-content pre {
    position: relative;
    background: #1a1b26 !important;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    margin: 14px 0;
}
#ai-overview-content pre::before {
    content: '';
    display: block;
    height: 36px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
#ai-overview-content pre code {
    display: block;
    padding: 14px 18px 18px !important;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.65;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    background: transparent !important;
}
#ai-overview-content pre code::-webkit-scrollbar { height: 5px; }
#ai-overview-content pre code::-webkit-scrollbar-track { background: transparent; }
#ai-overview-content pre code::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.copy-code-btn {
    position: absolute;
    top: 6px;
    right: 10px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.3);
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    font-family: inherit;
    letter-spacing: 0.3px;
}
.copy-code-btn:hover { background: rgba(99,102,241,0.3); color: #c7d2fe; }
.copy-code-btn.copied { background: rgba(52,211,153,0.2); border-color: rgba(52,211,153,0.4); color: #6ee7b7; }

/* AI overview general content */
#ai-overview-content p { line-height: 1.7; color: var(--text-main); font-size: 14.5px; }
#ai-overview-content h1, #ai-overview-content h2, #ai-overview-content h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    margin: 20px 0 10px;
    font-weight: 700;
}
#ai-overview-content h1 { font-size: 20px; }
#ai-overview-content h2 { font-size: 17px; }
#ai-overview-content h3 { font-size: 15px; }
#ai-overview-content code:not(pre code) {
    background: rgba(128,128,128,0.12);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    color: var(--brand);
}


/* RESULTS LAYOUT */
.results-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 20px 24px 60px; flex: 1; }
.results-stats { font-size: 13.5px; color: var(--text-sub); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.results-main { display: flex; gap: 40px; }
.results-col-left { flex: 1; max-width: 720px; }
.results-col-right { width: 380px; flex-shrink: 0; }

/* SECTIONS & HEADERS */
.results-section-header {
    display: flex; align-items: center; gap: 10px;
    margin: 24px 0 14px 0; font-family: 'Outfit', sans-serif;
    font-size: 16px; font-weight: 700; color: var(--text-main);
}
.results-section-icon { font-size: 18px; color: var(--brand); }
.results-section-subtitle { font-size: 12px; color: var(--text-sub); font-weight: 400; margin-left: 6px; }

.results-location-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 16px; background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3); color: var(--brand);
    font-size: 12px; font-weight: 600; margin-left: 12px;
}

/* PAS SOFT RESULT CARDS (SOMENTE PARA RESULTADOS DO ECOSSISTEMA PAS) */
.highlight-card {
    background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: 18px; padding: 20px; margin-bottom: 20px;
    box-shadow: var(--shadow); transition: all 0.2s ease;
}
.highlight-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.highlight-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.system-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 16px; font-size: 11.5px;
    font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-vitrine { color: #ec4899; background: rgba(236, 72, 153, 0.15); border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-petag { color: #f59e0b; background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-orvix { color: #10b981; background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-maps { color: #8b5cf6; background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-vetatires { color: #10b981; background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-pas { color: #3b82f6; background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); }
.views-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #ef4444; font-weight: 600; }

.highlight-card-body { display: flex; gap: 18px; align-items: flex-start; }
.highlight-avatar { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.highlight-avatar img { width: 100%; height: 100%; object-fit: cover; }

.highlight-details { flex: 1; }
.highlight-title { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.highlight-meta-info { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-sub); margin-bottom: 16px; }
.highlight-meta-row { display: flex; align-items: center; gap: 8px; }
.highlight-meta-row i { color: var(--brand); font-size: 15px; }

.highlight-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn-action-primary, .btn-action-outline {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px;
    border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none !important;
    transition: all 0.2s ease; cursor: pointer; border: 1px solid transparent;
}
.btn-action-primary { background: var(--brand); color: #ffffff !important; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.btn-action-primary:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn-whatsapp { background: #10b981 !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.btn-whatsapp:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn-action-outline { background: var(--bg-box); border-color: var(--border); color: var(--text-main) !important; }
.btn-action-outline:hover { background: var(--border); border-color: var(--brand); color: var(--brand) !important; }

/* WEB RESULT ITEMS (DESAQUE AZUL LATERAL NOS RESULTADOS LOCAIS) */
.web-result-item { margin-bottom: 28px; transition: border-color 0.2s; }
.web-result-item.web-result-local {
    border-left: 3px solid #3b82f6;
    padding-left: 14px;
    margin-left: -14px;
}
.result-url-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-main); margin-bottom: 4px; }
.result-favicon { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.engine-icon { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.engine-indicator { display: inline-flex; margin-left: 6px; align-items: center; justify-content: center; width: 22px; height: 22px; background: #fff; border-radius: 50%; padding: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.result-site-name { font-weight: 600; color: var(--text-main); }
.result-site-url { color: var(--text-sub); display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 480px; }
.result-site-url::before { content: "·"; margin-right: 4px; }
.result-title { font-size: 19px; font-weight: 500; color: var(--link-color); margin-bottom: 4px; display: inline-block; }
.result-title a { color: var(--link-color); text-decoration: none; }
.result-title a:hover { color: var(--link-hover); text-decoration: underline; }
.result-snippet { font-size: 14px; color: var(--text-sub); line-height: 1.58; }

/* KNOWLEDGE PANEL CARD (RIGHT SIDEBAR — ADAPTÁVEL LIGHT E DARK) */
.knowledge-panel-card {
    background: var(--bg-panel); border: 1px solid var(--border); border-radius: 20px;
    overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 24px;
}
.kp-map-box { width: 100%; height: 200px; border-bottom: 1px solid var(--border); overflow: hidden; }
.kp-map-box iframe { width: 100%; height: 100%; border: none; }

.kp-body { padding: 20px; }
.kp-subtitle { font-size: 11px; font-weight: 700; color: var(--text-sub); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.kp-title { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 700; color: var(--text-main); margin-bottom: 12px; }
.kp-info-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-sub); margin-bottom: 10px; line-height: 1.4; }
.kp-info-item i { font-size: 16px; color: var(--brand); margin-top: 2px; }

.kp-cta-btn {
    display: flex !important; align-items: center !important; justify-content: center !important;
    gap: 8px !important; width: 100% !important; padding: 12px 24px !important;
    border-radius: 24px !important; font-size: 13.5px !important; font-weight: 700 !important;
    color: #ffffff !important; text-decoration: none !important; margin-top: 18px !important;
    box-shadow: var(--shadow) !important; transition: all 0.2s ease !important; border: none !important;
}
.kp-cta-btn:hover { transform: translateY(-1px) !important; filter: brightness(1.1) !important; }

/* GOOGLE-STYLE PROFILE POPUP CARD & 9-DOTS APP LAUNCHER */
.avatar-circle {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #8b5cf6);
    color: #ffffff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; cursor: pointer; transition: all 0.2s ease;
}
.avatar-circle:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }

.profile-popup {
    position: absolute; top: 60px; right: 20px; width: 350px;
    background: var(--bg-panel); border: 1px solid var(--border); border-radius: 28px;
    padding: 20px; box-shadow: var(--shadow-lg); z-index: 1000; display: none;
}
.profile-popup.active { display: block !important; }
.profile-popup-header { position: relative; display: flex; justify-content: center; align-items: center; font-size: 13.5px; font-weight: 500; color: var(--text-sub); margin-bottom: 16px; padding: 0 28px; text-align: center; word-break: break-all; }
.profile-popup-header .close-btn { position: absolute; top: -6px; right: -4px; background: transparent; border: none; color: var(--text-sub); font-size: 20px; cursor: pointer; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.profile-popup-header .close-btn:hover { background: rgba(128,128,128,0.15); color: var(--text-main); }
.profile-popup-body { display: flex; flex-direction: column; align-items: center; text-align: center; }
.profile-avatar-large { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #8b5cf6); color: #ffffff; font-size: 32px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35); }
.profile-greeting { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700; color: var(--text-main); margin-bottom: 16px; }
.btn-manage-account { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-box); color: var(--text-main); font-size: 13.5px; font-weight: 600; text-decoration: none !important; transition: all 0.2s ease; margin-bottom: 20px; width: 100%; }
.btn-manage-account:hover { background: var(--border); border-color: var(--brand); color: var(--brand); }
.profile-cards-group { width: 100%; background: var(--bg-box); border-radius: 20px; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--border); }
.profile-action-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: var(--text-main); text-decoration: none !important; font-size: 14px; font-weight: 500; transition: background 0.2s ease; cursor: pointer; border-bottom: 1px solid var(--border); }
.profile-action-item:last-child { border-bottom: none; }
.profile-action-item i { font-size: 18px; color: var(--brand); }
.profile-action-item:hover { background: rgba(128,128,128,0.1); }
.profile-action-left { display: flex; align-items: center; gap: 12px; }
.profile-action-right { font-size: 12px; color: var(--text-sub); }

.apps-popup { position: absolute; top: 60px; right: 70px; width: 320px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 24px; padding: 20px; box-shadow: var(--shadow-lg); z-index: 1000; display: none; }
.apps-popup.active { display: block !important; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; border-radius: 16px; text-decoration: none !important; color: var(--text-main); transition: all 0.2s ease; border: 1px solid transparent; }
.app-tile:hover { background: var(--bg-box); border-color: var(--border); transform: translateY(-2px); }
.app-tile-icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #ffffff; }
.app-tile-name { font-size: 12px; font-weight: 500; text-align: center; }

/* FOOTER */
.google-style-footer { margin-top: auto; background: var(--bg-panel); border-top: 1px solid var(--border); font-size: 14px; color: var(--text-sub); width: 100%; }
.footer-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 30px; }
.footer-row-country { border-bottom: 1px solid var(--border); font-weight: 500; color: var(--text-sub); }
.footer-country-label { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.footer-country-label i { color: var(--brand); }
.footer-lang-selector { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lang-link { color: var(--text-sub); text-decoration: none !important; font-weight: 600; padding: 3px 8px; border-radius: 4px; transition: all 0.2s ease; }
.lang-link.active, .lang-link:hover { color: var(--brand); background: rgba(129, 140, 248, 0.15); }
.lang-sep { color: var(--border); }
.footer-row-links { flex-wrap: wrap; gap: 20px; }
.footer-links-left, .footer-links-right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-link { color: var(--text-sub); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-link:hover { color: var(--text-main); text-decoration: underline; }

/* HOME PAGE SPECIFIC STYLES */
.home-main {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    flex: 1; padding: 10vh 20px 40px; text-align: center;
}
.brand-logo-large {
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 72px;
    color: var(--text-main); letter-spacing: -1.5px; margin-bottom: 30px;
}
.home-search-wrapper {
    width: 100%; max-width: 640px; margin: 0 auto;
}
.search-box-large {
    padding: 12px 24px; border-radius: 32px;
}
.search-box-large .search-input {
    font-size: 16px;
}
.search-box-large .box-icon {
    font-size: 20px;
}
.home-buttons {
    display: flex; gap: 12px; justify-content: center; margin-top: 24px;
}
.btn-pill {
    padding: 10px 24px; background: var(--bg-box); border: 1px solid var(--border);
    border-radius: 20px; color: var(--text-main); font-size: 14px; cursor: pointer;
    transition: all 0.2s;
}
.btn-pill:hover {
    border-color: var(--brand); box-shadow: 0 0 8px rgba(99,102,241,0.2);
}

/* RESPONSIVE HELPERS */
.desktop-only { display: block; }
.mobile-only { display: none; }
@media (max-width: 900px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    .results-col-right { display: none; }
    .results-main { flex-direction: column; }
}

/* AUTOCOMPLETE & SEARCH TOPBAR FIXES */
.autocomplete-panel {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
}
.search-form-top {
    position: relative;
    width: 100%;
}

/* AI OVERVIEW PANEL */
.ai-overview-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.ai-overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(99,102,241,0.06) 0%, transparent 80%);
}
.ai-overview-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    letter-spacing: 0.2px;
}
.ai-icon {
    font-size: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ai-overview-close {
    background: transparent;
    border: none;
    color: var(--text-sub);
    font-size: 18px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    line-height: 1;
}
.ai-overview-close:hover { background: rgba(128,128,128,0.15); color: var(--text-main); }
.ai-overview-content {
    padding: 16px 20px 20px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-main);
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.ai-overview-content::-webkit-scrollbar { width: 4px; }
.ai-overview-content::-webkit-scrollbar-track { background: transparent; }
.ai-overview-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Premium AI Loading & Skeleton Styles */
.typing-indicator {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}
.ai-loading-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-sub);
    font-weight: 500;
}
.ai-loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: ai-spin 0.8s linear infinite;
}
.ai-skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.ai-skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, var(--border) 25%, rgba(128, 128, 128, 0.15) 37%, var(--border) 63%);
    background-size: 400% 100%;
    border-radius: 4px;
    animation: ai-shimmer 1.4s ease infinite;
}
.ai-skeleton-line.short { width: 40%; }
.ai-skeleton-line.medium { width: 75%; }
.ai-skeleton-line.long { width: 95%; }

@keyframes ai-spin {
    to { transform: rotate(360deg); }
}
@keyframes ai-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.ai-icon-pulse {
    animation: ai-pulse 2s infinite ease-in-out;
}
@keyframes ai-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(139, 92, 246, 0.4)); }
    50% { transform: scale(1.12); filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.8)); }
}