/* Docs Wiki Styles - GitBook Style */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

/* Global image safety  -  prevents overflow on any image */
img {
    max-width: 100%;
    height: auto;
}

/* Inline icons (meta-link, etc.) override  -  keep fixed size */
img.meta-link-icon,
img[class*="icon"] {
    max-width: none;
    width: 16px;
    height: 16px;
}

.docs-layout {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    margin: 0;
    padding: 0;
}

/* Header */
.docs-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-bottom: 1px solid #0056b3;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.header-container {
    margin: 0;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* User Menu Styles */
.user-menu-container {
    position: relative;
    margin-right: 1rem;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #fff;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.user-email {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.user-menu-arrow {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.user-menu-container.active .user-menu-arrow {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.user-menu-container.active .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: #fff;
    flex-shrink: 0;
}

.user-menu-info {
    flex: 1;
    min-width: 0;
}

.user-menu-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-email {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0;
}

.user-menu-items {
    padding: 0.5rem 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.user-menu-item:hover {
    background: #f5f5f5;
    color: #007bff;
}

.user-menu-item i {
    width: 18px;
    text-align: center;
    color: #666;
    transition: color 0.2s ease;
}

.user-menu-item:hover i {
    color: #007bff;
}

.logout-item {
    color: #dc3545;
}

.logout-item:hover {
    background: #fee;
    color: #c82333;
}

.logout-item:hover i {
    color: #c82333;
}

/* Hide back-to-site link when user is logged in */
.user-menu-container[style*="display: block"] ~ .back-to-site,
.user-menu-container:not([style*="display: none"]) ~ .back-to-site {
    display: none !important;
}

/* Content Lock Overlay Styles */
.content-lock-overlay {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 16px;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    z-index: 10;
}

.lock-overlay-content {
    max-width: 600px;
    width: 100%;
}

.lock-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.lock-icon-wrapper i {
    font-size: 3rem;
    color: #fff;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(0, 123, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(0, 123, 255, 0.4);
    }
}

.lock-title {
    color: #212529;
    margin-bottom: 1rem;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.lock-description {
    color: #6c757d;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.lock-benefits {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.lock-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #495057;
    font-size: 1rem;
}

.lock-benefit-item:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.lock-benefit-item i {
    color: #28a745;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.lock-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.lock-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.lock-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.lock-btn-primary i {
    font-size: 1.125rem;
}

.lock-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #495057;
    padding: 1rem 2rem;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    transition: all 0.3s ease;
}

.lock-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
    text-decoration: none;
    transform: translateY(-2px);
}

.lock-btn-secondary i {
    font-size: 1.125rem;
}

/* Content body styling when locked */
.content-body[data-requires-auth="true"] {
    transition: opacity 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-lock-overlay {
        padding: 3rem 1.5rem;
        min-height: 350px;
    }
    
    .lock-icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }
    
    .lock-icon-wrapper i {
        font-size: 2.5rem;
    }
    
    .lock-title {
        font-size: 1.75rem;
    }
    
    .lock-description {
        font-size: 1rem;
    }
    
    .lock-actions {
        flex-direction: column;
    }
    
    .lock-btn-primary,
    .lock-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

.header-left .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}

.back-to-site {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.back-to-site:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ===== Global focus-visible for keyboard navigation ===== */
.docs-layout a:focus-visible,
.docs-layout button:focus-visible,
.docs-layout input:focus-visible,
.docs-layout [role="button"]:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}
.docs-layout .accordion-button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
    box-shadow: none !important;
}

.logo-img {
    height: 32px;
    margin-right: 12px;
}

.logo-text {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Search */
.search-container {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 40px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    margin-top: 4px;
}

/* Prevent horizontal overflow on the entire docs wrapper */
.docs-content-wrapper {
    overflow-x: clip;
}

/* Main Container */
.docs-container {
    display: grid;
    grid-template-columns: 260px 1fr 220px;
    margin: 0;
    min-height: calc(100vh - 60px);
    padding: 0;
    width: 100%;
    max-width: 100vw;
}

/* Left Sidebar */
.docs-sidebar {
    background: #f8f9fa;
    border-right: 1px solid #e1e5e9;
    padding: 16px 0;
    overflow-y: auto;
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
}

.sidebar-nav {
    padding: 0 12px;
}

.nav-category {
    margin-bottom: 24px;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-icon {
    margin-right: 8px;
    font-size: 16px;
}

.category-logo {
    margin-right: 8px;
    flex-shrink: 0;
    object-fit: contain;
}

.category-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #e9ecef;
    color: #212529;
}

/* Disabled links */
.nav-link.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    color: #adb5bd;
    pointer-events: none;
}

.nav-link.disabled:hover {
    background: transparent;
    color: #adb5bd;
}

.disabled-icon {
    font-size: 12px;
    color: #adb5bd;
    margin-left: 8px;
}

.nav-item.active .nav-link {
    background: #007bff;
    color: #fff;
}

/* Simulation badge on interactive pages */
.nav-sim-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: rgba(37,99,235,.08);
    color: #2563eb;
    font-size: 11px;
    flex-shrink: 0;
    margin-left: 4px;
}
.nav-item.active .nav-sim-badge {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.expand-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.nav-item.expanded .expand-icon {
    transform: rotate(90deg);
}

.sub-items {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 20px;
    display: none;
}

.nav-item.expanded .sub-items {
    display: block;
}

.sub-item {
    margin-bottom: 2px;
}

.sub-link {
    display: block;
    padding: 6px 12px;
    color: #6c757d;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sub-link:hover {
    background: #e9ecef;
    color: #495057;
}

.sub-link.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    color: #adb5bd;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sub-link.disabled:hover {
    background: transparent;
    color: #adb5bd;
}

/* Disabled links in content */
.disabled-link {
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
    text-decoration: none;
}

.disabled-link:hover {
    color: #adb5bd;
    text-decoration: none;
}

/* Documentation images  -  máx 60% da coluna */
.content-body img {
    max-width: 60%;
    height: auto;
    border-radius: 8px;
    margin: 24px auto;
    display: block;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.content-body img:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Image captions */
.image-caption {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
    margin-bottom: 24px;
    font-style: italic;
}

/* Auto-numbered figures */
.content-body {
    counter-reset: doc-figure;
}

.content-body .doc-fig {
    counter-increment: doc-figure;
    margin: 24px 0;
    text-align: center;
}

.content-body .doc-fig img {
    max-width: 60%;
    margin: 0 auto 8px;
    border-radius: 8px;
    display: block;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.content-body .doc-fig img:hover {
    transform: translateY(-2px);
    transition: all .3s ease;
}

.content-body .doc-fig--wide img {
    max-width: 60%;
}

.content-body .doc-fig figcaption {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.content-body .doc-fig figcaption::before {
    content: "Figura " counter(doc-figure) "  -  ";
    font-weight: 600;
    color: #495057;
}

/* Italic text styling for image captions (standalone <em> after images) */
.content-body > em,
.content-body .doc-fig em,
.content-body .image-caption em {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
    margin-bottom: 24px;
    font-style: italic;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid #e1e5e9;
    margin-top: 12px;
}

.sidebar-user-info {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e1e5e9;
}

.sidebar-user-email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #495057;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.sidebar-user-email i {
    color: #3A5D9D;
    font-size: 16px;
}

.sidebar-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sidebar-logout-btn:hover {
    background: #c82333;
}

.sidebar-logout-btn:active {
    background: #bd2130;
}

.sidebar-logout-btn i {
    font-size: 14px;
}

.powered-by {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

.powered-by i {
    margin-right: 6px;
}

/* Main Content */
.docs-main {
    padding: 32px 48px;
    max-width: 100%;
    margin: 0;
    width: 100%;
    min-width: 0;
}

.content-header {
    margin-bottom: 40px;
}

.content-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.content-title h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.content-actions {
    display: flex;
    gap: 8px;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.content-description {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.content-body {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.content-body h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 40px 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.content-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 30px 0 15px 0;
}

.content-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin: 25px 0 12px 0;
}

.content-body a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(37,99,235,.25);
    transition: color .15s, border-color .15s;
}
.content-body a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}
/* List icons  -  subtle gray like mockup */
.content-body li > i.bi,
.content-body li > .bi {
    color: #9ca3af;
    margin-right: 4px;
}

/* Don't style special link components */
.content-body a.meta-link,
.content-body a.docs-link-card,
.content-body a.nav-btn,
.content-body a.btn,
.content-body a.btn-whatsapp,
.content-body a.meta-badge-link {
    border-bottom: none;
}

/* Meta Tech Partner badge  -  avoid content-body overrides */
.content-body .meta-badge-container img {
    max-width: none;
    width: auto;
    height: 14px;
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}
.content-body .meta-badge-link {
    color: inherit;
}
.content-body .meta-badge-link:hover {
    color: inherit;
    border-bottom: none;
}
.content-body .meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.content-body .meta-badge .meta-partner-text {
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
}

.content-body p {
    margin-bottom: 16px;
}

.content-body ul, .content-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.content-body li {
    margin-bottom: 8px;
}

.content-body code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    color: #e83e8c;
}

.content-body pre {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #e1e5e9;
}

.content-body pre code {
    background: none;
    padding: 0;
    color: #333;
}

.content-body blockquote {
    border-left: 3px solid #cbd5e1;
    background: #f8fafc;
    padding: 14px 16px;
    margin: 16px 0;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
}
.content-body blockquote strong {
    color: #1e293b;
}
.content-body blockquote p {
    margin: 0;
}

/* ===== Docs Tables ===== */
.content-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0 24px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.content-body thead th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}
.content-body tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}
.content-body tbody tr:last-child td {
    border-bottom: none;
}
.content-body tbody tr:hover {
    background: #f8fafc;
}
.content-body tbody td:first-child {
    font-weight: 500;
    color: #1e293b;
}

/* Docs table variant: checklist */
.content-body .doc-table--checklist td:last-child {
    text-align: center;
    font-size: 16px;
    width: 70px;
}

/* ===== Interactive Checklist ===== */
.doc-checklist {
    margin: 16px 0 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.doc-checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    margin: 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background .12s;
    font-size: 14px;
    color: #334155;
    font-weight: 400;
    line-height: 1.4;
}
.doc-checklist-item:last-of-type {
    border-bottom: none;
}
.doc-checklist-item:hover {
    background: #f8fafc;
}
.doc-checklist-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s;
    position: relative;
    flex-shrink: 0;
}
.doc-checklist-item input[type="checkbox"]:checked {
    background: #16a34a;
    border-color: #16a34a;
}
.doc-checklist-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.doc-checklist-item:has(input:checked) span {
    color: #94a3b8;
    text-decoration: line-through;
}
.doc-checklist-progress {
    height: 4px;
    background: #f1f5f9;
    overflow: hidden;
}
.doc-checklist-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border-radius: 0 2px 2px 0;
    transition: width .3s ease;
}
.doc-checklist-count {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    padding: 8px 0;
    margin: 0;
}

/* Docs table variant: comparison (before/after) */
.content-body .doc-table--compare thead th:first-child {
    color: #94a3b8;
}
.content-body .doc-table--compare thead th:last-child {
    color: #007bff;
}
.content-body .doc-table--compare tbody td:last-child {
    color: #16a34a;
    font-weight: 500;
}

/* Docs table variant: status */
.content-body .doc-table--status .status-yes {
    color: #16a34a;
    font-weight: 600;
}
.content-body .doc-table--status .status-no {
    color: #dc2626;
    font-weight: 500;
}

/* Responsive table wrapper */
.content-body .doc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0 24px;
    border-radius: 10px;
}
.content-body .doc-table-wrap table {
    margin: 0;
    min-width: 480px;
}

@media (max-width: 768px) {
    .content-body table {
        font-size: 13px;
    }
    .content-body thead th,
    .content-body tbody td {
        padding: 10px 12px;
    }
}

/* ===== Docs Template Type Cards ===== */
.doc-template-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0 24px;
}
.doc-template-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    border-radius: 12px;
    border: 1px solid;
}
.doc-template-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1e293b;
}
.doc-template-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 10px;
    line-height: 1.3;
}
.doc-template-card code {
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: none;
    color: inherit;
}
.doc-template-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Utility */
.doc-template--utility {
    background: #f0f7ff;
    border-color: #bfdbfe;
}
.doc-template--utility .doc-template-icon {
    background: #dbeafe;
    color: #2563eb;
}
.doc-template--utility code {
    background: #e0f2fe;
    color: #0369a1;
}

/* Marketing */
.doc-template--marketing {
    background: #faf5ff;
    border-color: #e9d5ff;
}
.doc-template--marketing .doc-template-icon {
    background: #f3e8ff;
    color: #7c3aed;
}
.doc-template--marketing code {
    background: #f3e8ff;
    color: #6d28d9;
}

/* Auth */
.doc-template--auth {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.doc-template--auth .doc-template-icon {
    background: #dcfce7;
    color: #16a34a;
}
.doc-template--auth code {
    background: #dcfce7;
    color: #15803d;
}

@media (max-width: 768px) {
    .doc-template-types {
        grid-template-columns: 1fr;
    }
}

/* ===== Docs Link Cards ===== */
.docs-link-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}
.docs-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}
.docs-link-card:hover {
    border-color: #1a9bfc;
    background: #f5faff;
    transform: translateX(2px);
    text-decoration: none;
    color: inherit;
}
.dlc-num {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #1a9bfc;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dlc-body {
    flex: 1;
    min-width: 0;
}
.dlc-body strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1px;
}
.dlc-body span {
    font-size: 13px;
    color: #64748b;
    line-height: 1.3;
}
.dlc-arrow {
    font-size: 12px;
    color: #cbd5e1;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}
.docs-link-card:hover .dlc-arrow {
    color: #1a9bfc;
    transform: translateX(2px);
}
.docs-link-card:hover .dlc-body strong {
    color: #1a9bfc;
}

/* Feedback Section */
.feedback-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e1e5e9;
    text-align: center;
}

.feedback-text {
    font-size: 16px;
    color: #495057;
    margin-bottom: 16px;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.feedback-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #e1e5e9;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feedback-btn:hover {
    border-color: #007bff;
    transform: scale(1.1);
}

.feedback-btn.positive:hover {
    color: #28a745;
    border-color: #28a745;
}

.feedback-btn.neutral:hover {
    color: #ffc107;
    border-color: #ffc107;
}

.feedback-btn.negative:hover {
    color: #dc3545;
    border-color: #dc3545;
}

.feedback-btn.submitted {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

/* Right Sidebar - Table of Contents */
.docs-toc {
    background: #fafbfc;
    border-left: 1px solid #e9ecef;
    padding: 16px 12px;
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    overflow-y: auto;
}

.toc-header h3 {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    margin: 0 0 16px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9ecef;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-link {
    display: block;
    padding: 4px 0;
    color: #8c959d;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.toc-link:hover {
    color: #6c757d;
}

.toc-h2 {
    font-weight: 500;
    color: #6c757d;
}

.toc-h3 {
    margin-left: 12px;
    font-size: 13px;
}

.toc-h4 {
    margin-left: 24px;
    font-size: 12px;
}



/* Mockup sidebar: phone mockup (narrower) */
.docs-container.has-mockup-phone {
    grid-template-columns: 260px 1fr 340px;
}

/* Mockup sidebar: dialog mockup (wider for embedded signup) */
.docs-container.has-mockup-dialog {
    grid-template-columns: 260px 1fr 440px;
}

/* Mockup sidebar base */
.docs-mockup-sidebar {
    padding: 16px 8px;
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fafbfc;
    border-left: 1px solid #e9ecef;
    flex-shrink: 0;
}

/* Phone mockup: constrained width for scaled phone */
.has-mockup-phone .docs-mockup-sidebar {
    width: 340px;
    min-width: 340px;
    max-width: 340px;
}

/* Dialog mockup: wider for embedded signup simulator */
.has-mockup-dialog .docs-mockup-sidebar {
    width: 440px;
    min-width: 440px;
    max-width: 440px;
    padding: 20px;
    overflow-y: auto;
}

/* Extra breathing room on main content when mockup is present */
.docs-container.has-mockup .docs-main {
    padding-right: 24px;
}

/* Coexistência: menor distância entre legenda (esquerda) e mockup (direita) */
.docs-container.has-mockup-snapshot .docs-main {
    padding-right: 12px;
}
.docs-container.has-mockup-snapshot .docs-mockup-sidebar {
    padding-left: 12px;
}

/* No TOC: two-column layout, main gets full remaining width */
.docs-container.no-toc {
    grid-template-columns: 260px 1fr;
}

/* ===== Share button (mobile only) ===== */
.share-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    line-height: 1;
}
.share-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== Mobile menu button (hidden on desktop) ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    line-height: 1;
}
.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== Sidebar close button (mobile) ===== */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 201;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.sidebar-close-btn:hover {
    background: rgba(0,0,0,0.06);
    color: #334155;
}

/* ===== Sidebar overlay (mobile) ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.25s;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== Mobile desktop-recommendation banner ===== */
.mobile-desktop-banner {
    display: none; /* shown only on mobile via media query */
    position: sticky;
    top: 56px;
    z-index: 90;
}
.mdb-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #e8f4fd, #d1ecf9);
    border-bottom: 1px solid #b8daff;
}
.mdb-icon {
    font-size: 20px;
    color: #0056b3;
    flex-shrink: 0;
}
.mdb-text {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #2c3e50;
}
.mdb-text strong {
    display: block;
    font-size: 13px;
    margin-bottom: 1px;
}
.mdb-text span {
    color: #555;
    display: block;
}
.mdb-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    flex-shrink: 0;
    line-height: 1;
}
.mdb-close:hover {
    background: rgba(0,0,0,0.08);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .docs-container {
        grid-template-columns: 260px 1fr;
    }
    
    .docs-toc {
        display: none;
    }

    .docs-container.has-mockup-phone,
    .docs-container.has-mockup-dialog {
        grid-template-columns: 260px 1fr;
    }

    .docs-mockup-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Show hamburger */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        min-height: 40px;
        -webkit-tap-highlight-color: transparent;
    }

    /* Show desktop banner on mockup pages */
    .mobile-desktop-banner {
        display: block;
    }

    /* Steps overview: compact on mobile */
    .steps-overview {
        padding: 14px 12px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    .steps-overview-title {
        font-size: 13px;
        margin-bottom: 10px;
    }

    /* Grid collapses to single column */
    .docs-container {
        grid-template-columns: 1fr;
    }

    /* Show close button inside sidebar */
    .sidebar-close-btn {
        display: block;
    }

    /* Sidebar becomes a slide-over drawer */
    .docs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
        box-shadow: none;
        padding-top: 16px;
        background: #f8f9fa;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .docs-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    }

    /* Abbreviate logo text on mobile */
    .logo-text {
        font-size: 0 !important;
    }
    .logo-text::after {
        content: "Docs";
        font-size: 16px;
        font-weight: 600;
    }

    .docs-main {
        padding: 20px 16px;
    }

    .content-title {
        flex-direction: column;
        gap: 12px;
    }

    .content-title h1 {
        font-size: 26px;
    }

    .header-container {
        padding: 0 12px;
    }

    .search-container {
        width: 200px;
    }

    /* Show share button on mobile */
    .share-btn {
        display: block;
    }

    /* Back-to-site: hide text, keep icon */
    .back-to-site-text {
        display: none;
    }

    /* Images full-width on mobile */
    .content-body img,
    .content-body .doc-fig img,
    .content-body .doc-fig--wide img {
        max-width: 100%;
    }

    /* Nav footer stacks */
    .article-navigation .nav-buttons {
        flex-direction: column;
    }
    .article-navigation .nav-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .search-container {
        width: 150px;
    }
    
    .docs-main {
        padding: 16px 12px;
    }
    
    .content-title h1 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .content-description {
        font-size: 14px;
    }
    
    .content-actions .copy-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    /* Logo text shorter */
    .logo-text {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px;
    }

    .header-left {
        gap: 10px;
    }
}

/* Enhanced Search Results */
.search-result-item {
    padding: 16px;
    border-bottom: 1px solid #e1e5e9;
    text-decoration: none;
    color: #333;
    display: block;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.result-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin: 0;
}

.result-category {
    font-size: 11px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-snippet {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 8px;
}

.result-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.result-tag {
    font-size: 11px;
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

/* Article Navigation */
.article-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e1e5e9;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 300px;
}

.nav-btn:hover {
    background: #f5faff;
    border-color: #1a9bfc;
    color: #1a9bfc;
    transform: translateY(-1px);
}

.prev-btn {
    text-align: left;
}

.next-btn {
    text-align: right;
    margin-left: auto;
}

.nav-btn i {
    font-size: 16px;
    margin: 0 12px;
}

.nav-btn-content {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.nav-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

/* Single button layout */
.nav-buttons:has(.nav-btn:only-child) {
    justify-content: center;
}

.nav-buttons:has(.nav-btn:only-child) .nav-btn {
    max-width: 400px;
}

/* WhatsApp CTA Section */
.whatsapp-cta-section {
    margin: 40px 0;
    text-align: center;
}

.btn-whatsapp {
    background: #25d366 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background: #128c7e !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    text-decoration: none;
}

.btn-whatsapp i {
    font-size: 18px;
    margin-right: 8px;
}

/* Responsive WhatsApp CTA */
@media (max-width: 768px) {
    .whatsapp-cta-section {
        margin: 30px 0;
    }
    
    .btn-whatsapp {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
}

/* ===== Step Progress Overview (Conexão page) ===== */
.steps-overview {
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f4f8 100%);
    border: 1px solid #bde0fe;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.steps-overview-block {
    margin-bottom: 18px;
}

.steps-overview-block:last-child {
    margin-bottom: 0;
}

.steps-overview-head {
    font-size: 13px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.steps-overview-head .bi {
    font-size: 1.1rem;
    color: #4a6a8a;
}

.steps-overview-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #4a6a8a;
    line-height: 1.5;
}

.steps-overview-list li {
    margin-bottom: 4px;
}

.steps-overview-list li:last-child {
    margin-bottom: 0;
}

.steps-overview-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.steps-overview-title .bi {
    font-size: 1.1rem;
    color: #4a6a8a;
}

.steps-track {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #d0e6f7;
    border-radius: 20px;
    padding: 6px 14px 6px 8px;
    font-size: 13px;
    color: #4a6a8a;
    transition: all .2s ease;
    white-space: nowrap;
}

.step-pill .sp-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #007bff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-pill .sp-label {
    font-weight: 500;
}

.step-pill.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, .25);
}

.step-pill.active .sp-num {
    background: #fff;
    color: #007bff;
}

.step-pill.done {
    background: #d4edda;
    border-color: #a3d9b1;
    color: #155724;
}

.step-pill.done .sp-num {
    background: #28a745;
    color: #fff;
}

/* Step time badge */
.step-time {
    display: inline-block;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 12px;
    font-weight: 500;
}

/* "Ver na tela do celular" button */
.step-see-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    color: #0369a1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    font-family: inherit;
    margin: 8px 0 4px;
}
.step-see-btn:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(3,105,161,.12);
}
.step-see-btn i {
    font-size: 15px;
}
/* On desktop, sidebar auto-syncs so button is subtle */
@media (min-width: 1201px) {
    .step-see-btn {
        font-size: 12px;
        padding: 6px 12px;
        opacity: .7;
    }
    .step-see-btn:hover { opacity: 1; }
}

/* Docs page navigation footer */
.docs-nav-footer {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #e9ecef;
}

.docs-nav-footer a {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s ease;
}

.docs-nav-footer a:hover {
    background: #e9f5ff;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, .1);
}

.docs-nav-dir {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #007bff;
    margin-bottom: 4px;
}

.docs-nav-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.docs-nav-next {
    text-align: right;
}

@media (max-width: 600px) {
    .steps-track {
        gap: 4px;
    }
    .step-pill {
        padding: 5px 10px 5px 6px;
        font-size: 11px;
    }
    .step-pill .sp-num {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    .step-pill .sp-label {
        display: none;
    }
    .docs-nav-footer {
        flex-direction: column;
        gap: 10px;
    }
    .docs-nav-next {
        text-align: left;
    }
}

/* Extra small: content title and copy button */
/* ===== Docs Template Examples (WhatsApp previews) ===== */
.doc-template-examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0 28px;
}
.doc-template-example {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.doc-template-example .wa-template-simple {
    margin: 0 auto 8px;
    max-width: 280px;
    width: 100%;
}
.doc-template-legend {
    margin-top: 6px;
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
}
.doc-template-legend small {
    font-size: 12.5px;
    color: #6b7280;
}
.doc-template-examples--2col {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
    .doc-template-examples,
    .doc-template-examples--2col {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== Content-body overrides for WhatsApp template components ===== */
.content-body .wa-template-simple em,
.content-body .wa-message-bubble em,
.content-body .wa-msg-body em {
    display: inline;
    text-align: left;
    font-size: inherit;
    color: inherit;
    margin: 0;
}
.content-body .wa-template-simple strong,
.content-body .wa-message-bubble strong,
.content-body .wa-msg-body strong {
    color: #fff;
}
.content-body .wa-template-simple img {
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
    display: block;
}
.content-body .wa-template-simple p,
.content-body .wa-message-bubble p {
    margin-bottom: 0;
}
.content-body .wa-template-simple code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}
.content-body .doc-template-legend {
    margin-top: 6px;
}
.content-body .doc-template-legend em,
.content-body .doc-template-legend small {
    display: inline;
    text-align: left;
    margin: 0;
}

/* ===== Escritorio.ai Promo Banner ===== */
.eai-promo {
    display: block;
    border-radius: 14px;
    padding: 22px 24px;
    color: #fff;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    margin: 16px 0;
}
.eai-promo:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(67,56,202,.25);
}
.eai-promo-badge {
    display: inline-block;
    background: #6ee7b7;
    color: #064e3b;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.eai-promo-title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    color: #fff;
}
.eai-promo-desc {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,.7);
    margin: 0 0 12px;
}
.eai-promo-hl {
    color: #c4b5fd;
    font-weight: 600;
}
.eai-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #6ee7b7;
    transition: gap .15s;
}
.eai-promo:hover .eai-promo-cta {
    gap: 10px;
}
@media (max-width: 480px) {
    .eai-promo {
        padding: 18px 16px;
    }
    .eai-promo-title {
        font-size: 15px;
    }
}

/* ===== Meta External Link ===== */
.meta-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0064e1;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
    white-space: nowrap;
}
.meta-link:hover {
    color: #0051b8;
    text-decoration: underline;
}
.meta-link .meta-link-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}
.meta-link .meta-link-ext {
    font-size: 9px;
    color: #94a3b8;
    margin-left: 1px;
    flex-shrink: 0;
    vertical-align: middle;
}
/* Inline in markdown paragraphs */
.content-body p .meta-link,
.content-body li .meta-link,
.content-body td .meta-link {
    vertical-align: baseline;
}
.content-body td .meta-link .meta-link-icon {
    width: 14px;
    height: 14px;
}

/* ===== WhatsApp Template Preview (from component) ===== */
.wa-template-simple {
    max-width: 320px;
    margin: 16px 0;
    text-align: left;
}
.wa-template-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.wa-category-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.wa-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}
.wa-message-bubble {
    background: #005c4b;
    border-radius: 8px;
    border-top-right-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.wa-msg-header-image { width: 100%; max-height: 150px; overflow: hidden; }
.wa-msg-header-image img { width: 100%; height: auto; display: block; }
.wa-msg-header-text {
    padding: 10px 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #e9edef;
    text-align: left;
}
.wa-msg-body {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #e9edef;
    text-align: left;
}
.wa-msg-body strong { font-weight: 600; color: #fff !important; }
.wa-msg-body em { font-style: italic; }
.wa-msg-body del { text-decoration: line-through; opacity: .8; }
.wa-msg-body .wa-var,
.wa-msg-body strong .wa-var,
.wa-msg-body em .wa-var {
    color: #7dd3fc !important;
    font-weight: 500;
}
.wa-msg-footer {
    padding: 0 12px 4px;
    font-size: 12px;
    color: #8696a0;
    text-align: left;
}
.wa-msg-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    padding: 0 8px 6px;
}
.wa-msg-time { font-size: 11px; color: rgba(255,255,255,.6); }
.wa-msg-check { opacity: .9; }
.wa-msg-buttons { border-top: 1px solid rgba(255,255,255,.1); }
.wa-msg-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    color: #53bdeb;
    font-size: 14px;
    font-weight: 500;
    border-top: 1px solid rgba(255,255,255,.1);
    cursor: pointer;
    transition: background .2s;
}
.wa-msg-button:first-child { border-top: none; }
.wa-msg-button:hover { background: rgba(255,255,255,.05); }

/* Template in docs grid override */
.doc-template-example .wa-template-simple {
    margin: 0 auto 8px;
    max-width: 280px;
    width: 100%;
}

/* Modal */
.wa-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; opacity: 0; visibility: hidden;
    transition: all .3s ease; backdrop-filter: blur(4px);
}
.wa-modal-overlay.active { opacity: 1; visibility: visible; }
.wa-modal {
    background: #fff; border-radius: 16px; padding: 2rem;
    max-width: 400px; width: 90%; text-align: center; position: relative;
    transform: scale(.9) translateY(20px); transition: transform .3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.wa-modal-overlay.active .wa-modal { transform: scale(1) translateY(0); }
.wa-modal-close {
    position: absolute; top: 12px; right: 12px;
    background: #f1f5f9; border: none; width: 32px; height: 32px;
    border-radius: 50%; font-size: 20px; cursor: pointer; color: #64748b;
    transition: all .2s; display: flex; align-items: center; justify-content: center;
}
.wa-modal-close:hover { background: #e2e8f0; color: #1e293b; }
.wa-modal-icon { margin-bottom: 1rem; }
.wa-modal-title { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin-bottom: 1rem; }
.wa-modal-text { font-size: 1rem; color: #475569; line-height: 1.6; margin-bottom: .75rem; }
.wa-modal-text strong { color: #1e293b; }
.wa-modal-btn-entendi {
    margin-top: 1rem; padding: 10px 32px; background: #25D366;
    color: #fff; border: none; border-radius: 8px;
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .2s;
}
.wa-modal-btn-entendi:hover { background: #128C7E; }
@media (max-width: 480px) {
    .wa-modal { padding: 1.5rem; margin: 1rem; }
    .wa-modal-title { font-size: 1.25rem; }
    .wa-modal-text { font-size: .9rem; }
}

/* ===== Doc How-To Box ===== */
.doc-how-to {
    display: flex;
    gap: 20px;
    margin: 24px 0;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.doc-how-to-content {
    flex: 1;
}
.doc-how-to-content h5 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.doc-how-to-content h5 i { color: #f59e0b; }
.doc-how-to-content ol {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: #475569;
}
.doc-how-to-content ol li { margin-bottom: 6px; }
.doc-how-to-aside {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    min-width: 200px;
    max-width: 240px;
    font-size: 13px;
    color: #1e40af;
    align-self: flex-start;
}
.doc-how-to-aside i { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.doc-how-to-aside strong { display: block; font-size: 14px; margin-bottom: 2px; }
.doc-how-to-aside span { color: #3b82f6; font-size: 12px; }
@media (max-width: 768px) {
    .doc-how-to { flex-direction: column; }
    .doc-how-to-aside { max-width: 100%; min-width: 0; }
}

/* ===== Connection options (coexistencia) ===== */
.connection-options {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 16px 0 8px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.conn-option {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
}
.conn-option-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.conn-option-body strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 4px;
}
.conn-option-body p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.conn-option-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    position: relative;
}
.conn-option-divider::before {
    content: '';
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 50%;
    width: 1px;
    background: #e2e8f0;
}
.conn-option-divider span {
    position: relative;
    z-index: 1;
    background: #fff;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 0;
}
@media (max-width: 768px) {
    .connection-options { flex-direction: column; }
    .conn-option-divider {
        padding: 0;
        height: auto;
    }
    .conn-option-divider::before {
        top: 50%;
        bottom: auto;
        left: 16px;
        right: 16px;
        width: auto;
        height: 1px;
    }
    .conn-option-divider span {
        padding: 0 8px;
    }
}

/* =============================================================
   DOCS DESIGN SYSTEM  -  Bootstrap Coexistence & Component Overrides
   =============================================================
   Design tokens derived from the docs native design language.
   These overrides restyle Bootstrap components to look native
   when used inside .content-body (e.g. FAQ, tutorials).

   Tokens:
     --ds-text:       #334155    body text
     --ds-heading:    #1e293b    headings
     --ds-muted:      #64748b    secondary text
     --ds-border:     #e2e8f0    borders
     --ds-border-lt:  #f1f5f9    subtle borders
     --ds-bg:         #f8fafc    subtle backgrounds
     --ds-bg-alt:     #fff       cards / elevated
     --ds-radius-sm:  6px
     --ds-radius:     10px
     --ds-radius-lg:  12px
     --ds-shadow-sm:  0 1px 4px rgba(0,0,0,.04)
     --ds-shadow:     0 2px 12px rgba(0,0,0,.08)
     --ds-accent:     #2563eb    primary blue
     --ds-accent-dk:  #1d4ed8    dark blue
     --ds-success:    #16a34a
     --ds-warning:    #f59e0b
     --ds-danger:     #dc2626
   ============================================================= */

/* --- Layout resets --- */
.docs-main .container { max-width: 100%; padding: 0; }
.content-body [class*="faq-section"] { padding-top: 0 !important; padding-bottom: 0 !important; }
.content-body [class*="faq-section"] .text-center.mb-5 { margin-bottom: 1.5rem !important; }

/* FAQ full-width inside docs  -  override the narrow col-xl-8 constraint */
.content-body [class*="faq-section"] .row.justify-content-center { justify-content: stretch !important; }
.content-body [class*="faq-section"] .col-lg-10,
.content-body [class*="faq-section"] .col-xl-8 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* --- Accordion (Bootstrap → Docs) --- */
.content-body .accordion-header,
.content-body .accordion-header h3 {
    margin: 0; padding: 0;
    border: none; border-bottom: none;
    font-size: inherit;
}
.content-body .accordion-item {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: border-color .2s, box-shadow .2s;
}
.content-body .accordion-item:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.content-body .accordion-button {
    background: #fff !important;
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    line-height: 1.5;
    box-shadow: none !important;
}
.content-body .accordion-button:hover { background: #f8fafc !important; }
.content-body .accordion-button:not(.collapsed) {
    background: #f8fafc !important;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0 !important;
}
.content-body .accordion-button:focus { outline: none; box-shadow: none !important; }
.content-body .accordion-button::after { display: none !important; }
.content-body .accordion-icon {
    transition: transform .2s;
    font-size: 14px;
    color: #94a3b8;
    flex-shrink: 0;
    margin-left: auto;
}
.content-body .accordion-button:not(.collapsed) .accordion-icon {
    transform: rotate(180deg);
    color: #64748b;
}
.content-body .accordion-body {
    padding: 20px;
    color: #334155;
    line-height: 1.7;
    font-size: 14px;
    background: #fff;
}
.content-body .accordion-body p { margin-bottom: 12px; color: #334155; }
.content-body .accordion-body p:last-child { margin-bottom: 0; }
.content-body .accordion-body strong { color: #1e293b; font-weight: 600; }
.content-body .accordion-body ul,
.content-body .accordion-body ol { padding-left: 20px; margin-bottom: 12px; color: #334155; }
.content-body .accordion-body li { margin-bottom: 6px; }

/* --- Links inside accordion --- */
.content-body .accordion-body a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(37,99,235,.2);
    transition: color .15s, border-color .15s;
}
.content-body .accordion-body a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}
.content-body .accordion-body a.btn { border-bottom: none; }

/* --- Alerts → Docs Callouts --- */
.content-body .alert,
.content-body [class*="alert-"] {
    position: relative;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 3px solid #cbd5e1 !important;
    border-radius: 0 10px 10px 0 !important;
    padding: 14px 16px !important;
    margin-bottom: 16px !important;
    color: #334155 !important;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: none;
}
/* Callout accent by type */
.content-body .alert-info    { border-left-color: #3b82f6 !important; }
.content-body .alert-warning { border-left-color: #f59e0b !important; }
.content-body .alert-success { border-left-color: #16a34a !important; }
.content-body .alert-danger  { border-left-color: #dc2626 !important; }
.content-body .alert-light   { border-left-color: #94a3b8 !important; }

.content-body .alert strong { color: #1e293b !important; }
.content-body .alert i,
.content-body .alert .bi { color: #64748b !important; }
.content-body .alert p { margin-bottom: 8px; }
.content-body .alert p:last-child { margin-bottom: 0; }

/* --- Buttons → Docs style --- */
.content-body .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    text-decoration: none;
    cursor: pointer;
    transition: all .15s;
    border-bottom: none;
    white-space: nowrap;
}
.content-body .btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.content-body .btn i,
.content-body .btn .bi { font-size: 14px; color: inherit; }

/* Button variants */
.content-body .btn-primary {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
}
.content-body .btn-primary:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}
.content-body .btn-success {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
}
.content-body .btn-success:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}
.content-body .btn-outline-primary {
    background: transparent;
    border-color: #e2e8f0;
    color: #334155;
}
.content-body .btn-outline-primary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}
.content-body .btn-outline-secondary {
    background: transparent;
    border-color: #e2e8f0;
    color: #64748b;
}
.content-body .btn-outline-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}
.content-body .btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.content-body .btn-lg { padding: 10px 18px; font-size: 14px; }

/* --- Badges → Docs style --- */
.content-body .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
}
.content-body .badge.bg-primary {
    background: #1e293b !important;
    color: #fff !important;
    border-color: #1e293b !important;
}

/* --- Step Cards → Docs style --- */
.content-body .step,
.content-body .tutorial-steps .step {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 3px solid #cbd5e1 !important;
    border-top: none !important;
    border-radius: 0 10px 10px 0 !important;
    padding: 16px !important;
    margin-bottom: 16px;
}
.content-body .step h5,
.content-body .step h6 {
    color: #1e293b !important;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    border: none;
    padding: 0;
}

/* Steps with inline badge + heading */
.content-body .step .d-flex { gap: 10px; }

/* Step cards in horizontal grid (col-md-4 layout) */
.content-body .row .step {
    border-left: 1px solid #e2e8f0 !important;
    border-top: 3px solid #94a3b8 !important;
    border-radius: 10px !important;
}

/* --- Images → Docs style --- */
.content-body .accordion-body img,
.content-body .img-fluid {
    max-width: 100%;
    max-height: 360px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.content-body .accordion-body img.tutorial-screenshot,
.content-body .accordion-body img.rounded,
.content-body .accordion-body .step img {
    max-height: 360px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}
.content-body .accordion-body img.tutorial-screenshot:hover,
.content-body .accordion-body img.rounded:hover,
.content-body .accordion-body .step img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

/* --- Info cards (p-3 rounded with border) → Docs style --- */
.content-body .accordion-body .rounded[style*="border:"],
.content-body .accordion-body .p-3[style*="border:"],
.content-body .accordion-body div[style*="border: 1px solid"] {
    border-color: #e2e8f0 !important;
    border-radius: 10px !important;
    background: #fff !important;
}

/* Status indicators (verified/pending/not verified) */
.content-body .accordion-body div[style*="background: #d1e7dd"],
.content-body .accordion-body div[style*="background: #fff3cd"],
.content-body .accordion-body div[style*="background: #f8d7da"] {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 12px !important;
}
.content-body .accordion-body div[style*="background: #d1e7dd"] {
    background: #f0fdf4 !important;
    border-left: 3px solid #16a34a !important;
}
.content-body .accordion-body div[style*="background: #fff3cd"] {
    background: #fffbeb !important;
    border-left: 3px solid #f59e0b !important;
}
.content-body .accordion-body div[style*="background: #f8d7da"] {
    background: #fef2f2 !important;
    border-left: 3px solid #dc2626 !important;
}

/* --- Neutralize Bootstrap text-color utilities --- */
.content-body .text-success { color: #16a34a !important; }
.content-body .text-danger  { color: #dc2626 !important; }
.content-body .text-warning { color: #d97706 !important; }
.content-body .text-primary { color: #2563eb !important; }
.content-body .text-info    { color: #0284c7 !important; }
.content-body .text-muted   { color: #64748b !important; }

/* Neutralize colored borders */
.content-body [style*="border-left: 4px solid"],
.content-body [style*="border-left: 3px solid"],
.content-body [style*="border-top: 3px solid"] {
    border-left-color: #94a3b8 !important;
    border-top-color: #94a3b8 !important;
}
.content-body .border-warning { border-color: #f59e0b !important; }
.content-body .border-primary { border-color: #3b82f6 !important; }
.content-body .border-success { border-color: #16a34a !important; }
.content-body .border-danger  { border-color: #dc2626 !important; }

/* Step cards with colored border-left override → use accent */
.content-body [style*="border-left: 4px solid #244175"] {
    border-left-color: #334155 !important;
}
.content-body [style*="border-top: 3px solid #244175"] {
    border-top-color: #334155 !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .content-body .accordion-button { padding: 14px 16px; font-size: 14px; }
    .content-body .accordion-body { padding: 16px; font-size: 13px; }
    .content-body .accordion-item { margin-bottom: 10px; }
    .content-body .step { padding: 14px !important; }
    .content-body .row .step { border-top-width: 2px !important; }
}
@media (max-width: 576px) {
    .content-body .accordion-button { padding: 12px 14px; font-size: 13px; }
    .content-body .accordion-body { padding: 14px; font-size: 13px; }
    .content-body .btn { font-size: 12px; padding: 6px 10px; }
    .content-body .d-flex.flex-wrap.gap-2 { flex-direction: column; }
    .content-body .d-flex.flex-wrap.gap-2 .btn { width: 100%; justify-content: center; }
}

/* ===== Image Lightbox Modal ===== */
#docs-img-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
#docs-img-modal.active { display: flex; }
#docs-img-modal .dim-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85);
}
#docs-img-modal .dim-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#docs-img-modal .dim-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
#docs-img-modal .dim-cap {
    color: #fff;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    opacity: .85;
}
#docs-img-modal .dim-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    line-height: 1;
}
#docs-img-modal .dim-close:hover { background: rgba(255,255,255,.25); }

/* ===== WhatsApp phone mockup – smart states (Docs embedding) ===== */
.wa-mockup--frozen .phone {
    pointer-events: none;
    user-select: none;
}
.wa-mockup--frozen .app-a,
.wa-mockup--frozen .app-i {
    pointer-events: none;
}

/* =============================================================
   Embedded Signup Errors - Problemas page
   Scoped under .content-body to beat generic typography rules.
   ============================================================= */

/* Hero intro */
.content-body .es-hero{display:flex;align-items:flex-start;gap:14px;padding:16px 18px;background:linear-gradient(135deg,#f0f7ff 0%,#e7f3ff 100%);border:1px solid #d0e3f7;border-radius:10px;margin-bottom:12px}
.content-body .es-hero-icon{width:36px;height:36px;border-radius:10px;background:#1877f2;color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.content-body .es-hero-text{flex:1;min-width:0}
.content-body .es-lead{font-size:14.5px;line-height:1.55;color:#1c1e21;margin:0 0 4px;font-weight:500}
.content-body .es-ctx{font-size:13px;color:#65676b;margin:0;line-height:1.5}
.content-body .es-ctx strong{color:#1c1e21}

/* Context note */
.content-body .es-ctx-note{font-size:13px;color:#65676b;line-height:1.55;margin:0 0 24px;padding:0}
.content-body .es-ctx-note i{color:#8a8d91;font-size:13px;margin-right:4px}
.content-body .es-ctx-note strong{color:#1c1e21;font-weight:600}
.content-body .es-ctx-note a{color:#1877f2;text-decoration:none;font-weight:600;border-bottom:none}
.content-body .es-ctx-note a:hover{text-decoration:underline}

/* Section headings - override .content-body h2 */
.content-body h2.es-h2{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;color:#1c1e21;margin:28px 0 6px;padding:8px 12px;border:1px solid transparent;border-bottom:1px solid transparent;border-radius:8px;transition:all .15s;cursor:pointer;user-select:none}
.content-body h2.es-h2:hover{background:#f5f8ff;border-color:#e4e6eb}
.content-body h2.es-h2.es-h2--active{background:#e7f3ff;border-color:#bdd8f5;box-shadow:inset 3px 0 0 #1877f2}
.content-body h2.es-h2:first-of-type{margin-top:0}
.content-body .es-step-num{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#e4e6eb;color:#65676b;font-size:12px;font-weight:700;flex-shrink:0;transition:background .15s,color .15s}
.content-body h2.es-h2.es-h2--active .es-step-num{background:#1877f2;color:#fff}
.content-body .es-desc{font-size:12.5px;color:#8a8d91;margin:0 0 10px;padding-left:12px}

/* Section divider headings - override .content-body h2 */
.content-body h2.es-section-divider{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:700;color:#1c1e21;margin:0 0 8px;padding:0;border-bottom:none}
.content-body h2.es-section-divider i{color:#1877f2;font-size:18px}

/* Error list */
.content-body .es-list{display:flex;flex-direction:column;gap:0;margin:0 0 24px;border:1px solid #e4e6eb;border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.04)}

/* Individual error item */
.content-body .es-item{padding:14px 16px;border-bottom:1px solid #f0f2f5;transition:background .12s,border-color .12s;cursor:pointer;position:relative}
.content-body .es-item:last-child{border-bottom:none}
.content-body .es-item:hover{background:#f5f8ff}
.content-body .es-item--selected{background:rgba(228,66,63,.08)!important;border-left:3px solid #e4423f}
.content-body .es-item--selected .es-error i{color:#e4423f!important}

/* Error message line */
.content-body .es-error{display:flex;align-items:flex-start;gap:8px;font-size:13.5px;color:#1c1e21;line-height:1.5;margin-bottom:6px;font-weight:500}
.content-body .es-error i{flex-shrink:0;margin-top:2px;font-size:14px;color:#e4423f}
.content-body .es-item--ok .es-error i{color:#42b72a}

/* Fix/solution line */
.content-body .es-fix{font-size:13px;color:#65676b;line-height:1.55;padding-left:22px;position:relative}
.content-body .es-fix::before{content:'\21B3';position:absolute;left:6px;top:0;color:#bec3c9;font-size:12px}
.content-body .es-fix a{color:#1877f2;text-decoration:none;border-bottom:none}
.content-body .es-fix a:hover{text-decoration:underline;border-bottom:none}
.content-body .es-fix strong{color:#1c1e21;font-weight:600}
.content-body .es-fix ol{margin:4px 0 0;padding-left:18px}
.content-body .es-fix ol li{margin-bottom:2px}
.content-body .es-item--ok .es-fix{color:#2d8e1e}
.content-body .es-item--ok .es-fix::before{color:#42b72a}
.content-body .es-item--ok .es-fix strong{color:#15803d}

/* Common/frequent badge */
.content-body .es-item--common{background:#fffbeb;border-left:3px solid #f59e0b;border-bottom-color:#fef3c7}
.content-body .es-badge{display:inline-block;font-size:10px;font-weight:700;color:#92400e;background:#fef3c7;padding:2px 8px;border-radius:4px;margin-bottom:6px;text-transform:uppercase;letter-spacing:.3px}

/* Inline FAQ callout */
.content-body .es-faq{margin-top:8px;padding:8px 10px;background:#f5f6f7;border-radius:6px;font-size:12.5px;line-height:1.5}
.content-body .es-faq strong{display:flex;align-items:center;gap:4px;color:#1c1e21;font-weight:600;font-size:12.5px;margin-bottom:2px}
.content-body .es-faq strong i{font-size:12px;color:#8a8d91}
.content-body .es-faq span{display:block;color:#65676b;font-size:12px}

/* Detail link */
.content-body .es-detail-link{display:inline-flex;align-items:center;gap:4px;margin-top:6px;font-size:12.5px;font-weight:600;color:#1877f2;border-bottom:none;transition:gap .15s}
.content-body .es-detail-link:hover{gap:6px;border-bottom:none}

/* Divider */
.content-body hr.es-hr{border:none;border-top:1px solid #e4e6eb;margin:28px 0}

/* Summary section */
.content-body .es-steps-summary{margin:12px 0 16px;border:1px solid #e4e6eb;border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.content-body .es-ss{display:flex;align-items:center;gap:10px;font-size:13px;color:#1c1e21;padding:10px 14px;border-bottom:1px solid #f0f2f5}
.content-body .es-ss:last-child{border-bottom:none}
.content-body .es-ss-n{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#e4e6eb;color:#1c1e21;font-size:11px;font-weight:700;flex-shrink:0}
.content-body .es-ss a{color:#1877f2;text-decoration:none;font-weight:600;border-bottom:none}
.content-body .es-ss a:hover{text-decoration:underline}

/* Tip box */
.content-body .es-tip{display:flex;align-items:flex-start;gap:10px;background:#f0f7ff;border:1px solid #d0e3f7;border-radius:10px;padding:12px 16px;font-size:13px;color:#1c1e21;line-height:1.55}
.content-body .es-tip i{color:#1877f2;font-size:16px;flex-shrink:0;margin-top:1px}
.content-body .es-tip a{color:#1877f2;border-bottom:none}
.content-body .es-tip a:hover{text-decoration:underline}

/* ===== Post-connection problem cards ===== */
.content-body .pc-card{border:1px solid #e4e6eb;border-radius:10px;background:#fff;margin-bottom:12px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.content-body .pc-header{display:flex;align-items:flex-start;gap:10px;padding:14px 16px 0;margin-bottom:4px}
.content-body .pc-header h3{font-size:14px;font-weight:600;color:#1c1e21;margin:0 0 2px;line-height:1.4}
.content-body .pc-quote{font-size:12.5px;color:#65676b;margin:0;font-style:italic;line-height:1.45}
.content-body .pc-icon-warn{color:#e4423f;font-size:16px;flex-shrink:0;margin-top:1px}
.content-body .pc-icon-info{color:#1877f2;font-size:16px;flex-shrink:0;margin-top:1px}
.content-body .pc-body{padding:10px 16px 14px;font-size:13px;color:#1c1e21;line-height:1.6}
.content-body .pc-body p{margin:0 0 6px}
.content-body .pc-body ul,.content-body .pc-body ol{margin:4px 0 0;padding-left:20px}
.content-body .pc-body li{margin-bottom:3px}
.content-body .pc-body strong{color:#1c1e21;font-weight:600}
.content-body .pc-body li > i.bi{color:inherit}
.content-body .pc-table{width:100%;border-collapse:collapse;font-size:13px;margin-top:4px;border-radius:0;box-shadow:none;border-spacing:0}
.content-body .pc-table th{text-align:left;padding:8px 10px;background:#f5f6f7;color:#65676b;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;border-bottom:1px solid #e4e6eb;white-space:normal}
.content-body .pc-table td{padding:8px 10px;border-bottom:1px solid #f0f2f5;color:#1c1e21}
.content-body .pc-table tr:last-child td{border-bottom:none}
.content-body .pc-warn{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;background:#fff8e6;border:1px solid #ffe69c;border-radius:8px;margin-top:10px;font-size:12.5px;color:#92400e;line-height:1.5}
.content-body .pc-warn i{color:#f59e0b;font-size:14px;flex-shrink:0;margin-top:1px}

@media (max-width: 768px) {
    .content-body .es-hero{flex-direction:column;gap:10px;padding:14px}
    .content-body .es-ctx-bar{flex-direction:column;align-items:flex-start}
    .content-body .es-ctx-sep{display:none}
    .content-body .es-error{font-size:13px}
    .content-body .es-fix{font-size:12.5px;padding-left:0}
    .content-body .es-fix::before{display:none}
    .content-body .pc-header{flex-direction:column;gap:6px}
    .content-body .pc-body{padding:8px 14px 12px}
}

/* =============================================================
   WhatsApp Chat Simulator - Simulacao page
   Scoped under .content-body to beat generic typography rules.
   ============================================================= */

/* Phone shell */
.content-body .ws-phone{max-width:380px;margin:0 auto;border-radius:24px;overflow:hidden;box-shadow:0 8px 40px rgba(0,0,0,.18);border:2px solid #222;background:#0b141a;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}

/* Status bar */
.content-body .ws-statusbar{display:flex;justify-content:space-between;align-items:center;padding:6px 20px 4px;background:#0b141a;color:#fff;font-size:12px;font-weight:600}
.content-body .ws-statusbar-right{display:flex;gap:5px;font-size:13px}

/* Header */
.content-body .ws-header{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#1f2c34;color:#fff}
.content-body .ws-back{font-size:18px;cursor:pointer}
.content-body .ws-avatar{width:36px;height:36px;border-radius:50%;overflow:hidden;background:#25d366;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.content-body .ws-avatar img{width:100%;height:100%;object-fit:cover;max-width:none;border-radius:0;margin:0;box-shadow:none;display:inline}
.content-body .ws-contact{flex:1;line-height:1.3}
.content-body .ws-contact strong{font-size:14px;display:block}
.content-body .ws-status{font-size:11px;color:#8696a0}
.content-body .ws-header-icons{display:flex;gap:16px;font-size:18px;color:#8696a0}

/* Chat area */
.content-body .ws-chat{background:#0b141a url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" opacity="0.03"><pattern id="p" patternUnits="userSpaceOnUse" width="50" height="50"><rect width="50" height="50" fill="none"/><circle cx="25" cy="25" r="1.5" fill="white"/></pattern><rect fill="url(%23p)" width="300" height="300"/></svg>');min-height:420px;max-height:420px;overflow-y:auto;padding:12px 14px;display:flex;flex-direction:column;gap:4px;scroll-behavior:smooth}
.content-body .ws-date-badge{align-self:center;background:#1d2b36;color:#8696a0;font-size:11px;padding:4px 12px;border-radius:6px;margin-bottom:6px}

/* Messages */
.content-body .ws-msg{max-width:82%;padding:6px 10px;border-radius:8px;font-size:13px;line-height:1.45;position:relative;animation:wsIn .25s ease}
@keyframes wsIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.content-body .ws-msg-bot{background:#1f2c34;color:#e9edef;align-self:flex-start;border-top-left-radius:0}
.content-body .ws-msg-user{background:#005c4b;color:#e9edef;align-self:flex-end;border-top-right-radius:0}
.content-body .ws-msg-human{background:#1a3a2a;color:#e9edef;align-self:flex-start;border-top-left-radius:0;border-left:3px solid #25d366}
.content-body .ws-msg-time{font-size:10px;color:#8696a0;text-align:right;margin-top:3px;display:flex;align-items:center;justify-content:flex-end;gap:3px}
.content-body .ws-msg-time .bi{font-size:12px;color:#53bdeb}

/* Typing indicator */
.content-body .ws-typing{display:flex;gap:4px;padding:10px 14px;align-self:flex-start}
.content-body .ws-typing span{width:7px;height:7px;border-radius:50%;background:#8696a0;animation:wsDot 1.4s infinite}
.content-body .ws-typing span:nth-child(2){animation-delay:.2s}
.content-body .ws-typing span:nth-child(3){animation-delay:.4s}
@keyframes wsDot{0%,60%,100%{opacity:.3;transform:scale(.8)}30%{opacity:1;transform:scale(1)}}

/* Quick reply chips */
.content-body .ws-chips{display:flex;flex-wrap:wrap;gap:6px;padding:8px 14px;background:#1f2c34;border-top:1px solid #2a3942;min-height:0}
.content-body .ws-chip{padding:6px 14px;border-radius:18px;background:transparent;border:1px solid #00a884;color:#00a884;font-size:12.5px;font-weight:500;cursor:pointer;transition:all .15s;white-space:nowrap}
.content-body .ws-chip:hover{background:#00a884;color:#fff}

/* Input bar */
.content-body .ws-input-bar{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#1f2c34}
.content-body .ws-input-bar>i{font-size:20px;color:#8696a0}
.content-body .ws-input{flex:1;padding:8px 12px;border-radius:20px;background:#2a3942;color:#8696a0;font-size:13px;border:none;outline:none;min-height:20px}
.content-body .ws-send-btn{width:36px;height:36px;border-radius:50%;background:#00a884;color:#fff;border:none;display:flex;align-items:center;justify-content:center;font-size:15px;cursor:pointer;transition:background .15s}
.content-body .ws-send-btn:hover{background:#00c49a}
.content-body .ws-send-btn:disabled{background:#2a3942;color:#8696a0;cursor:default}

/* Legend */
.content-body .ws-legend{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;margin-top:16px;font-size:12px;color:#5f6368}
.content-body .ws-legend-dot{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:4px}
.content-body .ws-legend-bot{background:#1f2c34;border:1px solid #2a3942}
.content-body .ws-legend-user{background:#005c4b}
.content-body .ws-legend-human{background:#1a3a2a;border-left:2px solid #25d366}

/* Explain cards */
.content-body .ws-explain{display:grid;gap:12px;margin-top:16px}
.content-body .ws-explain-card{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;background:#f8f9fa;border-radius:8px;border:1px solid #e9ecef}
.content-body .ws-explain-card p{margin:4px 0 0;font-size:13px;color:#5f6368}
.content-body .ws-explain-num{width:30px;height:30px;border-radius:50%;background:#25d366;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;flex-shrink:0}