/* ==========================================================================
   XeeChats — Premium SaaS theme (black / white / gray, glassmorphism)
   ========================================================================== */

:root {
    --xc-bg: #0a0a0b;
    --xc-bg-elevated: #131316;
    --xc-bg-card: #17171b;
    --xc-border: rgba(255, 255, 255, 0.08);
    --xc-border-strong: rgba(255, 255, 255, 0.14);
    --xc-text: #f4f4f5;
    --xc-text-secondary: #9a9aa2;
    --xc-text-muted: #6b6b73;
    --xc-accent: #ffffff;
    --xc-user-bubble: #1f1f24;
    --xc-radius-lg: 20px;
    --xc-radius-md: 14px;
    --xc-radius-sm: 10px;
    --xc-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    background: radial-gradient(ellipse at top, #141416 0%, #0a0a0b 55%, #050506 100%);
    color: var(--xc-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

.glass {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--xc-border);
}

/* -------------------------------------------------------------------------
   Auth pages
   ------------------------------------------------------------------------- */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-shell { width: 100%; max-width: 420px; }

.auth-card {
    border-radius: var(--xc-radius-lg);
    padding: 40px 36px;
    box-shadow: var(--xc-shadow);
    animation: fadeUp 0.5s ease;
}

.auth-brand, .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.brand-mark {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ffffff, #9a9aa2);
    color: #0a0a0b;
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0;
}
/* An admin-uploaded logo replaces the default star icon inside the same
   square mark — cover-fit so any aspect ratio still looks like a clean tile. */
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }

.auth-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.auth-subtitle { color: var(--xc-text-secondary); font-size: 14px; margin-bottom: 24px; }
.auth-footer { text-align: center; color: var(--xc-text-secondary); font-size: 14px; margin-top: 20px; margin-bottom: 0; }
.auth-footer a { color: #fff; font-weight: 600; }

.form-control, .form-select {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid var(--xc-border) !important;
    color: var(--xc-text) !important;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08) !important;
    border-color: var(--xc-border-strong) !important;
}
.form-control::placeholder { color: var(--xc-text-muted); }

.btn-light { background: #fff; color: #0a0a0b; border: none; }
.btn-light:hover { background: #e4e4e7; color: #0a0a0b; }

/* -------------------------------------------------------------------------
   App shell
   ------------------------------------------------------------------------- */
.app-body { overflow: hidden; height: 100vh; }

/* Every non-chat "app shell"-style page (Anisha admin pages, user Settings,
   Support) — unlike .app-body (chat.php only, which manages its own fixed
   internal scroll regions), this must NOT hide overflow: their content is
   normal page-flow and needs to scroll with the page once it's taller than
   the viewport. */
.page-body { min-height: 100%; }

.app-shell {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--xc-bg-elevated);
    border-right: 1px solid var(--xc-border);
    height: 100vh;
    transition: transform 0.25s ease;
    z-index: 40;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 6px;
}

.new-chat-btn {
    margin: 12px 14px;
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--xc-border-strong);
    color: var(--xc-text);
    border-radius: var(--xc-radius-sm);
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s ease, transform 0.1s ease;
}
.new-chat-btn:hover { background: rgba(255,255,255,0.1); }
.new-chat-btn:active { transform: scale(0.98); }

.conversation-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 10px 10px;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--xc-radius-sm);
    color: var(--xc-text-secondary);
    font-size: 13.5px;
    margin-bottom: 2px;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.conversation-item:hover { background: rgba(255,255,255,0.05); color: var(--xc-text); }
.conversation-item.active { background: rgba(255,255,255,0.09); color: var(--xc-text); }
.conversation-item i.bi-chat-left-text, .conversation-item i.bi-pin-angle-fill { font-size: 13px; flex-shrink: 0; }

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

.conv-actions {
    display: none;
    gap: 2px;
    background: inherit;
}
.conversation-item:hover .conv-actions { display: flex; }
.conv-action-btn {
    border: none; background: transparent; color: var(--xc-text-secondary);
    padding: 3px 5px; border-radius: 6px; font-size: 12px;
}
.conv-action-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

.sidebar-bottom {
    border-top: 1px solid var(--xc-border);
    padding: 10px;
}

.sidebar-user-link, .sidebar-logout {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: var(--xc-radius-sm);
    color: var(--xc-text); font-size: 13.5px;
}
.sidebar-user-link:hover, .sidebar-logout:hover { background: rgba(255,255,255,0.06); }
.sidebar-logout { color: var(--xc-text-secondary); }

.avatar {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #0a0a0b; flex-shrink: 0;
}

.sidebar-backdrop { display: none; }

/* -------------------------------------------------------------------------
   Chat main
   ------------------------------------------------------------------------- */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--xc-border);
    flex-shrink: 0;
}

.model-select {
    max-width: 320px;
    font-size: 13.5px;
    font-weight: 600;
}

.btn-icon {
    background: transparent; border: none; color: var(--xc-text);
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: rgba(255,255,255,0.08); }

.chat-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0 8px;
}

.empty-state {
    height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    animation: fadeUp 0.4s ease;
}
.empty-icon { font-size: 42px; margin-bottom: 12px; opacity: 0.85; }
.empty-state h2 { font-weight: 700; letter-spacing: -0.02em; }

.message-list {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

.message-row {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    animation: fadeUp 0.3s ease;
}

.message-avatar {
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--xc-border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 14px;
}
.from-user .message-avatar { background: var(--xc-user-bubble); }

.message-bubble { flex: 1; padding-top: 4px; min-width: 0; }
.message-content { white-space: pre-wrap; word-wrap: break-word; line-height: 1.65; font-size: 15px; }

/* Rendered Markdown inside assistant replies (headings, bold, lists, code,
   quotes, links) — populated client-side by renderMarkdown() in app.js.
   Once JS hydrates the content, it's no longer literal whitespace-formatted
   text, so switch off the plain-text pre-wrap behavior above for the
   elements it produces. */
.message-content p { margin: 0 0 12px; }
.message-content p:last-child { margin-bottom: 0; }
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin: 20px 0 10px;
}
.message-content h1:first-child,
.message-content h2:first-child,
.message-content h3:first-child,
.message-content h4:first-child,
.message-content h5:first-child,
.message-content h6:first-child { margin-top: 0; }
.message-content h1 { font-size: 22px; }
.message-content h2 { font-size: 19px; }
.message-content h3 { font-size: 17px; }
.message-content h4, .message-content h5, .message-content h6 { font-size: 15px; }
.message-content strong { font-weight: 700; color: var(--xc-text); }
.message-content em { font-style: italic; }
.message-content a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.message-content ul, .message-content ol {
    margin: 0 0 12px;
    padding-left: 22px;
}
.message-content li { margin-bottom: 6px; line-height: 1.6; }
.message-content li:last-child { margin-bottom: 0; }
.message-content blockquote {
    margin: 0 0 12px;
    padding: 4px 14px;
    border-left: 3px solid var(--xc-border-strong);
    color: var(--xc-text-secondary);
}
.message-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 5px;
}
.message-content pre {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--xc-border);
    border-radius: var(--xc-radius-sm);
    padding: 14px;
    overflow-x: auto;
    margin: 0 0 12px;
}
.message-content pre code { background: none; padding: 0; }
.message-content hr { border: none; border-top: 1px solid var(--xc-border); margin: 18px 0; }

.typing-indicator { display: flex; gap: 4px; padding: 6px 0; }
.typing-indicator span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--xc-text-secondary);
    animation: blink 1.2s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* -------------------------------------------------------------------------
   Composer
   ------------------------------------------------------------------------- */
.composer-wrap {
    padding: 10px 20px 18px;
    flex-shrink: 0;
}

.composer {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    border-radius: var(--xc-radius-lg);
    padding: 10px 10px 10px 18px;
    box-shadow: var(--xc-shadow);
}

.composer-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--xc-text);
    resize: none;
    max-height: 200px;
    font-size: 15px;
    line-height: 1.5;
    padding: 8px 0;
    font-family: inherit;
}
.composer-input::placeholder { color: var(--xc-text-muted); }

.composer-send {
    width: 36px; height: 36px; border-radius: 50%;
    background: #fff; color: #0a0a0b; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
    transition: transform 0.1s ease, opacity 0.15s ease;
}
.composer-send:disabled { opacity: 0.3; }
.composer-send:not(:disabled):hover { transform: scale(1.06); }

.composer-hint {
    text-align: center;
    font-size: 11.5px;
    color: var(--xc-text-muted);
    margin: 10px 0 0;
}

/* Composer: attach-image button + pending-attachment previews */
.composer-attach-btn { flex-shrink: 0; width: 34px; height: 34px; }

.composer-attachments {
    max-width: 820px;
    margin: 0 auto;
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 4px 8px;
}
.composer-attachments.has-items { display: flex; }

.composer-attachment-warning {
    width: 100%;
    font-size: 12px;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 2px 0;
}

.inline-notice {
    max-width: 820px;
    margin: 4px auto 14px;
    padding: 10px 14px;
    border-radius: var(--xc-radius-sm);
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: #fbbf24;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.composer-attachment-item {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--xc-border-strong);
    flex-shrink: 0;
}
.composer-attachment-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.composer-attachment-remove {
    position: absolute;
    top: 2px; right: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    line-height: 1;
}
.composer-attachment-remove:hover { background: rgba(0,0,0,0.9); }

/* Image attachments rendered inside a sent/received message bubble */
.message-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.message-attachment-thumb {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: var(--xc-radius-sm);
    overflow: hidden;
    border: 1px solid var(--xc-border);
}
.message-attachment-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Per-message action toolbar: copy / good / bad / regenerate / fork */
.message-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.message-row:hover .message-actions,
.message-row:focus-within .message-actions { opacity: 1; }
.msg-action-btn {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border: none;
    background: transparent;
    color: var(--xc-text-secondary);
    border-radius: 7px;
    font-size: 13.5px;
}
.msg-action-btn:hover { background: rgba(255,255,255,0.08); color: var(--xc-text); }
.msg-action-btn:disabled { opacity: 0.4; }
.msg-action-btn.active[data-action="rate-up"] { color: #34d399; }
.msg-action-btn.active[data-action="rate-down"] { color: #f87171; }

/* -------------------------------------------------------------------------
   Settings
   ------------------------------------------------------------------------- */
.settings-shell {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 48px 20px;
}
.settings-card {
    width: 100%;
    max-width: 680px;
    border-radius: var(--xc-radius-lg);
    padding: 32px;
    height: fit-content;
    box-shadow: var(--xc-shadow);
}
.settings-section h2 { letter-spacing: 0.06em; }
hr { border-color: var(--xc-border); opacity: 1; }

/* -------------------------------------------------------------------------
   Skeleton loaders
   ------------------------------------------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 37%, rgba(255,255,255,0.04) 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: 8px;
}
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        transform: translateX(-100%);
        box-shadow: var(--xc-shadow);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-backdrop.show {
        display: block;
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 35;
    }
}

/* ==========================================================================
   Landing page (public homepage) — index.php
   ========================================================================== */

.lp-body { overflow-x: hidden; }

.lp-announcement {
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 16px;
    background: rgba(255,255,255,0.08);
    color: var(--xc-text);
    border-bottom: 1px solid var(--xc-border);
}
.lp-announcement-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.lp-announcement-success { background: rgba(16, 163, 127, 0.15); color: #34d399; }

.lp-navbar {
    background: rgba(10,10,11,0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--xc-border);
    padding: 14px 0;
}
.lp-navbar .nav-link { color: var(--xc-text-secondary); font-weight: 500; font-size: 14.5px; }
.lp-navbar .nav-link:hover { color: #fff; }

.lp-hero {
    padding: 120px 0 90px;
    background:
        radial-gradient(ellipse 800px 400px at 50% -10%, rgba(255,255,255,0.10), transparent 60%),
        radial-gradient(ellipse at top, #141416 0%, #0a0a0b 60%);
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--xc-text-secondary);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--xc-border-strong);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.lp-hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 22px;
}

.lp-hero-subtitle {
    max-width: 620px;
    margin: 0 auto;
    color: var(--xc-text-secondary);
    font-size: 17px;
    line-height: 1.6;
}

.lp-section { padding: 90px 0; }

/* Rendered Markdown for admin-authored custom pages (Page Builder) */
.custom-page-content { line-height: 1.75; font-size: 16px; }
.custom-page-content p { margin: 0 0 18px; color: var(--xc-text-secondary); }
.custom-page-content h1, .custom-page-content h2, .custom-page-content h3,
.custom-page-content h4, .custom-page-content h5, .custom-page-content h6 {
    font-weight: 700; letter-spacing: -0.01em; margin: 30px 0 14px; color: var(--xc-text);
}
.custom-page-content h1:first-child, .custom-page-content h2:first-child, .custom-page-content h3:first-child { margin-top: 0; }
.custom-page-content strong { color: var(--xc-text); font-weight: 700; }
.custom-page-content a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.custom-page-content ul, .custom-page-content ol { margin: 0 0 18px; padding-left: 24px; color: var(--xc-text-secondary); }
.custom-page-content li { margin-bottom: 8px; }
.custom-page-content blockquote {
    margin: 0 0 18px; padding: 6px 18px; border-left: 3px solid var(--xc-border-strong); color: var(--xc-text-secondary);
}
.custom-page-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 14px; background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 5px;
}
.custom-page-content pre {
    background: rgba(255,255,255,0.05); border: 1px solid var(--xc-border);
    border-radius: var(--xc-radius-sm); padding: 16px; overflow-x: auto; margin: 0 0 18px;
}
.custom-page-content pre code { background: none; padding: 0; }
.custom-page-content hr { border: none; border-top: 1px solid var(--xc-border); margin: 24px 0; }
.lp-section-alt { background: rgba(255,255,255,0.015); border-top: 1px solid var(--xc-border); border-bottom: 1px solid var(--xc-border); }

.lp-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.lp-section-head h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0; }

.lp-feature-card {
    border-radius: var(--xc-radius-lg);
    padding: 28px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.lp-feature-card:hover { transform: translateY(-4px); border-color: var(--xc-border-strong); }
.lp-feature-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 16px;
}
.lp-feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.lp-feature-card p { color: var(--xc-text-secondary); font-size: 14.5px; line-height: 1.6; margin: 0; }

.lp-model-chip {
    padding: 14px 16px;
    border-radius: var(--xc-radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    display: flex; align-items: center; gap: 8px;
    text-align: center;
    justify-content: center;
}

.lp-plan-card {
    border-radius: var(--xc-radius-lg);
    padding: 32px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.lp-plan-featured { border-color: rgba(255,255,255,0.35); }
.lp-plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: #fff; color: #0a0a0b; font-size: 11.5px; font-weight: 700;
    padding: 4px 14px; border-radius: 999px;
}
.lp-plan-card h3 { font-weight: 700; margin-bottom: 6px; }
.lp-plan-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.lp-plan-price span { font-size: 14px; font-weight: 500; color: var(--xc-text-secondary); }
.lp-plan-features { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.lp-plan-features li { font-size: 14px; color: var(--xc-text-secondary); padding: 6px 0; display: flex; gap: 8px; align-items: center; }
.lp-plan-features i { color: #34d399; }

.lp-quote-card { border-radius: var(--xc-radius-lg); padding: 28px; }
.lp-quote-card p { font-size: 15px; line-height: 1.65; font-style: italic; }
.lp-quote-author { color: var(--xc-text-secondary); font-size: 13.5px; margin-top: 14px; font-weight: 600; }

.lp-faq-item { background: transparent; border: 1px solid var(--xc-border); border-radius: var(--xc-radius-sm) !important; margin-bottom: 10px; overflow: hidden; }
.lp-faq-item .accordion-button {
    background: transparent; color: var(--xc-text); font-weight: 600; font-size: 15px;
    box-shadow: none !important;
}
.lp-faq-item .accordion-button:not(.collapsed) { background: rgba(255,255,255,0.04); }
.lp-faq-item .accordion-button::after { filter: invert(1); }
.lp-faq-item .accordion-body { background: transparent; font-size: 14.5px; line-height: 1.6; }

.lp-footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--xc-border);
    background: rgba(255,255,255,0.015);
}
.lp-footer a { color: var(--xc-text-secondary); }
.lp-footer a:hover { color: #fff; }
.lp-footer ul li { padding: 4px 0; }

/* ==========================================================================
   Chat banners (announcements, verify-email) + sidebar credits
   ========================================================================== */

.chat-banner {
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--xc-border);
}
.chat-banner-info { background: rgba(255,255,255,0.05); }
.chat-banner-warning { background: rgba(245,158,11,0.15); color: #fbbf24; }
.chat-banner-success { background: rgba(16,163,127,0.15); color: #34d399; }

.sidebar-credits {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--xc-text-secondary);
    padding: 8px 10px 10px;
}
.sidebar-credits i { color: #fbbf24; }
.sidebar-credits a { color: var(--xc-text); }

.chat-banner-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.35);
    color: inherit;
    font-weight: 600;
}
.chat-banner-btn:hover { background: rgba(255,255,255,0.22); color: inherit; }

.lp-navbar .nav-link.active { color: #fff; position: relative; }
.lp-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 8px; right: 8px; bottom: -6px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}
