/* ============================================
   CHATBOT EMBED CSS - Scoped widget styles only
   No body/navbar/hero overrides - safe to embed
   ============================================ */

/* Scoped CSS variable for chatbot only */
.chat-container,
.chat-launcher {
    --cb-primary: #3077c3;
    --cb-bg: #1a1a1a;
    --cb-bg2: #2a2a2a;
    --cb-border: rgba(255, 255, 255, 0.1);
    --cb-text: #ffffff;
    --cb-grey: #888888;
}

/* --- Chat Container --- */
.chat-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: min(380px, 90vw);
    height: min(85vh, 800px);
    max-height: 85vh;
    background: rgba(20, 20, 20, 0.95);
    color: #ffffff;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 2000;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.chat-container * {
    box-sizing: border-box;
}

.chat-container.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.chat-container.expanded {
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    max-height: 90vh;
    bottom: 5vh;
    right: 5vw;
    border-radius: 16px;
}

/* --- Launcher Button --- */
.chat-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: #3077c3;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.6);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s;
    z-index: 2001;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.chat-launcher svg {
    transition: opacity 0.2s;
}

/* --- Chat Messages Area --- */
.chat-container .chat-messages {
    flex: 1;
    padding: 0;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #1a1a1a;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-container .chat-messages::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* --- Tab Content --- */
.chat-container .tab-content {
    height: 100%;
    overflow-y: auto;
    animation: cbFadeInTab 0.3s ease-in-out;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-container .tab-content::-webkit-scrollbar {
    width: 0;
    display: none;
}

@keyframes cbFadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Home Tab --- */
.chat-container #home-tab {
    background: #1a1a1a !important;
    padding: 0;
}

.chat-container .home-hero {
    padding: 100px 30px 120px;
    background: linear-gradient(180deg, #115c84 0%, #0f547a 40%, rgba(13, 74, 107, 0.8) 60%, rgba(13, 74, 107, 0.4) 80%, transparent 100%) !important;
    position: relative;
}

.chat-container .home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(4px 4px at 20% 30%, white, transparent),
        radial-gradient(3px 3px at 60% 70%, white, transparent),
        radial-gradient(3px 3px at 50% 50%, white, transparent),
        radial-gradient(4px 4px at 80% 10%, white, transparent),
        radial-gradient(3px 3px at 90% 60%, white, transparent),
        radial-gradient(3px 3px at 33% 80%, white, transparent),
        radial-gradient(4px 4px at 15% 60%, white, transparent),
        radial-gradient(3px 3px at 70% 20%, white, transparent),
        radial-gradient(3px 3px at 40% 40%, white, transparent),
        radial-gradient(4px 4px at 85% 85%, white, transparent),
        radial-gradient(3px 3px at 25% 15%, white, transparent),
        radial-gradient(3px 3px at 55% 90%, white, transparent),
        radial-gradient(4px 4px at 10% 25%, white, transparent),
        radial-gradient(3px 3px at 95% 45%, white, transparent),
        radial-gradient(3px 3px at 45% 65%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: cbSparkle 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

@keyframes cbSparkle {

    0%,
    100% {
        opacity: 0.7;
        background-position: 0% 0%;
    }

    50% {
        opacity: 1;
        background-position: 100% 100%;
    }
}

.chat-container .home-hero h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.chat-container .home-hero p {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    position: relative;
    z-index: 1;
}

.chat-container .chat-logo {
    position: absolute;
    top: 8px;
    left: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 10;
}

.chat-container .home-hero-actions {
    position: absolute;
    top: 8px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.chat-container .home-hero-actions .header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-container .home-hero-actions .header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-container .home-message-section {
    position: relative;
    z-index: 5;
    padding: 0 16px 8px !important;
    margin-top: -45px;
}

.chat-container .home-help-section {
    position: relative;
    z-index: 5;
    padding: 0 16px 8px !important;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.chat-container .home-section {
    margin: 0 0 6px 0;
    padding: 14px 18px;
    background: #2a2a2a !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-container .home-section:hover {
    background: #333 !important;
    border-color: #3077c3;
}

.chat-container .home-section svg {
    stroke: #ffffff;
}

.chat-container .section-title {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 4px;
}

.chat-container .section-subtitle {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
}

/* --- Help Search Box (Home Tab) --- */
.chat-container .help-search-box {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 16px;
    margin: 0 8px;
    width: calc(100% - 16px);
}

.chat-container .help-search-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.chat-container .help-search-input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 45px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.chat-container .help-search-input-wrapper input::placeholder {
    color: #888;
}

.chat-container .help-search-input-wrapper svg {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    stroke: #888;
    pointer-events: none;
}

.chat-container .message-suggestions {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-container .suggestion-item {
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
}

.chat-container .suggestion-item:last-child {
    border-bottom: none;
}

.chat-container .suggestion-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.chat-container .suggestion-item span {
    font-size: 0.75rem;
    color: #cccccc;
}

/* --- Messages Tab --- */
.chat-container #messages-tab {
    padding: 0;
    background: linear-gradient(180deg, #353535 0%, #1a1a1a 100%);
    position: relative;
    display: flex;
    flex-direction: column;
}

.chat-container .messages-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #2a2a2a;
    padding: 12px 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-container .messages-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-container .messages-header-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    object-fit: cover;
}

.chat-container .messages-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.2);
}

.chat-container .messages-header-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.chat-container .messages-header-status {
    font-size: 0.75rem;
    color: #34d399;
}

.chat-container .messages-header-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.chat-container .messages-header-close:hover {
    color: #fff;
}

.chat-container .messages-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-container .messages-content::-webkit-scrollbar {
    display: none;
    width: 0;
}

/* --- Messages / Chat Bubbles --- */
.chat-container .message {
    max-width: 88%;
    display: flex;
    flex-direction: column;
    animation: cbFadeIn 0.3s ease-out;
}

@keyframes cbFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-container .message.bot-message {
    align-self: flex-start;
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 16px;
}

.chat-container .message.user-message {
    align-self: flex-end;
    max-width: fit-content;
    align-items: flex-end;
    flex-direction: column;
}

.chat-container .message-content {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    color: #ffffff;
}

.chat-container .bot-message .message-content {
    background: #2a2a2a;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    flex: 1;
}

.chat-container .user-message .message-content {
    background: #3077c3;
    color: white;
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

.chat-container .message-time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 4px;
    margin-left: 4px;
}

.chat-container .user-message .message-time {
    text-align: right;
    margin-right: 4px;
}

/* --- Bot Avatar --- */
.chat-container .bot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 30%, #90CAF9 70%, #64B5F6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'Georgia', serif;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.chat-container .bot-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    animation: cbShimmer 3s infinite;
    pointer-events: none;
}

@keyframes cbShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* --- Typing Indicator --- */
.chat-container .typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.chat-container .typing-indicator span {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    animation: cbTyping 1.4s infinite;
}

.chat-container .typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-container .typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes cbTyping {

    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-6px);
    }
}

/* --- Btn Loader --- */
.chat-container .btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: cbSpin 0.8s linear infinite;
}

@keyframes cbSpin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Input Area --- */
.chat-container .chat-input-area {
    padding: 0;
    background: #2a2a2a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.chat-container .attachment-preview {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 8px;
    background: #2a2a2a;
}

.chat-container .attachment-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 16px;
    font-size: 0.85rem;
    color: #ccc;
}

.chat-container .remove-attachment {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.chat-container .remove-attachment:hover {
    color: #ff4444;
}

.chat-container .input-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #2a2a2a;
}

.chat-container .input-icon-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.chat-container .input-icon-btn:hover {
    color: #3077c3;
}

.chat-container .input-wrapper input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #444;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
    background-color: #1a1a1a;
    color: white;
    min-width: 0;
}

.chat-container .input-wrapper input[type="text"]:focus {
    background-color: #252525;
    border-color: #3077c3;
}

.chat-container .input-wrapper input[type="text"]::placeholder {
    color: #666;
}

.chat-container .send-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3077c3;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
}

.chat-container .send-btn:hover {
    background-color: #0066d6;
}

.chat-container .header-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.chat-container .header-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* --- Suggestion Chips & Sat Buttons --- */
.chat-container .suggestion-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    width: fit-content;
    max-width: 100%;
}

.chat-container .suggestion-chip {
    padding: 8px 12px;
    background: #333;
    border: 1px solid #3077c3;
    color: #3077c3;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 500;
}

.chat-container .suggestion-chip:hover {
    background: #3077c3;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.2);
}

.chat-container .sat-btn {
    padding: 6px 14px;
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    font-weight: 500;
    color: #ffffff;
}

.chat-container .sat-btn:hover {
    background: #3077c3;
    color: white;
    border-color: #3077c3;
}

/* --- Bottom Navigation --- */
.chat-container .chat-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    background: #2a2a2a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-container .chat-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.2s;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.chat-container .chat-bottom-nav .nav-item svg {
    stroke: #888;
    transition: stroke 0.2s;
}

.chat-container .chat-bottom-nav .nav-item.active {
    color: #3077c3;
}

.chat-container .chat-bottom-nav .nav-item.active svg {
    stroke: #3077c3;
}

.chat-container .chat-bottom-nav .nav-item:hover {
    color: #3077c3;
}

.chat-container .chat-bottom-nav .nav-item:hover svg {
    stroke: #3077c3;
}

/* --- Help Tab --- */
.chat-container .help-search-container {
    padding: 16px 20px;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-container .help-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.chat-container .help-search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    color: #888;
    pointer-events: none;
}

.chat-container #help-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.chat-container #help-search-input:focus {
    background: #333;
    border-color: #3077c3;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.chat-container #help-search-input::placeholder {
    color: #666;
}

.chat-container .help-search-results {
    padding: 20px;
    overflow-y: auto;
}

.chat-container .search-results-header {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 16px;
    font-weight: 500;
}

.chat-container .search-result-item {
    padding: 14px 16px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-container .search-result-item:hover {
    background: #333;
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.chat-container .search-result-category {
    font-size: 0.75rem;
    color: #3077c3;
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
}

.chat-container .search-result-question {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 6px;
}

.chat-container .search-result-preview {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.4;
}

.chat-container .search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.chat-container mark {
    background-color: rgba(0, 122, 255, 0.3);
    color: #ffffff;
    padding: 2px 4px;
    border-radius: 3px;
}

.chat-container .help-content {
    padding: 20px;
}

.chat-container .help-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.chat-container .faq-item {
    padding: 14px 16px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-container .faq-item:hover {
    background: #333;
    border-color: rgba(255, 255, 255, 0.1);
}

.chat-container .faq-item span {
    font-size: 0.9rem;
    color: #cccccc;
}

.chat-container .faq-item svg {
    stroke: #666;
    flex-shrink: 0;
}

/* --- FAQ Expandable --- */
.chat-container .help-category {
    padding: 20px;
}

.chat-container .help-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-container .back-btn {
    background: none;
    border: none;
    color: #3077c3;
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-container .faq-expandable {
    margin-bottom: 12px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.chat-container .faq-expandable:hover {
    background: #333;
}

.chat-container .faq-question {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-container .faq-question:hover {
    background: #333;
}

.chat-container .faq-question span {
    font-size: 0.9rem;
    color: #cccccc;
}

.chat-container .faq-question svg {
    stroke: #666;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.chat-container .faq-expandable.active .faq-question svg {
    transform: rotate(90deg);
}

.chat-container .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 16px;
}

.chat-container .faq-expandable.active .faq-answer {
    max-height: 1000px;
    padding: 0 16px 16px 16px;
}

.chat-container .faq-answer-content {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.6;
}

.chat-container .faq-answer-content p {
    margin: 8px 0;
}

.chat-container .faq-answer-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.chat-container .faq-answer-content li {
    margin: 4px 0;
}

.chat-container .faq-answer-content strong {
    color: #fff;
}

.chat-container .faq-answer-content table th {
    color: #000000 !important;
    font-weight: 600;
}

/* --- Article View --- */
.chat-container .help-article {
    padding: 30px;
    overflow-y: auto;
}

.chat-container .help-article::-webkit-scrollbar {
    width: 6px;
}

.chat-container .help-article::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.chat-container .help-article::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.chat-container .article-header {
    margin-bottom: 30px;
}

.chat-container .article-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.chat-container .article-meta {
    color: #888;
    font-size: 0.85rem;
}

.chat-container .article-content {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
}

.chat-container .article-content p {
    margin: 16px 0;
}

.chat-container .article-content strong {
    color: #fff;
    font-weight: 600;
}

.chat-container .article-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.chat-container .article-content li {
    margin: 10px 0;
}

.chat-container .article-content h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 24px 0 12px 0;
}

.chat-container .article-content h4 {
    color: #fff;
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
}

/* --- Message Content Formatting --- */
.chat-container .message-content h1,
.chat-container .message-content h2,
.chat-container .message-content h3 {
    margin: 8px 0 4px 0;
    font-weight: 600;
}

.chat-container .message-content h1 {
    font-size: 1.1rem;
}

.chat-container .message-content h2 {
    font-size: 1.05rem;
}

.chat-container .message-content h3 {
    font-size: 1rem;
}

.chat-container .message-content p {
    margin: 6px 0;
    line-height: 1.5;
}

.chat-container .message-content ul,
.chat-container .message-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.chat-container .message-content li {
    margin: 4px 0;
    line-height: 1.4;
}

.chat-container .message-content strong {
    font-weight: 600;
    color: #ffffff;
}

.chat-container .message-content em {
    font-style: italic;
    color: #cccccc;
}

.chat-container .message-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.chat-container .message-content pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 8px 0;
}

.chat-container .message-content blockquote {
    border-left: 3px solid #3077c3;
    padding-left: 12px;
    margin: 8px 0;
    color: #cccccc;
}

.chat-container .message-content a {
    color: #3077c3;
    text-decoration: none;
}

.chat-container .message-content a:hover {
    text-decoration: underline;
}

.chat-container .message-content table th {
    color: #000000 !important;
    font-weight: 600;
}

/* --- Verification Form --- */
.chat-container .verification-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.chat-container .phone-input-wrapper {
    display: flex;
    gap: 8px;
}

.chat-container .country-code-select {
    padding: 8px 4px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 0.75rem;
    outline: none;
    cursor: pointer;
    width: 80px;
}

.chat-container .country-code-select:focus {
    border-color: #3077c3;
}

.chat-container .country-code-select option {
    background: #1a1a1a;
    color: #ffffff;
}

.chat-container .phone-input-wrapper input {
    flex: 1;
}

.chat-container .verification-form input {
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
}

.chat-container .verification-form input:focus {
    border-color: #3077c3;
}

.chat-container .verification-form input::placeholder {
    color: #666;
}

.chat-container .verify-btn {
    padding: 10px 16px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-container .verify-btn:hover:not(:disabled) {
    background: #34495e;
}

.chat-container .verify-btn:disabled {
    background: #34d399;
    cursor: not-allowed;
}

.chat-container .verification-error {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 16px;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .chat-container {
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        top: 0 !important;
        border-radius: 0 !important;
    }

    .chat-launcher {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        z-index: 9999 !important;
    }

    .chat-launcher svg {
        width: 22px;
        height: 22px;
    }

    .chat-container .home-hero {
        padding: 60px 20px 100px !important;
    }

    .chat-container .home-hero h2 {
        font-size: 1.8rem;
        margin: 80px 0 8px 0;
    }

    .chat-container .home-hero p {
        font-size: 1.4rem;
    }

    .chat-container .chat-logo {
        width: 32px;
        height: 32px;
        top: 12px;
        left: 16px;
    }

    .chat-container .home-hero-actions {
        top: 12px;
        right: 16px;
    }

    .chat-container .home-message-section {
        padding: 0 16px 12px !important;
        margin-top: -40px;
    }

    .chat-container .home-help-section {
        padding: 0 16px 16px !important;
        margin-top: 16px;
    }
}