/* ═══════════════════════════════════════════════════════════════════════
   Bible Answers — Clean, modern, mobile-first design
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --ba-primary: #5b4ec4;
    --ba-primary-dark: #4338ca;
    --ba-primary-light: #f0edff;
    --ba-bg: #f8f7fc;
    --ba-surface: #ffffff;
    --ba-text: #1e1b4b;
    --ba-text-muted: #6b7280;
    --ba-border: #e5e7eb;
    --ba-radius: 12px;
    --ba-radius-sm: 8px;
    --ba-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --ba-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
    --ba-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ba-user-bg: #5b4ec4;
    --ba-user-text: #ffffff;
    --ba-bot-bg: #f5f3ff;
    --ba-bot-text: #1e1b4b;
}

/* ─── Base reset ─────────────────────────────────────────────────────── */
.ba-app {
    font-family: var(--ba-font);
    color: var(--ba-text);
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(91, 78, 196, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(91, 78, 196, 0.02) 0%, transparent 70%),
        var(--ba-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ═══════════════ LANDING / HERO ═══════════════ */

.ba-landing {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ba-hero {
    width: 100%;
    background:
        radial-gradient(ellipse 120% 80% at 30% 10%, rgba(99, 102, 241, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 80% 90%, rgba(30, 27, 75, 0.4) 0%, transparent 50%),
        linear-gradient(135deg, #1e1b4b 0%, #352f7e 35%, #5b4ec4 65%, #6366f1 100%);
    color: #fff;
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ba-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 300px at 15% 60%, rgba(255,255,255,0.04) 0%, transparent 100%),
        radial-gradient(circle 200px at 85% 30%, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

.ba-hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.ba-logo {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.ba-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.ba-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.85;
    margin: 0 0 2rem;
}

/* ─── Search input on hero ───────────────────────────────────────────── */

.ba-search-form {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.ba-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 99px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.35rem 0.4rem 0.35rem 0;
}

.ba-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-family: var(--ba-font);
    color: var(--ba-text);
    background: transparent;
}

.ba-input::placeholder {
    color: #94a3b8;
}

.ba-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ba-primary);
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ba-send-btn:hover {
    background: var(--ba-primary-dark);
    transform: scale(1.05);
}

.ba-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ─── Suggestion cards ───────────────────────────────────────────────── */

.ba-suggestions {
    width: 100%;
    max-width: 800px;
    padding: 2rem 1.5rem 3rem;
    margin: 0 auto;
    position: relative;
}

.ba-suggestions::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(91, 78, 196, 0.04), transparent);
    pointer-events: none;
    z-index: 0;
}

.ba-suggestions-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ba-text-muted);
    margin: 0 0 1rem;
    text-align: center;
}

.ba-suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.ba-suggestion-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--ba-surface);
    border: 1px solid var(--ba-border);
    border-radius: var(--ba-radius);
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.9rem;
    font-family: var(--ba-font);
    color: var(--ba-text);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    line-height: 1.4;
}

.ba-suggestion-card:hover {
    border-color: var(--ba-primary);
    box-shadow: 0 4px 16px rgba(91, 78, 196, 0.12);
    transform: translateY(-2px);
}

.ba-suggestion-card i {
    font-size: 1.25rem;
    color: var(--ba-primary);
    flex-shrink: 0;
}

/* ═══════════════ CHAT VIEW ═══════════════ */

.ba-chat-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background:
        radial-gradient(ellipse 70% 50% at 10% 90%, rgba(91, 78, 196, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 10%, rgba(99, 102, 241, 0.03) 0%, transparent 55%),
        var(--ba-bg);
}

/* ─── Chat header ────────────────────────────────────────────────────── */

.ba-chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--ba-surface);
    border-bottom: 1px solid var(--ba-border);
    box-shadow: var(--ba-shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}

.ba-back-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--ba-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.ba-back-btn:hover {
    background: var(--ba-primary-light);
    color: var(--ba-primary);
}

.ba-chat-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ba-text);
}

.ba-chat-header-title i {
    color: var(--ba-primary);
}

/* ─── Messages area ──────────────────────────────────────────────────── */

.ba-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ba-msg {
    max-width: 85%;
    padding: 0.875rem 1.125rem;
    border-radius: var(--ba-radius);
    line-height: 1.6;
    font-size: 0.95rem;
    word-wrap: break-word;
    animation: baFadeIn 0.3s ease;
}

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

.ba-msg-user {
    align-self: flex-end;
    background: var(--ba-user-bg);
    color: var(--ba-user-text);
    border-bottom-right-radius: 4px;
}

.ba-msg-bot {
    align-self: flex-start;
    background: var(--ba-bot-bg);
    color: var(--ba-bot-text);
    border-bottom-left-radius: 4px;
}

.ba-msg-bot p {
    margin: 0 0 0.75rem;
}

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

.ba-msg-bot blockquote {
    border-left: 3px solid var(--ba-primary);
    margin: 0.75rem 0;
    padding: 0.5rem 1rem;
    background: rgba(91, 78, 196, 0.05);
    border-radius: 0 var(--ba-radius-sm) var(--ba-radius-sm) 0;
    font-style: italic;
}

.ba-msg-bot strong {
    font-weight: 600;
}

.ba-msg-bot ul, .ba-msg-bot ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.ba-msg-bot li {
    margin-bottom: 0.25rem;
}

/* ─── Share button on bot messages ────────────────────────────────── */

.ba-msg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ba-share-btn {
    background: none;
    border: 1px solid var(--ba-border);
    font-size: 0.8rem;
    color: var(--ba-text-muted);
    cursor: pointer;
    padding: 0.35rem 0.65rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.ba-share-btn:hover {
    background: var(--ba-primary-light);
    color: var(--ba-primary);
    border-color: var(--ba-primary);
}

@media (max-width: 640px) {
    .ba-msg-actions {
        justify-content: center;
        gap: 0.6rem;
    }

    .ba-share-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        min-height: 2.5rem;
    }
}

/* ─── Typing indicator ───────────────────────────────────────────── */

.ba-typing {
    align-self: flex-start;
    display: flex;
    gap: 0.35rem;
    padding: 1rem 1.25rem;
    background: var(--ba-bot-bg);
    border-radius: var(--ba-radius);
    border-bottom-left-radius: 4px;
}

.ba-typing-dot {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: baBounce 1.4s infinite ease-in-out both;
}

.ba-typing-dot:nth-child(1) { animation-delay: 0s; }
.ba-typing-dot:nth-child(2) { animation-delay: 0.16s; }
.ba-typing-dot:nth-child(3) { animation-delay: 0.32s; }

@keyframes baBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%           { transform: scale(1); opacity: 1; }
}

/* ─── Chat input area ────────────────────────────────────────────── */

.ba-chat-input-area {
    padding: 0.75rem 1rem 1rem;
    background: var(--ba-surface);
    border-top: 1px solid var(--ba-border);
    position: sticky;
    bottom: 0;
}

.ba-chat-form {
    max-width: 800px;
    margin: 0 auto;
}

.ba-chat-input-wrap {
    display: flex;
    align-items: center;
    background: var(--ba-bg);
    border: 1px solid var(--ba-border);
    border-radius: 99px;
    padding: 0.3rem 0.35rem 0.3rem 0;
    transition: border-color 0.2s;
}

.ba-chat-input-wrap:focus-within {
    border-color: var(--ba-primary);
    box-shadow: 0 0 0 3px rgba(91, 78, 196, 0.12);
}

.ba-chat-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-family: var(--ba-font);
    color: var(--ba-text);
    background: transparent;
}

.ba-chat-input::placeholder {
    color: #94a3b8;
}

.ba-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ba-primary);
    border: none;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ba-chat-send:hover {
    background: var(--ba-primary-dark);
    transform: scale(1.05);
}

.ba-chat-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ═══════════════ LEAD CAPTURE FORM ═══════════════ */

.ba-lead-form-wrap {
    padding: 0.5rem 1rem;
    animation: baFadeIn 0.4s ease;
}

.ba-lead-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--ba-surface);
    border: 1px solid var(--ba-primary);
    border-radius: var(--ba-radius);
    padding: 1.5rem;
    box-shadow: var(--ba-shadow-lg);
    position: relative;
}

.ba-lead-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--ba-text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
}

.ba-lead-close:hover {
    color: var(--ba-text);
}

.ba-lead-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--ba-text);
}

.ba-lead-card p {
    font-size: 0.875rem;
    color: var(--ba-text-muted);
    margin: 0 0 1.25rem;
}

.ba-lead-input {
    display: block;
    width: 100%;
    border: 1px solid var(--ba-border);
    border-radius: var(--ba-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: var(--ba-font);
    color: var(--ba-text);
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ba-lead-input:focus {
    outline: none;
    border-color: var(--ba-primary);
    box-shadow: 0 0 0 3px rgba(91, 78, 196, 0.12);
}

.ba-lead-submit {
    width: 100%;
    background: var(--ba-primary);
    color: #fff;
    border: none;
    border-radius: var(--ba-radius-sm);
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--ba-font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.ba-lead-submit:hover {
    background: var(--ba-primary-dark);
}

.ba-lead-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ba-lead-dismiss {
    width: 100%;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.85rem;
    font-family: var(--ba-font);
    padding: 0.6rem;
    margin-top: 0.25rem;
    cursor: pointer;
    transition: color 0.2s;
}
.ba-lead-dismiss:hover {
    color: #6b7280;
}

/* ═══════════════ FOOTER ═══════════════ */

.ba-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.8rem;
    color: var(--ba-text-muted);
    border-top: 1px solid var(--ba-border);
    background: linear-gradient(to top, rgba(91, 78, 196, 0.03), transparent);
}

.ba-footer p {
    margin: 0 0 0.5rem;
}

.ba-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.ba-footer-links a {
    color: var(--ba-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.ba-footer-links a:hover {
    color: var(--ba-primary);
}

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 640px) {
    .ba-title {
        font-size: 1.75rem;
    }

    .ba-subtitle {
        font-size: 1rem;
    }

    .ba-input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .ba-send-btn {
        padding: 0 1.25rem;
    }

    .ba-suggestion-grid {
        grid-template-columns: 1fr;
    }

    .ba-msg {
        max-width: 92%;
    }

    .ba-hero {
        padding: 2rem 1rem 2rem;
    }

    .ba-suggestions {
        padding: 1.5rem 1rem 2rem;
    }
}

@media (min-width: 768px) {
    .ba-messages {
        padding: 2rem;
        max-width: 800px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ── Follow-up question buttons ────────────────────────────────── */

.ba-followup-section {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.ba-followup-heading {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.ba-followup-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: linear-gradient(135deg, rgba(91, 78, 196, 0.05) 0%, rgba(91, 78, 196, 0.10) 100%);
    border: 1px solid rgba(91, 78, 196, 0.18);
    border-radius: 10px;
    padding: 0.6rem 0.85rem 0.6rem 1.6rem;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    color: #4338ca;
    cursor: pointer;
    line-height: 1.4;
    transition: all 0.2s ease;
    position: relative;
    font-family: inherit;
}

.ba-followup-btn::before {
    content: '\2192';
    position: absolute;
    left: 0.65rem;
    opacity: 0.45;
}

.ba-followup-btn:hover {
    background: linear-gradient(135deg, rgba(91, 78, 196, 0.12) 0%, rgba(91, 78, 196, 0.20) 100%);
    border-color: rgba(91, 78, 196, 0.35);
    color: #3730a3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(91, 78, 196, 0.12);
}

.ba-followup-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

@media (max-width: 480px) {
    .ba-followup-btn {
        padding: 0.5rem 0.7rem 0.5rem 1.4rem;
        font-size: 0.82rem;
    }
}

/* ── Bible verse link ──────────────────────────────────────────── */

.ba-verse-link {
    color: #5b4ec4;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color .15s;
}
.ba-verse-link:hover {
    color: #3d34a5;
}

/* ── Verse popup ───────────────────────────────────────────────── */

.ba-verse-popup {
    position: absolute;
    z-index: 9000;
    width: 340px;
    max-width: calc(100vw - 16px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 1.5px 6px rgba(0,0,0,.08);
    overflow: hidden;
    animation: baPopupIn .2s ease;
    font-family: 'Georgia', 'Times New Roman', serif;
}

@keyframes baPopupIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ba-verse-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #5b4ec4, #3d34a5);
    color: #fff;
    padding: .625rem 1rem;
}

.ba-verse-popup-ref {
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
}

.ba-verse-popup-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.85);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0 0 .5rem;
}
.ba-verse-popup-close:hover {
    color: #fff;
}

.ba-verse-popup-body {
    padding: .875rem 1rem 1rem;
    font-size: .92rem;
    line-height: 1.65;
    color: #333;
    max-height: 280px;
    overflow-y: auto;
}
.ba-verse-popup-body p {
    margin: 0 0 .5rem;
}
.ba-verse-popup-body sup {
    color: #5b4ec4;
    font-weight: 700;
    margin-right: .15em;
    font-size: .75em;
}

.ba-verse-popup-translation {
    text-align: right;
    font-size: .78rem;
    color: #999;
    margin-top: .5rem;
    font-style: italic;
}

/* Popup responsive */
@media (max-width: 420px) {
    .ba-verse-popup {
        width: calc(100vw - 16px);
        left: 8px !important;
    }
}

/* ══════════════════════════════════════════════════════════════════
   PUBLIC CONVERSATION PAGES
   ══════════════════════════════════════════════════════════════════ */

/* ── Conversation index ───────────────────────────────────────── */

.ba-conv-index {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.ba-conv-header {
    margin-bottom: 2rem;
}
.ba-conv-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0.25rem 0;
}
.ba-conv-header p {
    color: #6b7280;
    margin: 0;
}

.ba-back-link {
    font-size: 0.85rem;
    color: #5b4ec4;
    text-decoration: none;
}
.ba-back-link:hover { text-decoration: underline; }

.ba-conv-grid {
    display: grid;
    gap: 1rem;
}

.ba-conv-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.ba-conv-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(91,78,196,0.08);
}

.ba-conv-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e1b4b;
    margin: 0 0 0.35rem;
    line-height: 1.4;
}
.ba-conv-card-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}
.ba-conv-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: #9ca3af;
}
.ba-conv-card-meta i { margin-right: 0.25rem; }

.ba-conv-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.6rem;
}
.ba-tag {
    background: #f0edff;
    color: #5b4ec4;
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    font-weight: 500;
}

.ba-conv-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}
.ba-conv-empty i { font-size: 2.5rem; margin-bottom: 1rem; }
.ba-conv-empty a { color: #5b4ec4; }

.ba-pagination { margin-top: 2rem; text-align: center; }

/* ── Conversation show (article) ──────────────────────────────── */

.ba-conv-article {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.ba-breadcrumbs {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}
.ba-breadcrumbs a {
    color: #5b4ec4;
    text-decoration: none;
}
.ba-breadcrumbs a:hover { text-decoration: underline; }
.ba-breadcrumbs span { margin: 0 0.35rem; }

.ba-conv-article-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}
.ba-conv-article-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.ba-conv-summary {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}
.ba-conv-article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.82rem;
    color: #9ca3af;
}

/* ── Message thread ───────────────────────────────────────────── */

.ba-conv-thread {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ba-conv-msg {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.ba-conv-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}
.ba-conv-msg-user .ba-conv-msg-avatar {
    background: #e0e7ff;
    color: #4338ca;
}
.ba-conv-msg-assistant .ba-conv-msg-avatar {
    background: #f0edff;
    color: #5b4ec4;
}

.ba-conv-msg-content {
    flex: 1;
    min-width: 0;
}

.ba-conv-msg-role {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.ba-conv-msg-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #374151;
}
.ba-conv-msg-text p { margin: 0 0 0.75rem; }
.ba-conv-msg-text p:last-child { margin-bottom: 0; }

.ba-conv-msg-user .ba-conv-msg-text {
    font-weight: 500;
    color: #1e1b4b;
}

/* ── CTA & sharing ────────────────────────────────────────────── */

.ba-conv-article-footer {
    margin-top: 3rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.ba-conv-cta {
    text-align: center;
    background: linear-gradient(135deg, #f8f7ff, #eef2ff);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.ba-conv-cta h2 {
    font-size: 1.3rem;
    color: #1e1b4b;
    margin: 0 0 0.35rem;
}
.ba-conv-cta p {
    color: #6b7280;
    margin: 0 0 1rem;
}
.ba-conv-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #5b4ec4, #4338ca);
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ba-conv-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91,78,196,0.25);
}

.ba-conv-share {
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
}
.ba-conv-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    margin-left: 0.4rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.ba-conv-share a:hover {
    background: #e0e7ff;
    color: #4338ca;
}

@media (max-width: 600px) {
    .ba-conv-article-header h1 { font-size: 1.4rem; }
    .ba-conv-article { padding: 1.5rem 1rem 3rem; }
    .ba-conv-index { padding: 1.5rem 1rem 3rem; }
}
