/*
Theme Name: FinAssist Pro
Theme URI: https://finassistpro.com/
Author: FinAssist Pro Team
Author URI: https://finassistpro.com/
Description: FinAssist Pro is a comprehensive financial advice hub theme for Americans, displaying 65+ daily financial questions visibly on the homepage for maximum SEO benefit. Includes rich FAQPage/Article/Breadcrumb schema markup, a customizable homepage and menu system, DeepSeek AI chatbot integration ("Finny"), and full compatibility with RankMath SEO, Google Site Kit, all caching plugins, and translation plugins (WPML, Polylang, etc.). Every question is visible HTML content for Google indexing, with answers structured to rank for featured snippets.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: finassist-pro
Tags: financial, seo, schema, faq, ai-chatbot, translation-ready, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, theme-options, threaded-comments, rtl-language-support, block-styles, wide-blocks
*/

/* ==========================================================================
   FinAssist Pro - Main Stylesheet
   ========================================================================== */

/* CSS Variables - Brand Color Palette */
:root {
    --fa-navy: #0A2463;
    --fa-blue: #1E88E5;
    --fa-green: #00A896;
    --fa-navy-dark: #071a4a;
    --fa-green-dark: #008577;
    --fa-gray-50: #f8fafc;
    --fa-gray-100: #f1f5f9;
    --fa-gray-200: #e2e8f0;
    --fa-gray-300: #cbd5e1;
    --fa-gray-500: #64748b;
    --fa-gray-700: #334155;
    --fa-gray-900: #0f172a;
    --fa-white: #ffffff;
    --fa-radius: 14px;
    --fa-radius-sm: 8px;
    --fa-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.06);
    --fa-shadow-lg: 0 10px 30px rgba(10, 36, 99, 0.12), 0 4px 12px rgba(15, 23, 42, 0.08);
    --fa-shadow-hover: 0 14px 40px rgba(10, 36, 99, 0.18), 0 6px 16px rgba(15, 23, 42, 0.10);
    --fa-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --fa-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--fa-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--fa-gray-900);
    background: var(--fa-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fa-blue); text-decoration: none; transition: var(--fa-transition); }
a:hover { color: var(--fa-navy); }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.6em;
    font-weight: 700;
    line-height: 1.25;
    color: var(--fa-navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { margin: 0 0 1.1em; }

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

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--fa-gray-200);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-logo {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--fa-navy), var(--fa-blue));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 22px;
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.3);
}
.site-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fa-navy);
}
.site-title a { color: inherit; }
.site-description {
    margin: 0;
    font-size: 0.78rem;
    color: var(--fa-gray-500);
}

.main-navigation { display: flex; align-items: center; gap: 8px; }
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}
.main-navigation li { position: relative; }
.main-navigation a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--fa-gray-700);
    font-weight: 500;
    font-size: 0.95rem;
}
.main-navigation a:hover { background: var(--fa-gray-100); color: var(--fa-navy); }
.main-navigation .sub-menu {
    position: absolute;
    top: 100%; left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--fa-gray-200);
    border-radius: 10px;
    box-shadow: var(--fa-shadow-lg);
    padding: 8px;
    flex-direction: column;
    gap: 2px;
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: var(--fa-transition);
}
.main-navigation li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-navigation .sub-menu a { padding: 8px 12px; font-size: 0.9rem; }

.menu-toggle {
    display: none;
    background: var(--fa-navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
}

/* Header search */
.header-search { display: flex; align-items: center; }
.header-search-form {
    display: flex;
    gap: 6px;
    background: var(--fa-gray-100);
    border-radius: 999px;
    padding: 5px 5px 5px 16px;
    align-items: center;
}
.header-search-form input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    width: 180px;
    color: var(--fa-gray-900);
}
.header-search-form button {
    border: none;
    background: var(--fa-navy);
    color: #fff;
    border-radius: 999px;
    width: 32px; height: 32px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--fa-navy) 0%, #143a8c 50%, var(--fa-blue) 100%);
    color: #fff;
    padding: 72px 0 84px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(0,168,150,0.25), transparent 40%),
                      radial-gradient(circle at 80% 60%, rgba(30,136,229,0.3), transparent 45%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero h1 {
    color: #fff;
    margin-bottom: 16px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.hero p.hero-subtitle {
    font-size: 1.18rem;
    color: rgba(255,255,255,0.88);
    max-width: 640px;
    margin: 0 auto 28px;
}
.hero-search {
    max-width: 560px;
    margin: 0 auto 24px;
    display: flex;
    gap: 8px;
    background: #fff;
    border-radius: 999px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.hero-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 20px;
    font-size: 1rem;
    outline: none;
    color: var(--fa-gray-900);
}
.hero-search button {
    border: none;
    background: var(--fa-green);
    color: #fff;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--fa-transition);
}
.hero-search button:hover { background: var(--fa-green-dark); transform: translateY(-1px); }
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-top: 36px;
}
.hero-stat { text-align: center; }
.hero-stat .num {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hero-stat .label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.78);
    margin-top: 4px;
}

/* ==========================================================================
   Category Navigation Grid
   ========================================================================== */
.category-nav { padding: 48px 0 16px; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 14px;
    background: #fff;
    border: 1px solid var(--fa-gray-200);
    border-radius: var(--fa-radius);
    text-align: center;
    text-decoration: none;
    color: var(--fa-gray-900);
    transition: var(--fa-transition);
}
.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--fa-shadow-lg);
    border-color: var(--fa-blue);
    color: var(--fa-navy);
}
.category-tile .icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    background: var(--fa-gray-100);
}
.category-tile .name { font-weight: 700; font-size: 0.98rem; }
.category-tile .count { font-size: 0.8rem; color: var(--fa-gray-500); }

/* ==========================================================================
   Question Sections
   ========================================================================== */
.questions-section { padding: 40px 0; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--fa-gray-100);
}
.section-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.65rem;
}
.section-header .cat-icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: #fff;
}
.section-header .cat-link {
    font-weight: 600;
    color: var(--fa-blue);
    font-size: 0.9rem;
}

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

/* Question Card */
.question-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--fa-gray-200);
    border-radius: var(--fa-radius);
    padding: 22px;
    transition: var(--fa-transition);
    position: relative;
}
.question-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fa-shadow-hover);
    border-color: var(--fa-blue);
}
.question-card .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    align-self: flex-start;
    margin-bottom: 12px;
    background: var(--fa-gray-100);
    color: var(--fa-gray-700);
}
.question-card .question-title {
    margin: 0 0 10px;
    font-size: 1.08rem;
    line-height: 1.35;
    color: var(--fa-navy);
}
.question-card .question-title a { color: inherit; }
.question-card .question-title a:hover { color: var(--fa-blue); }
.question-card .question-excerpt {
    font-size: 0.92rem;
    color: var(--fa-gray-700);
    margin: 0 0 14px;
    flex: 1;
}
.question-card .read-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--fa-green);
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.question-card .question-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--fa-gray-500);
    padding-top: 12px;
    border-top: 1px solid var(--fa-gray-100);
}

/* ==========================================================================
   Single Question / Answer Page
   ========================================================================== */
.single-answer-wrap { padding: 48px 0; }
.breadcrumb {
    font-size: 0.85rem;
    color: var(--fa-gray-500);
    margin-bottom: 18px;
}
.breadcrumb a { color: var(--fa-gray-700); }
.breadcrumb a:hover { color: var(--fa-blue); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

.answer-article { max-width: 820px; margin: 0 auto; }
.answer-article h1.answer-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    margin-bottom: 14px;
    line-height: 1.25;
}
.answer-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--fa-gray-500);
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--fa-gray-200);
}

.quick-answer-box {
    background: linear-gradient(135deg, #eef5ff, #e8faf7);
    border-left: 4px solid var(--fa-green);
    border-radius: var(--fa-radius-sm);
    padding: 20px 24px;
    margin-bottom: 32px;
}
.quick-answer-box .qa-label {
    font-weight: 700;
    color: var(--fa-green-dark);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.quick-answer-box p { margin: 0; font-size: 1.05rem; }

.answer-toc {
    background: var(--fa-gray-50);
    border: 1px solid var(--fa-gray-200);
    border-radius: var(--fa-radius-sm);
    padding: 20px 24px;
    margin-bottom: 36px;
}
.answer-toc h3 { margin: 0 0 12px; font-size: 1rem; color: var(--fa-navy); }
.answer-toc ul { margin: 0; padding-left: 20px; }
.answer-toc li { margin-bottom: 6px; font-size: 0.95rem; }

.answer-section-block { margin-bottom: 32px; }
.answer-section-block h2 {
    font-size: 1.4rem;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fa-gray-100);
}
.answer-section-block .steps-list, .answer-section-block .tips-list {
    margin: 14px 0;
    padding-left: 22px;
}
.answer-section-block .steps-list li, .answer-section-block .tips-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}
.answer-section-block .tips-list { list-style: none; padding-left: 0; }
.answer-section-block .tips-list li {
    background: #fffaf0;
    border-left: 3px solid #f59e0b;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.answer-cta {
    background: linear-gradient(135deg, var(--fa-navy), var(--fa-blue));
    color: #fff;
    border-radius: var(--fa-radius);
    padding: 28px 32px;
    margin: 36px 0;
    text-align: center;
}
.answer-cta p { margin: 0 0 14px; color: rgba(255,255,255,0.9); font-size: 1.05rem; }
.answer-cta .chat-open-btn {
    background: var(--fa-green);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 13px 28px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--fa-transition);
}
.answer-cta .chat-open-btn:hover { background: var(--fa-green-dark); transform: translateY(-2px); }

.related-questions {
    margin-top: 40px;
    padding: 26px;
    background: var(--fa-gray-50);
    border-radius: var(--fa-radius);
    border: 1px solid var(--fa-gray-200);
}
.related-questions h3 { margin: 0 0 16px; }
.related-questions ul { margin: 0; padding-left: 20px; }
.related-questions li { margin-bottom: 8px; }

.disclaimer {
    margin-top: 32px;
    padding: 18px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--fa-radius-sm);
    font-size: 0.86rem;
    color: #92400e;
}

/* ==========================================================================
   Stats / Newsletter
   ========================================================================== */
.stats-band {
    background: var(--fa-gray-50);
    padding: 56px 0;
    border-top: 1px solid var(--fa-gray-200);
    border-bottom: 1px solid var(--fa-gray-200);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-item .num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--fa-navy);
    line-height: 1;
}
.stat-item .label {
    margin-top: 8px;
    color: var(--fa-gray-700);
    font-size: 0.95rem;
}

.newsletter {
    background: linear-gradient(135deg, var(--fa-green), var(--fa-green-dark));
    color: #fff;
    padding: 56px 0;
    text-align: center;
}
.newsletter h2 { color: #fff; margin-bottom: 12px; }
.newsletter p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 24px; }
.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 13px 22px;
    font-size: 1rem;
    outline: none;
}
.newsletter-form button {
    border: none;
    background: var(--fa-navy);
    color: #fff;
    border-radius: 999px;
    padding: 13px 26px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--fa-transition);
}
.newsletter-form button:hover { background: var(--fa-navy-dark); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--fa-navy);
    color: rgba(255,255,255,0.78);
    padding: 56px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.footer-col a:hover { color: var(--fa-green); }
.footer-about p { font-size: 0.92rem; line-height: 1.6; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .logo { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--fa-blue), var(--fa-green)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.footer-brand .name { font-weight: 800; color: #fff; font-size: 1.15rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   AI Chat Widget (Finny)
   ========================================================================== */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fa-green), var(--fa-green-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 168, 150, 0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    transition: var(--fa-transition);
}
.chat-fab:hover { transform: scale(1.08) translateY(-2px); }
.chat-fab .fab-badge {
    position: absolute; top: -2px; right: -2px;
    background: #ef4444; color: #fff;
    font-size: 0.7rem; font-weight: 700;
    min-width: 20px; height: 20px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 9999;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.chat-window.open { display: flex; animation: chatOpen 0.25s ease; }
@keyframes chatOpen { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.chat-header {
    background: linear-gradient(135deg, var(--fa-navy), var(--fa-blue));
    color: #fff;
    padding: 16px 18px;
    display: flex; align-items: center; gap: 12px;
}
.chat-header .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--fa-green);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.chat-header .info { flex: 1; }
.chat-header .info .name { font-weight: 700; font-size: 1rem; }
.chat-header .info .status { font-size: 0.78rem; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 5px; }
.chat-header .info .status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.chat-header .close-btn {
    background: rgba(255,255,255,0.15);
    border: none; color: #fff;
    width: 30px; height: 30px;
    border-radius: 8px;
    cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    background: var(--fa-gray-50);
    display: flex; flex-direction: column; gap: 12px;
}
.chat-msg { max-width: 85%; padding: 11px 15px; border-radius: 14px; font-size: 0.92rem; line-height: 1.5; }
.chat-msg.bot { background: #fff; border: 1px solid var(--fa-gray-200); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--fa-blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg.typing { color: var(--fa-gray-500); font-style: italic; }
.chat-welcome { background: #fff; border: 1px solid var(--fa-gray-200); border-radius: 14px; padding: 16px; font-size: 0.9rem; }
.chat-welcome strong { color: var(--fa-navy); }
.chat-suggestions { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.chat-suggestion {
    background: var(--fa-gray-100);
    border: none;
    text-align: left;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--fa-gray-700);
    cursor: pointer;
    transition: var(--fa-transition);
}
.chat-suggestion:hover { background: #e0f2fe; color: var(--fa-navy); }

.chat-input-wrap {
    padding: 12px;
    border-top: 1px solid var(--fa-gray-200);
    background: #fff;
    display: flex; gap: 8px;
}
.chat-input-wrap input {
    flex: 1;
    border: 1px solid var(--fa-gray-200);
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 0.92rem;
    outline: none;
    transition: var(--fa-transition);
}
.chat-input-wrap input:focus { border-color: var(--fa-blue); box-shadow: 0 0 0 3px rgba(30,136,229,0.12); }
.chat-input-wrap button {
    background: var(--fa-green);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px; height: 42px;
    cursor: pointer;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--fa-transition);
}
.chat-input-wrap button:hover { background: var(--fa-green-dark); }
.chat-input-wrap button:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-disclaimer {
    font-size: 0.72rem;
    color: var(--fa-gray-500);
    text-align: center;
    padding: 0 12px 8px;
    background: #fff;
}

/* ==========================================================================
   Search Results / Archive
   ========================================================================== */
.archive-header {
    background: var(--fa-gray-50);
    padding: 36px 0;
    border-bottom: 1px solid var(--fa-gray-200);
    text-align: center;
}
.archive-header h1 { margin-bottom: 8px; }
.archive-header p { color: var(--fa-gray-700); margin: 0; }

/* ==========================================================================
   404
   ========================================================================== */
.error-404 { padding: 80px 0; text-align: center; }
.error-404 h1 { font-size: 5rem; color: var(--fa-blue); margin-bottom: 8px; }
.error-404 .btn {
    display: inline-block;
    margin-top: 20px;
    background: var(--fa-navy);
    color: #fff;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 600;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .questions-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-search { display: none; }
    .main-navigation ul { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; box-shadow: var(--fa-shadow-lg); border-top: 1px solid var(--fa-gray-200); }
    .main-navigation ul.toggled { display: flex; }
    .menu-toggle { display: block; }
    .header-inner { flex-wrap: wrap; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .questions-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .hero { padding: 48px 0 56px; }
    .hero-stats { gap: 22px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .chat-window { right: 12px; bottom: 88px; width: calc(100vw - 24px); height: 70vh; }
    .chat-fab { right: 16px; bottom: 16px; }
}
@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 1.7rem; }
    .hero-search { flex-direction: column; border-radius: 16px; }
    .hero-search input { width: 100%; }
    .hero-search button { border-radius: 10px; padding: 12px; }
    .newsletter-form { flex-direction: column; }
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--fa-navy);
    color: #fff;
    padding: 10px 18px;
    z-index: 10000;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Full Chat Page — z.ai style (for [finny_chat] shortcode & page template)
   ========================================================================== */
.finny-chat-page-wrap {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    min-height: calc(100vh - 120px);
    padding: 0;
}

.finny-full-chat {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px 48px;
    display: flex;
    flex-direction: column;
}

/* Hero */
.finny-chat-hero {
    text-align: center;
    padding: 24px 20px 36px;
}
.finny-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #00A896, #008577);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(0, 168, 150, 0.3);
}
.finny-hero-title {
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    line-height: 1.2;
    margin: 0 0 14px;
    background: linear-gradient(135deg, #0A2463 0%, #1E88E5 70%, #00A896 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.finny-hero-subtitle {
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.55;
    max-width: 620px;
    margin: 0 auto 22px;
}
.finny-hero-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 0.85rem;
    color: #00A896;
    font-weight: 600;
}
.finny-hero-trust span { white-space: nowrap; }

/* Messages area */
.finny-chat-messages {
    flex: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 26px;
    overflow-y: auto;
    min-height: 420px;
    max-height: 56vh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

/* Welcome state */
.finny-welcome {
    text-align: center;
    padding: 28px 12px 12px;
    margin: auto 0;
}
.finny-welcome-avatar {
    width: 68px; height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A896, #1E88E5);
    display: flex; align-items: center; justify-content: center;
    font-size: 34px;
    box-shadow: 0 8px 24px rgba(0, 168, 150, 0.35);
}
.finny-welcome h2 {
    font-size: 1.45rem;
    margin: 0 0 8px;
    color: #0A2463;
}
.finny-welcome p {
    color: #64748b;
    margin: 0 auto 24px;
    max-width: 480px;
    font-size: 0.98rem;
    line-height: 1.55;
}
.finny-suggestions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}
.finny-suggestion {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 13px 15px;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    color: #334155;
    font-family: inherit;
    transition: all 0.2s ease;
    line-height: 1.4;
}
.finny-suggestion:hover {
    background: #eff6ff;
    border-color: #1E88E5;
    color: #0A2463;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.15);
}
.finny-sugg-icon { font-size: 1rem; flex-shrink: 0; }

/* Messages */
.finny-msg {
    display: flex;
    gap: 12px;
    max-width: 88%;
    animation: finnyFadeIn 0.3s ease;
}
.finny-msg.user { flex-direction: row-reverse; align-self: flex-end; }
@keyframes finnyFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.finny-msg-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 19px;
}
.finny-msg.bot .finny-msg-avatar {
    background: linear-gradient(135deg, #00A896, #1E88E5);
    box-shadow: 0 2px 8px rgba(0, 168, 150, 0.3);
}
.finny-msg.user .finny-msg-avatar {
    background: linear-gradient(135deg, #0A2463, #143a8c);
}
.finny-msg-bubble {
    padding: 13px 17px;
    border-radius: 16px;
    font-size: 0.96rem;
    line-height: 1.6;
    word-wrap: break-word;
}
.finny-msg.bot .finny-msg-bubble {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top-left-radius: 4px;
    color: #1e293b;
}
.finny-msg.user .finny-msg-bubble {
    background: linear-gradient(135deg, #0A2463, #1E88E5);
    color: #fff;
    border-top-right-radius: 4px;
}
.finny-msg-bubble strong { color: inherit; font-weight: 700; }
.finny-msg-bubble code {
    background: rgba(15, 23, 42, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: 'SF Mono', Consolas, monospace;
}
.finny-msg.user .finny-msg-bubble code { background: rgba(255,255,255,0.2); }
.finny-msg.typing .finny-msg-bubble { padding: 16px 20px; }

/* Typing dots */
.finny-typing-dots { display: inline-flex; gap: 4px; align-items: center; }
.finny-typing-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    animation: finnyBounce 1.4s infinite ease-in-out both;
}
.finny-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.finny-typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes finnyBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Input area */
.finny-chat-input {
    margin-top: 18px;
    position: sticky;
    bottom: 0;
    padding-bottom: 4px;
}
.finny-input-wrap {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.finny-input-wrap:focus-within {
    border-color: #1E88E5;
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12), 0 6px 24px rgba(15, 23, 42, 0.08);
}
.finny-input-wrap textarea {
    flex: 1;
    border: none;
    resize: none;
    padding: 10px 12px;
    font-size: 0.96rem;
    font-family: inherit;
    outline: none;
    background: transparent;
    min-height: 26px;
    max-height: 140px;
    color: #0f172a;
    line-height: 1.5;
}
.finny-input-wrap button {
    background: linear-gradient(135deg, #00A896, #008577);
    color: #fff;
    border: none;
    border-radius: 12px;
    width: 44px; height: 44px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 168, 150, 0.35);
}
.finny-input-wrap button:hover { transform: scale(1.06); box-shadow: 0 4px 14px rgba(0, 168, 150, 0.5); }
.finny-input-wrap button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.finny-input-wrap button.sending { background: #94a3b8; box-shadow: none; }

.finny-disclaimer {
    text-align: center;
    font-size: 0.76rem;
    color: #94a3b8;
    margin: 12px 0 0;
    line-height: 1.5;
}

/* Hide the floating chat FAB on the full chat page to avoid duplication */
.page-template-finny-chat-page .chat-fab,
.page-template-finny-chat-page .chat-window { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
    .finny-full-chat { padding: 24px 14px 36px; }
    .finny-chat-hero { padding: 16px 10px 26px; }
    .finny-chat-messages { padding: 18px 14px; min-height: 360px; max-height: 50vh; border-radius: 16px; }
    .finny-suggestions { grid-template-columns: 1fr; }
    .finny-msg { max-width: 94%; }
    .finny-hero-trust { gap: 6px 14px; font-size: 0.8rem; }
}

/* ==========================================================================
   FRONT PAGE — Enhanced Hero, Help Section, Power Section, Plugin Badges
   ========================================================================== */

/* ----- Hero decorations & polish ----- */
.hero { position: relative; overflow: hidden; }
.hero-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: floatBlob 18s ease-in-out infinite;
}
.hero-blob-1 { width: 340px; height: 340px; background: #00A896; top: -80px; left: -60px; }
.hero-blob-2 { width: 420px; height: 420px; background: #1E88E5; bottom: -120px; right: -80px; animation-delay: -6s; }
.hero-blob-3 { width: 260px; height: 260px; background: #6d28d9; top: 40%; right: 20%; opacity: 0.3; animation-delay: -12s; }
@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(20px, -30px) scale(1.05); }
    66%      { transform: translate(-15px, 20px) scale(0.97); }
}
.hero-inner { position: relative; z-index: 1; text-align: center; }

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero-search { position: relative; }
.hero-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}
.hero-search input { padding-left: 52px; }

.hero-trending {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 22px;
    font-size: 0.86rem;
}
.hero-trending .trending-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}
.hero-trending a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 5px 13px;
    border-radius: 999px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.hero-trending a:hover {
    background: #00A896;
    border-color: #00A896;
    transform: translateY(-1px);
}

/* ----- Reusable section intro ----- */
.section-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
}
.section-intro.compact { margin-bottom: 32px; }
.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #00A896;
    background: rgba(0, 168, 150, 0.1);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.section-eyebrow.light {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}
.section-intro h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
.section-intro p {
    color: #475569;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.6;
}

/* ----- How we help section ----- */
.help-section { padding: 72px 0 56px; background: #fff; }
.help-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.help-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 22px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.help-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.04), rgba(0, 168, 150, 0.04));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.help-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(10, 36, 99, 0.14);
    border-color: #1E88E5;
}
.help-card:hover::before { opacity: 1; }
.help-card > * { position: relative; z-index: 1; }
.help-icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(10, 36, 99, 0.12);
}
.help-card h3 {
    font-size: 1.12rem;
    margin: 0 0 8px;
    color: #0A2463;
}
.help-card p {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 14px;
    flex: 1;
}
.help-cta {
    font-size: 0.88rem;
    font-weight: 700;
    color: #00A896;
}

/* ----- Category nav (enhanced) ----- */
.category-nav { padding: 56px 0 16px; background: #f8fafc; }
.category-tile { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.category-tile .icon {
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.1);
}
.category-tile:hover .icon { transform: scale(1.1) rotate(-4deg); }

/* ----- Questions wrapper (subtle alternating bg) ----- */
.questions-wrapper { background: #fff; }
.questions-section { padding: 44px 0; }
.questions-section:nth-child(even) { background: #fafbfc; }

/* ----- Power section (theme & plugin info) ----- */
.power-section {
    padding: 80px 0;
    background: linear-gradient(160deg, #0A2463 0%, #143a8c 50%, #0d2c7a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.power-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 15% 20%, rgba(0, 168, 150, 0.18), transparent 35%),
                      radial-gradient(circle at 85% 70%, rgba(30, 136, 229, 0.22), transparent 40%);
    pointer-events: none;
}
.power-section .container { position: relative; z-index: 1; }
.power-section .section-intro h2 { color: #fff; }
.power-section .section-intro p { color: rgba(255, 255, 255, 0.8); }

.power-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 56px;
}
.power-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}
.power-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00A896;
    transform: translateY(-4px);
}
.power-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #00A896, #1E88E5);
    font-size: 26px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(0, 168, 150, 0.35);
}
.power-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 8px;
}
.power-card p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* Plugin compatibility badges */
.plugin-compat {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 28px;
}
.plugin-compat h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 6px;
}
.plugin-compat .compat-sub {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px;
    font-size: 0.95rem;
}
.plugin-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.plugin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.plugin-badge:hover {
    background: #00A896;
    border-color: #00A896;
    transform: translateY(-2px);
}
.plugin-badge .check { color: #4ade80; font-weight: 700; }

/* ----- Stats band (enhanced) ----- */
.stats-band { padding: 60px 0; }
.stat-item .num {
    background: linear-gradient(135deg, #0A2463, #1E88E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Responsive for new sections ----- */
@media (max-width: 1024px) {
    .help-grid { grid-template-columns: repeat(2, 1fr); }
    .power-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .help-grid { grid-template-columns: 1fr; }
    .power-grid { grid-template-columns: 1fr; }
    .help-section { padding: 56px 0 40px; }
    .power-section { padding: 56px 0; }
    .plugin-compat { padding: 26px 18px; }
    .hero-trending { font-size: 0.8rem; }
    .hero-trending a { padding: 4px 11px; }
}

/* ==========================================================================
   FRONT PAGE — Featured section, help-card numbers, premium polish
   ========================================================================== */

/* Help card number badge */
.help-card { position: relative; }
.help-num {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(10, 36, 99, 0.06);
    z-index: 0;
    transition: color 0.3s ease;
}
.help-card:hover .help-num { color: rgba(0, 168, 150, 0.12); }

/* ----- Featured / Trending section ----- */
.featured-section {
    padding: 64px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.featured-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--cat-color, #1E88E5);
}
.featured-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, var(--cat-color, #1E88E5) 200%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(10, 36, 99, 0.14);
    border-color: var(--cat-color, #1E88E5);
}
.featured-card:hover::after { opacity: 0.04; }
.featured-card > * { position: relative; z-index: 1; }
.featured-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.featured-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(30, 136, 229, 0.08);
    color: #0A2463;
}
.featured-rank {
    font-size: 0.8rem;
    font-weight: 800;
    color: #00A896;
    background: rgba(0, 168, 150, 0.1);
    padding: 3px 9px;
    border-radius: 999px;
}
.featured-title {
    font-size: 1.06rem;
    line-height: 1.35;
    margin: 0 0 10px;
    color: #0A2463;
    font-weight: 700;
}
.featured-card:hover .featured-title { color: var(--cat-color, #1E88E5); }
.featured-excerpt {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
}
.featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: #94a3b8;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.featured-readmore {
    margin-left: auto;
    font-weight: 700;
    color: #00A896;
}

/* ==========================================================================
   CHAT PAGE — Sidebar layout
   ========================================================================== */
.finny-chat-page-wrap {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    padding: 32px 0 56px;
}
.finny-chat-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}
.finny-chat-main { min-width: 0; }
.finny-chat-main .finny-full-chat { padding: 0; max-width: none; }

/* Sidebar */
.finny-chat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 84px;
}
.sidebar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.sidebar-title {
    font-size: 0.95rem;
    margin: 0 0 14px;
    color: #0A2463;
    font-weight: 700;
}
.sidebar-popular {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}
.sidebar-popular li { margin-bottom: 4px; }
.sidebar-popular li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.4;
    transition: all 0.2s ease;
}
.sidebar-popular li a:hover {
    background: #eff6ff;
    color: #0A2463;
}
.pop-rank {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: linear-gradient(135deg, #0A2463, #1E88E5);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pop-title { flex: 1; }

/* Categories in sidebar */
.sidebar-cats { display: flex; flex-direction: column; gap: 4px; }
.sidebar-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.sidebar-cat:hover {
    background: #f1f5f9;
    color: #0A2463;
    transform: translateX(3px);
}
.sc-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.sc-name { flex: 1; }
.sc-count {
    font-size: 0.74rem;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #0A2463, #1E88E5);
    color: #fff;
    border: none;
    text-align: center;
}
.sidebar-cta-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}
.sidebar-cta h3 { color: #fff; margin: 0 0 6px; font-size: 0.98rem; }
.sidebar-cta p { color: rgba(255, 255, 255, 0.85); margin: 0; font-size: 0.84rem; line-height: 1.5; }

/* Responsive chat layout */
@media (max-width: 1024px) {
    .finny-chat-layout { grid-template-columns: 1fr; }
    .finny-chat-sidebar { position: static; flex-direction: column; }
}
@media (max-width: 768px) {
    .featured-grid { grid-template-columns: 1fr; }
    .featured-section { padding: 48px 0; }
    .finny-chat-page-wrap { padding: 20px 0 40px; }
}
