/**
 * Remco AI Platform & Chat Experience Stylesheet
 * Integrated with Reemco Header & Footer Theme
 * Includes Chat Mode & Guided Project Wizard (Mode 2)
 */

body.remco-ai-assistant-page {
    background-color: #f8f7f4;
    color: #1e293b;
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
}

.remco-ai-page-wrapper {
    background-color: #f8f7f4;
    color: #1e293b;
    min-height: 80vh;
    padding-bottom: 60px;
}

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

/* ═══ HERO BANNER ═══ */
.rai-hero {
    background: linear-gradient(145deg, #0f261a 0%, #1a3c2a 45%, #234d36 100%);
    color: #ffffff;
    padding: 45px 0 35px 0;
    text-align: center;
    position: relative;
    border-bottom: 3px solid #d4a843;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.rai-hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.rai-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 168, 67, 0.12);
    border: 1px solid rgba(212, 168, 67, 0.35);
    color: #d4a843;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}

.rai-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.rai-hero-subtitle {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 28px 0;
    line-height: 1.7;
}

/* MODE SWITCHER TABS */
.rai-mode-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    gap: 8px;
}

.rai-tab-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    font-family: inherit;
}

.rai-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.rai-tab-btn.active {
    background: linear-gradient(135deg, #d4a843 0%, #b8922f 100%);
    color: #1a3c2a !important;
    box-shadow: 0 4px 14px rgba(212, 168, 67, 0.4);
}

/* ═══ MAIN BODY SECTIONS ═══ */
.rai-main-body {
    margin-top: 35px;
}

.rai-section {
    display: none;
}

.rai-section.active {
    display: block;
    animation: raiFadeIn 0.35s ease;
}

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

/* ════════════════════════════════════════════════════════════════ */
/* CHAT PANEL STYLES                                               */
/* ════════════════════════════════════════════════════════════════ */
.rai-chat-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rai-chat-header {
    background: #1a3c2a;
    border-bottom: 2px solid #d4a843 !important;
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rai-bot-avatar {
    position: relative;
    display: flex;
    align-items: center;
}

.rai-avatar-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.rai-avatar-icon .rai-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.rai-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 13px;
    height: 13px;
    background: #10b981;
    border: 2.5px solid #1a3c2a;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
    z-index: 2;
}

.rai-bot-info {
    margin-right: 14px;
    flex-grow: 1;
}

.rai-bot-info h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.rai-bot-subtitle {
    font-size: 0.85rem;
    color: #d4a843;
    display: block;
    margin-top: 2px;
}

.rai-icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.rai-icon-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* TARGET PRODUCT CONTEXT CARD */
.rai-product-context-box {
    display: none;
    background: #fffbe8;
    border-bottom: 1px solid #fde68a;
    padding: 16px 24px;
}

.rai-product-context-box.is-visible {
    display: block;
}

.rai-pc-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rai-pc-icon {
    width: 36px;
    height: 36px;
    background: #f59e0b;
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rai-pc-details {
    flex-grow: 1;
}

.rai-pc-label {
    font-size: 0.8rem;
    color: #b45309;
    font-weight: 700;
    display: block;
}

.rai-pc-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #78350f;
    margin: 2px 0 0 0;
}

.rai-pc-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #92400e;
    cursor: pointer;
    padding: 4px;
}

.rai-pc-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rai-pc-chip {
    background: #ffffff;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.rai-pc-chip:hover {
    background: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
}

/* CHAT MESSAGES FEED */
.rai-messages-feed {
    padding: 24px;
    min-height: 380px;
    max-height: 520px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #f8fafc;
}

.rai-msg {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: raiMsgSlide 0.25s ease;
}

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

.rai-msg--bot {
    align-self: flex-start;
}

.rai-msg--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.rai-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.rai-msg--bot .rai-msg-avatar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.rai-bot-msg-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.rai-msg--user .rai-msg-avatar {
    background: #10b981;
    color: #ffffff;
    padding: 0;
    border: none;
    box-shadow: none;
}

.rai-msg-bubble {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    border-top-right-radius: 2px;
    padding: 14px 18px;
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.75;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rai-msg--user .rai-msg-bubble {
    background: linear-gradient(135deg, #1a3c2a 0%, #2d6a4f 100%);
    color: #ffffff;
    border: none;
    border-top-right-radius: 14px;
    border-top-left-radius: 2px;
}

.rai-msg-link {
    color: #d97706;
    font-weight: 700;
    text-decoration: underline;
}

.rai-msg--user .rai-msg-link {
    color: #f59e0b;
}

/* ════════════════════════════════════════════════════════════════ */
/* WHATSAPP INTERACTIVE BUTTONS & BADGES (DIRECT CONTACT)          */
/* ════════════════════════════════════════════════════════════════ */
.rai-wa-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.32);
    margin: 4px 2px;
    vertical-align: middle;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    line-height: 1.3;
}

.rai-wa-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.48);
    background: linear-gradient(135deg, #2ce872 0%, #16a090 100%);
    color: #ffffff !important;
}

.rai-wa-badge svg,
.rai-wa-svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    flex-shrink: 0;
    vertical-align: middle;
}

.rai-wa-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 211, 102, 0.12);
    color: #059669 !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(37, 211, 102, 0.3);
    margin: 2px 3px;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.rai-wa-chip:hover {
    background: #25D366;
    color: #ffffff !important;
    border-color: #25D366;
}

.rai-msg-wa-cta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(226, 232, 240, 0.8);
}

.rai-btn-wa-direct {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #075E54 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.28);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.rai-btn-wa-direct:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.42);
    background: linear-gradient(135deg, #2ce872 0%, #0a7367 100%);
    color: #ffffff !important;
}

.rai-btn-wa-direct svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.rai-msg-time {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 6px;
    text-align: left;
}

.rai-msg--user .rai-msg-time {
    color: #94a3b8;
    text-align: right;
}

/* TYPING INDICATOR */
.rai-typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    font-size: 0.85rem;
    color: #64748b;
    background: #f1f5f9;
}

.rai-typing-dot {
    width: 7px;
    height: 7px;
    background: #d97706;
    border-radius: 50%;
    animation: raiPulse 1.4s infinite ease-in-out both;
}

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

@keyframes raiPulse {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* PRESET CHIPS BAR */
.rai-chips-bar {
    padding: 12px 24px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.rai-chips-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    display: block;
    margin-bottom: 8px;
}

.rai-chips-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.rai-chips-scroll::-webkit-scrollbar {
    height: 4px;
}

.rai-chips-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.rai-chip {
    white-space: nowrap;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: inherit;
}

.rai-chip:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* CHAT INPUT AREA */
.rai-input-area {
    padding: 16px 24px;
    background: #ffffff;
}

.rai-input-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 6px 12px;
    transition: border-color 0.2s ease;
}

.rai-input-wrapper:focus-within {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.rai-textarea {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 0.98rem;
    color: #1e293b;
    resize: none;
    font-family: inherit;
    outline: none;
}

.rai-input-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rai-tool-btn {
    background: transparent;
    border: none;
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rai-tool-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.rai-send-btn {
    background: linear-gradient(135deg, #d4a843 0%, #b8922f 100%);
    color: #1a3c2a !important;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.3);
    transition: all 0.2s ease;
    font-family: inherit;
}

.rai-send-btn:hover {
    background: linear-gradient(135deg, #e8c96a 0%, #d4a843 100%);
    transform: translateY(-1px);
}

/* FLOATING SMART ACTION BAR */
.rai-floating-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 24px;
    background: #1a3c2a;
    border-top: 1px solid rgba(212, 168, 67, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rai-ftool-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.rai-ftool-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.rai-ftool-wa {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.rai-ftool-wa:hover {
    background: #059669;
    color: #ffffff;
}

/* ════════════════════════════════════════════════════════════════ */
/* GUIDED PROJECT WIZARD (MODE 2) STYLES                            */
/* ════════════════════════════════════════════════════════════════ */
.ast-wizard-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 35px 30px;
}

/* STEPS PROGRESS HEADER */
.ast-steps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 35px;
    padding: 0 10px;
}

.ast-steps-progress {
    position: absolute;
    top: 20px;
    right: 40px;
    left: 40px;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.ast-step-indicator {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ast-step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ast-step-indicator.active .ast-step-circle {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border-color: #d97706;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.ast-step-indicator.completed .ast-step-circle {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.ast-step-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    transition: color 0.3s ease;
}

.ast-step-indicator.active .ast-step-label {
    color: #d97706;
}

/* STEP CONTENT */
.ast-step-content {
    display: none;
}

.ast-step-content.active {
    display: block;
    animation: raiFadeIn 0.3s ease;
}

.ast-step-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.ast-step-desc {
    font-size: 0.98rem;
    color: #64748b;
    margin: 0 0 28px 0;
    line-height: 1.6;
}

/* GRID OPTIONS */
.ast-grid-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.ast-option-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ast-option-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.ast-option-card.selected {
    background: #fffbe8;
    border-color: #d97706;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.15);
}

.ast-option-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d97706;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.ast-option-card.selected .ast-option-badge {
    opacity: 1;
    transform: scale(1);
}

.ast-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.ast-option-icon svg {
    width: 24px;
    height: 24px;
}

.ast-option-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.ast-option-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* WIZARD FORM GRID (STEP 4) */
.ast-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ast-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ast-field-group label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
}

.ast-field-group input,
.ast-field-group select {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.95rem;
    color: #1e293b;
    background: #ffffff;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.ast-field-group input:focus,
.ast-field-group select:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

/* WIZARD NAVIGATION BUTTONS */
.ast-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 24px;
    margin-top: 10px;
}

.ast-nav-btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ast-btn-prev {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.ast-btn-prev:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ast-btn-next {
    background: linear-gradient(135deg, #d4a843 0%, #b8922f 100%);
    color: #1a3c2a !important;
    border: none;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);

}

.ast-btn-next:hover {
    background: linear-gradient(135deg, #e8c96a 0%, #d4a843 100%);
    transform: translateY(-1px);
}

/* RESULTS WRAPPER OUTPUT CARD */
.ast-results-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    margin-top: 20px;
}

.ast-results-header {
    text-align: center;
    margin-bottom: 30px;
}

.ast-results-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.ast-results-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.ast-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.ast-res-col h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.ast-products-recommend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ast-product-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ast-product-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #d97706;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ast-product-item-info h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.ast-product-item-info p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.ast-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
}

.ast-sum-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #cbd5e1;
    font-size: 0.92rem;
}

.ast-sum-item:last-child {
    border-bottom: none;
}

.ast-sum-label {
    color: #64748b;
    font-weight: 600;
}

.ast-sum-val {
    color: #0f172a;
    font-weight: 700;
}

.ast-sum-badge {
    background: #d97706;
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.ast-confidence-wrap {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.ast-conf-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.ast-conf-pct {
    color: #10b981;
}

.ast-conf-bar-bg {
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.ast-conf-bar-fill {
    height: 100%;
    width: 98%;
    background: linear-gradient(90deg, #d97706 0%, #10b981 100%);
    border-radius: 10px;
}

.ast-footer-ctas {
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 24px;
}

.ast-actions-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.ast-cta-primary {
    background: #10b981;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transition: all 0.25s ease;
}

.ast-cta-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.ast-cta-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ast-cta-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ═══ PROMOS SECTION ═══ */
.ast-promo-sec {
    margin-top: 50px;
}

.ast-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.ast-promo-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.ast-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.ast-promo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ast-promo-icon svg {
    width: 24px;
    height: 24px;
}

.ast-promo-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.ast-promo-card p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .rai-hero-title { font-size: 1.65rem; }
    .rai-hero-subtitle { font-size: 0.95rem; }
    .rai-tab-btn { padding: 8px 14px; font-size: 0.88rem; }
    .rai-msg { max-width: 95%; }
    .rai-floating-tools { justify-content: center; }
    .ast-steps-header { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .ast-steps-progress { display: none; }
}




/* ════════════════════════════════════════════════════════════════ */
/* PROMINENT MULTIMODAL CAMERA & ATTACHMENT BUTTONS                */
/* ════════════════════════════════════════════════════════════════ */
.rai-attach-btn {
    background: linear-gradient(135deg, #1a3c2a 0%, #2d6a4f 100%) !important;
    color: #ffffff !important;
    border: 1px solid #d4a843 !important;
    border-radius: 10px !important;
    padding: 7px 14px !important;
    height: 40px !important;
    width: auto !important;
    min-width: 135px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 3px 10px rgba(11, 60, 93, 0.25) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    flex-shrink: 0 !important;
}

.rai-attach-btn svg {
    stroke: #ffffff !important;
    flex-shrink: 0 !important;
}

.rai-attach-btn:hover {
    background: #122a1d !important;
    border-color: #e8c96a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(212, 168, 67, 0.3) !important;
}

.rai-attach-btn:active {
    transform: translateY(0) !important;
}

.rai-attach-btn-text {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.rai-chip-camera {
    background: #fdf8eb !important;
    color: #1a3c2a !important;
    border: 1.5px solid #d4a843 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.rai-chip-camera:hover {
    background: #fef3c7 !important;
    border-color: #d97706 !important;
    color: #92400e !important;
    transform: translateY(-2px) !important;
}

.rai-chip-camera svg {
    stroke: #b45309 !important;
}

.rai-attachment-preview {
    padding: 8px 18px 4px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.rai-preview-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rai-preview-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.rai-preview-doc-icon {
    font-size: 1.4rem;
}

.rai-preview-info {
    display: flex;
    flex-direction: column;
}

.rai-preview-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rai-preview-size {
    font-size: 0.75rem;
    color: #64748b;
}

.rai-preview-remove {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    margin-right: 6px;
    transition: background 0.2s;
}

.rai-preview-remove:hover {
    background: #fecaca;
}

.rai-drag-over {
    border: 2px dashed #d97706 !important;
    background: rgba(217, 119, 6, 0.05) !important;
}

/* User Bubble Attachment */
.rai-msg-attachment {
    margin-bottom: 8px;
}

.rai-user-img-bubble {
    max-width: 240px;
    max-height: 200px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s;
}

.rai-user-img-bubble:hover {
    transform: scale(1.02);
}

.rai-doc-bubble {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 8px;
}

/* ════════════════════════════════════════════════════════════════ */
/* INTERACTIVE PRODUCT CARDS & STORE INTEGRATION                    */
/* ════════════════════════════════════════════════════════════════ */
.rai-products-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.rai-products-header {
    margin-bottom: 12px;
}

.rai-badge-matched {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.rai-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.rai-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.rai-product-card:hover {
    border-color: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.rai-card-image-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    background: #f8fafc;
    overflow: hidden;
}

.rai-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s ease;
}

.rai-product-card:hover .rai-card-img {
    transform: scale(1.05);
}

.rai-card-stock {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.rai-stock-in {
    background: #dcfce7;
    color: #166534;
}

.rai-stock-out {
    background: #fee2e2;
    color: #991b1b;
}

.rai-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rai-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.rai-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 8px;
}

.rai-card-sku {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.rai-card-brand {
    font-weight: 600;
    color: #0284c7;
}

.rai-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.rai-card-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #d97706;
}

.rai-card-old-price {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.rai-vat-note {
    font-size: 0.72rem;
    color: #64748b;
}

.rai-card-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.rai-btn-view-product {
    flex: 1;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rai-btn-view-product:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.rai-btn-add-cart {
    flex: 1.2;
    background: #10b981;
    border: none;
    color: #ffffff;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.rai-btn-add-cart:hover {
    background: #059669;
}

.rai-btn-add-cart.rai-added-success {
    background: #047857;
}

/* ════════════════════════════════════════════════════════════════ */
/* CONTINUOUS LEARNING FEEDBACK COMPONENT                           */
/* ════════════════════════════════════════════════════════════════ */
.rai-msg-feedback {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.82rem;
    color: #64748b;
    flex-wrap: wrap;
}

.rai-fb-label {
    font-weight: 600;
}

.rai-fb-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.rai-fb-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.rai-fb-thankyou {
    color: #059669;
    font-weight: 700;
    font-size: 0.82rem;
}

/* ════════════════════════════════════════════════════════════════ */
/* AUTO-NAVIGATION TOAST NOTIFICATION                               */
/* ════════════════════════════════════════════════════════════════ */
.rai-auto-open-toast {
    position: fixed;
    bottom: 25px;
    left: 25px;
    right: 25px;
    max-width: 500px;
    margin: 0 auto;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #d97706;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.rai-auto-open-toast.is-active {
    opacity: 1;
    transform: translateY(0);
}

.rai-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rai-toast-icon {
    font-size: 1.4rem;
}

.rai-toast-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.rai-toast-btn {
    background: #d97706;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.2s;
}

.rai-toast-btn:hover {
    background: #b45309;
}


/* Reemco Official Geometric Pattern & Identity */
.rai-hero::before {
    display: none !important;
}
.rai-tab-btn.active svg {
    stroke: #1a3c2a !important;
}
.rai-send-btn svg {
    stroke: #1a3c2a !important;
}
.rai-chip-btn:hover {
    background: #fdf8eb !important;
    border-color: #d4a843 !important;
    color: #1a3c2a !important;
}

/* ════════════════════════════════════════════════════════════════
   MASCOT PEEKING OVER CHAT CARD (EMERGING FROM FRAME)
   ════════════════════════════════════════════════════════════════ */
.rai-chat-card-wrapper {
    position: relative;
    margin-top: 70px;
}
.rai-chat-mascot {
    position: absolute;
    top: -66px;
    right: 6px;
    width: 132px;
    aspect-ratio: 220 / 126;
    z-index: 10;
    pointer-events: none;
    line-height: 0;
    user-select: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rai-chat-mascot .reemco-mascot-img,
.rai-chat-mascot img {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}
.reemco-mascot-eye {
    --eye-x: 0px;
    --eye-y: 0px;
    --eye-scale-y: 1;
    position: absolute;
    width: 3.18%;
    height: 16.67%;
    background: #c7fae8;
    border-radius: 999px;
    box-shadow:
        0 0 3px #5eead4,
        0 0 7px #34d399,
        0 0 12px rgba(52, 211, 153, 0.7);
    pointer-events: none;
    transform-origin: center center;
    transform: translate3d(var(--eye-x), var(--eye-y), 0) scaleY(var(--eye-scale-y));
    will-change: transform;
}
.reemco-mascot-eye-left {
    left: 54.09%;
    top: 42.06%;
}
.reemco-mascot-eye-right {
    left: 67.73%;
    top: 41.27%;
}
.reemco-mascot-eye.is-blinking {
    --eye-scale-y: 0.08;
    transition: transform 0.07s ease-in-out;
}
@media (max-width: 768px) {
    .rai-chat-card-wrapper {
        margin-top: 54px;
    }
    .rai-chat-mascot {
        top: -50px;
        right: 4px;
        width: 100px;
    }
}
