/* ============================================================
   SMM.chat — Premium Dark UI v3.3 (Fase 3C)
   Deep navy + blue-violet-magenta accents + glassmorphism
   Grid cards, SVG icons, safe text rendering
   ============================================================ */

:root {
    --smm-bg-deep: #0a0e1a;
    --smm-bg-surface: #111627;
    --smm-bg-elevated: #181e33;
    --smm-bg-glass: rgba(24, 30, 51, 0.82);
    --smm-border: rgba(99, 112, 165, 0.18);
    --smm-text-primary: #e8ebf7;
    --smm-text-secondary: #8b92b7;
    --smm-text-muted: #5e6487;
    --smm-accent: #6c5ce7;        /* violet */
    --smm-accent-glow: rgba(108, 92, 231, 0.4);
    --smm-accent2: #00cec9;       /* teal */
    --smm-accent3: #fd79a8;       /* magenta-pink */
    --smm-gradient-bg: linear-gradient(135deg, #0a0e1a 0%, #111627 50%, #141b2e 100%);
    --smm-gradient-accent: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --smm-gradient-card: linear-gradient(135deg, rgba(108, 92, 231, 0.06), rgba(162, 155, 254, 0.03));
    --smm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --smm-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --smm-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --smm-shadow-glow: 0 0 24px rgba(108, 92, 231, 0.18);
    --smm-radius-sm: 8px;
    --smm-radius-md: 14px;
    --smm-radius-lg: 20px;
    --smm-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Container ---------- */
.smm-chat-root {
    font-family: var(--smm-font);
    background: var(--smm-gradient-bg);
    color: var(--smm-text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Decorative ambient glow */
.smm-chat-root::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.smm-chat-root::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 206, 201, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Sidebar ---------- */
.smm-chat-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: var(--smm-bg-surface);
    border-right: 1px solid var(--smm-border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--smm-shadow-lg);
}
.smm-chat-sidebar.open {
    transform: translateX(0);
}

.smm-chat-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--smm-border);
}
.smm-chat-sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--smm-radius-sm);
    background: var(--smm-gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}
.smm-chat-sidebar-brand {
    font-weight: 700;
    font-size: 18px;
    color: var(--smm-text-primary);
}
.smm-chat-sidebar-brand span {
    color: var(--smm-accent);
}

.smm-chat-sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}
.smm-chat-sidebar-nav li {
    margin-bottom: 4px;
}
.smm-chat-sidebar-nav a,
.smm-chat-sidebar-nav button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--smm-radius-sm);
    background: transparent;
    border: none;
    color: var(--smm-text-secondary);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.smm-chat-sidebar-nav a:hover,
.smm-chat-sidebar-nav button:hover {
    background: var(--smm-bg-elevated);
    color: var(--smm-text-primary);
}
.smm-chat-sidebar-nav a.active,
.smm-chat-sidebar-nav button.active {
    background: rgba(108, 92, 231, 0.12);
    color: var(--smm-accent);
    font-weight: 600;
}
.smm-chat-sidebar-nav svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Sidebar overlay */
.smm-chat-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
    backdrop-filter: blur(4px);
}
.smm-chat-sidebar-overlay.visible {
    display: block;
}

/* ---------- Main Area ---------- */
.smm-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ---------- Top Bar ---------- */
.smm-chat-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--smm-border);
    margin-bottom: 0;
}
.smm-chat-menu-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--smm-text-secondary);
    border-radius: var(--smm-radius-sm);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.smm-chat-menu-btn:hover {
    color: var(--smm-text-primary);
    background: var(--smm-bg-elevated);
}
.smm-chat-topbar-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--smm-text-primary);
    flex: 1;
}
.smm-chat-topbar-actions {
    display: flex;
    gap: 8px;
}

/* ---------- Conversation ---------- */
.smm-chat-conversation {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}
.smm-chat-conversation::-webkit-scrollbar {
    width: 6px;
}
.smm-chat-conversation::-webkit-scrollbar-track {
    background: transparent;
}
.smm-chat-conversation::-webkit-scrollbar-thumb {
    background: var(--smm-border);
    border-radius: 3px;
}

/* ---------- Turn Wrapper (Fase 3D) ---------- */
.smm-chat-turn {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---------- Messages ---------- */
.smm-chat-message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: var(--smm-radius-md);
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    animation: smmFadeIn 0.25s ease;
    position: relative;
}
@keyframes smmFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.smm-chat-message.user {
    align-self: flex-end;
    background: var(--smm-gradient-accent);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.25);
}
.smm-chat-message.user p {
    margin: 0;
}
.smm-chat-message.bot {
    align-self: flex-start;
    background: var(--smm-bg-elevated);
    color: var(--smm-text-primary);
    border: 1px solid var(--smm-border);
    border-bottom-left-radius: 4px;
}
.smm-chat-message.bot p {
    margin: 0 0 8px;
}
.smm-chat-message.bot p:last-child {
    margin-bottom: 0;
}
.smm-chat-message.bot strong {
    color: var(--smm-accent2);
}
.smm-chat-message.bot em {
    color: var(--smm-text-secondary);
}

/* ---------- Chat Page Wrapper (header transition) ---------- */
.smm-chat-page-wrapper {
    background: linear-gradient(180deg, var(--smm-bg-deep) 0%, var(--smm-bg-surface) 100%);
    min-height: 100vh;
    padding-top: 12px;
}

/* ---------- Typing Indicator ---------- */
.smm-chat-typing {
    align-self: flex-start;
    display: flex;
    gap: 6px;
    padding: 12px 18px;
    background: var(--smm-bg-elevated);
    border: 1px solid var(--smm-border);
    border-radius: var(--smm-radius-md);
    border-bottom-left-radius: 4px;
    animation: smmFadeIn 0.2s ease;
}
.smm-chat-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--smm-text-muted);
    animation: smmBounce 1.2s infinite ease-in-out;
}
.smm-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.smm-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes smmBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-8px); opacity: 1; }
}

/* ---------- Card Grid (Fase 3C) ---------- */
.smm-chat-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin: 4px 0;
}

/* ---------- Service Card (Fase 3C: premium redesign) ---------- */
.smm-chat-service-card {
    background: var(--smm-gradient-card);
    border: 1px solid var(--smm-border);
    border-radius: var(--smm-radius-lg);
    padding: 18px;
    transition: all 0.2s ease;
    box-shadow: var(--smm-shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.smm-chat-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--smm-accent), var(--smm-accent2), var(--smm-accent3));
    opacity: 0.7;
}
.smm-chat-service-card:hover {
    border-color: rgba(108, 92, 231, 0.35);
    box-shadow: var(--smm-shadow-glow);
    transform: translateY(-1px);
}
.smm-chat-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.smm-chat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--smm-radius-sm);
    background: rgba(108, 92, 231, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.smm-chat-card-platform-icon {
    width: 24px;
    height: 24px;
    color: var(--smm-accent);
}
.smm-chat-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.smm-chat-card-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.smm-chat-card-badge-platform {
    background: rgba(108, 92, 231, 0.12);
    color: var(--smm-accent);
}
.smm-chat-card-badge-standard {
    background: rgba(0, 206, 201, 0.1);
    color: var(--smm-accent2);
}
.smm-chat-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--smm-text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}
.smm-chat-card-summary {
    font-size: 12px;
    color: var(--smm-text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
    flex: 1;
}
/* Specs grid inside card (2×2) */
.smm-chat-card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 14px;
    padding: 10px;
    background: var(--smm-bg-elevated);
    border-radius: var(--smm-radius-sm);
}
.smm-chat-card-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}
.smm-chat-card-spec-label {
    font-size: 11px;
    color: var(--smm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}
.smm-chat-card-spec-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--smm-text-primary);
}
/* CTAs */
.smm-chat-card-ctas {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.smm-chat-card-btn {
    padding: 8px 14px;
    border-radius: var(--smm-radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    background: var(--smm-bg-elevated);
    color: var(--smm-text-primary);
    border: 1px solid var(--smm-border);
    flex: 1;
    text-align: center;
}
.smm-chat-card-btn:hover {
    background: var(--smm-bg-surface);
    border-color: var(--smm-accent);
    color: var(--smm-text-primary);
}
.smm-chat-card-btn-ai {
    background: var(--smm-gradient-accent);
    color: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
}
.smm-chat-card-btn-ai:hover {
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.45);
    transform: translateY(-1px);
}

/* Icon in messages (sidebar, etc.) */
.smm-chat-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* ---------- Card Detail (Fase 3B.1 — View details endpoint) ---------- */
.smm-chat-card-detail {
    background: var(--smm-gradient-card);
    border: 1px solid var(--smm-border);
    border-radius: var(--smm-radius-lg);
    padding: 20px;
    margin: 8px 0;
    box-shadow: var(--smm-shadow-sm);
    position: relative;
    overflow: hidden;
    animation: smmFadeIn 0.25s ease;
}
.smm-chat-card-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--smm-accent2), var(--smm-accent3));
    opacity: 0.7;
}
.smm-chat-detail-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--smm-text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}
.smm-chat-detail-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.smm-chat-detail-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.smm-chat-detail-badge-platform {
    background: rgba(108, 92, 231, 0.12);
    color: var(--smm-accent);
}
.smm-chat-detail-badge-kind {
    background: rgba(0, 206, 201, 0.1);
    color: var(--smm-accent2);
}
.smm-chat-detail-summary {
    font-size: 13px;
    color: var(--smm-text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
}
.smm-chat-detail-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
    padding: 14px;
    background: var(--smm-bg-elevated);
    border-radius: var(--smm-radius-sm);
}
.smm-chat-detail-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.smm-chat-detail-spec-label {
    font-size: 12px;
    color: var(--smm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.smm-chat-detail-spec-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--smm-text-primary);
}
.smm-chat-detail-ask {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--smm-border);
}
.smm-chat-detail-ask-hint {
    font-size: 12px;
    color: var(--smm-text-muted);
}
@media (max-width: 600px) {
    .smm-chat-detail-specs {
        grid-template-columns: 1fr;
    }
    .smm-chat-detail-ask {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ---------- Welcome Screen ---------- */
.smm-chat-welcome {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}
.smm-chat-welcome-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: var(--smm-gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 24px;
    box-shadow: var(--smm-shadow-glow);
}
.smm-chat-welcome h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    background: linear-gradient(135deg, var(--smm-text-primary), var(--smm-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.smm-chat-welcome p {
    font-size: 15px;
    color: var(--smm-text-secondary);
    max-width: 420px;
    margin: 0 0 32px;
    line-height: 1.6;
}
.smm-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 500px;
}
.smm-chat-suggestion {
    padding: 10px 20px;
    border-radius: 30px;
    background: var(--smm-bg-elevated);
    border: 1px solid var(--smm-border);
    color: var(--smm-text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.smm-chat-suggestion:hover {
    border-color: var(--smm-accent);
    color: var(--smm-text-primary);
    background: rgba(108, 92, 231, 0.08);
    box-shadow: var(--smm-shadow-glow);
}

/* ---------- Input Area ---------- */
.smm-chat-input-area {
    padding: 16px 0 24px;
    position: sticky;
    bottom: 0;
    background: linear-gradient(transparent, var(--smm-bg-deep) 30%);
}
.smm-chat-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    background: var(--smm-bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--smm-border);
    border-radius: var(--smm-radius-lg);
    padding: 8px 12px;
    box-shadow: var(--smm-shadow-md);
    transition: border-color 0.2s;
}
.smm-chat-input-row:focus-within {
    border-color: var(--smm-accent);
    box-shadow: var(--smm-shadow-glow), var(--smm-shadow-md);
}
.smm-chat-input-row textarea {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--smm-text-primary);
    font-family: var(--smm-font);
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    padding: 8px 4px;
    outline: none;
    min-height: 24px;
    max-height: 120px;
}
.smm-chat-input-row textarea::placeholder {
    color: var(--smm-text-muted);
}
.smm-chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--smm-gradient-accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
}
.smm-chat-send-btn:hover {
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.5);
    transform: scale(1.05);
}
.smm-chat-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.smm-chat-send-btn svg {
    width: 20px;
    height: 20px;
}

/* ---------- Skip Link ---------- */
.smm-chat-skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    background: var(--smm-accent);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--smm-radius-sm);
    font-size: 13px;
    z-index: 200;
    transition: top 0.2s;
}
.smm-chat-skip-link:focus {
    top: 8px;
}

/* ---------- Responsive ---------- */
@media (min-width: 1024px) {
    .smm-chat-sidebar {
        transform: translateX(0);
        position: relative;
        box-shadow: none;
    }
    .smm-chat-sidebar-overlay {
        display: none !important;
    }
    .smm-chat-menu-btn {
        display: none;
    }
    .smm-chat-root {
        flex-direction: row;
    }
    .smm-chat-main {
        max-width: 800px;
    }
    .smm-chat-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .smm-chat-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .smm-chat-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .smm-chat-message {
        max-width: 90%;
        font-size: 13px;
    }
    .smm-chat-service-card {
        padding: 14px;
    }
    .smm-chat-card-ctas {
        flex-direction: column;
    }
    .smm-chat-card-btn {
        width: 100%;
    }
    .smm-chat-suggestions {
        flex-direction: column;
        align-items: center;
    }
    .smm-chat-card-specs {
        grid-template-columns: 1fr;
    }
}

/* ---------- Utility ---------- */
.smm-chat-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Locale Switcher (Fase 3E.1) ---------- */
.smm-chat-locale-switcher {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--smm-border);
    font-size: 13px;
    position: relative;
}
.smm-chat-locale-switcher summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--smm-radius-sm);
    cursor: pointer;
    color: var(--smm-text-secondary);
    list-style: none;
    user-select: none;
    transition: background 0.15s;
}
.smm-chat-locale-switcher summary::-webkit-details-marker {
    display: none;
}
.smm-chat-locale-switcher summary:hover {
    background: var(--smm-bg-elevated);
    color: var(--smm-text-primary);
}
.smm-chat-locale-switcher summary:focus-visible {
    outline: 2px solid var(--smm-accent);
    outline-offset: 2px;
}
.smm-chat-locale-switcher[open] summary {
    background: var(--smm-bg-elevated);
    color: var(--smm-accent);
}
.smm-chat-locale-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 4px;
    background: var(--smm-bg-elevated);
    border: 1px solid var(--smm-border);
    border-radius: var(--smm-radius-sm);
    max-height: min(360px, calc(100vh - 180px));
    overflow-y: auto;
}
.smm-chat-locale-list li {
    margin: 0;
}
.smm-chat-locale-list a {
    display: block;
    padding: 7px 12px;
    border-radius: 6px;
    color: var(--smm-text-secondary);
    text-decoration: none;
    transition: all 0.12s;
    font-size: 13px;
}
.smm-chat-locale-list a:hover {
    background: rgba(108, 92, 231, 0.12);
    color: var(--smm-text-primary);
}
.smm-chat-locale-list a[aria-current="page"] {
    background: rgba(108, 92, 231, 0.18);
    color: var(--smm-accent);
    font-weight: 600;
}

/* ---------- Locale Banner (Fase 3E.1) ---------- */
.smm-chat-locale-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    margin-bottom: 8px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: var(--smm-radius-sm);
    font-size: 13px;
    color: var(--smm-text-primary);
    flex-wrap: wrap;
}
.smm-chat-locale-banner-text {
    flex: 1;
    min-width: 200px;
}
.smm-chat-locale-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.smm-chat-locale-banner-accept,
.smm-chat-locale-banner-dismiss {
    padding: 6px 14px;
    border-radius: var(--smm-radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}
.smm-chat-locale-banner-accept {
    background: var(--smm-gradient-accent);
    color: #fff;
}
.smm-chat-locale-banner-accept:hover {
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.35);
}

/* ============================================================
   Fase 3E.3: RTL support
   ============================================================ */
[dir="rtl"] .smm-chat-sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--smm-border);
    transform: translateX(100%);
}
[dir="rtl"] .smm-chat-message-user {
    align-self: flex-start;
}
[dir="rtl"] .smm-chat-message-bot,
[dir="rtl"] .smm-chat-typing {
    align-self: flex-end;
}
[dir="rtl"] .smm-chat-skip-link {
    left: auto;
    right: 8px;
}
/* Desktop: override mobile transform so RTL sidebar stays visible */
@media (min-width: 1024px) {
    [dir="rtl"] .smm-chat-sidebar {
        transform: translateX(0);
    }
}
.smm-chat-locale-banner-dismiss {
    background: transparent;
    color: var(--smm-text-muted);
    border: 1px solid var(--smm-border);
}
.smm-chat-locale-banner-dismiss:hover {
    color: var(--smm-text-primary);
    border-color: var(--smm-text-muted);
}
