/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px; /* Espaço para navbar fixo */
}

/* Hero de páginas internas — encosta no navbar (padrão profissionais) */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: -80px;
    padding-top: calc(80px + 3rem);
    padding-bottom: 3rem;
    color: #fff;
}

.page-hero .lead,
.page-hero h1,
.page-hero h2,
.page-hero p {
    color: inherit;
}

/* Primeira section sem gradiente (páginas sem page-hero acima) */
.page-section-first {
    margin-top: -80px;
    padding-top: calc(80px + 3rem);
    padding-bottom: 3rem;
}

/* Após page-hero, não sobrepor o gradiente */
.page-hero + section,
.page-hero + .page-section-first {
    margin-top: 0;
    padding-top: 3rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: calc(100vh - 80px); /* Subtrair altura do navbar */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: -80px; /* Compensar padding-top do body */
    padding-top: 80px; /* Restaurar espaço interno */
    z-index: 1; /* Garantir que fique abaixo do navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-row {
    min-height: calc(100vh - 80px);
    padding: 1.5rem 0 2.5rem;
}

.hero-eyebrow {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.92;
}

.hero-lead {
    max-width: 34rem;
}

.hero-highlights {
    margin-top: 1.25rem;
    margin-bottom: 1.75rem;
    padding-top: 0.25rem;
}

.hero-highlights li + li {
    margin-top: 0.45rem;
}

.hero-app-showcase {
    position: relative;
    display: inline-block;
    max-width: min(440px, 92vw);
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

.hero-app-glow {
    position: absolute;
    inset: 8% 0 0;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 68%);
    border-radius: 50%;
    filter: blur(18px);
    z-index: 0;
    pointer-events: none;
}

.hero-app-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: 28px;
    box-shadow:
        0 28px 55px rgba(35, 25, 75, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-app-caption {
    position: absolute;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    z-index: 2;
    margin: 0;
    white-space: nowrap;
}

.hero-app-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #5a67a8;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-stores-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
}

.hero-app-pills {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.hero-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem 0.55rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #fff;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero-store-badge:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    transform: translateY(-1px);
}

.hero-store-badge--static {
    cursor: default;
}

.hero-store-badge__icon {
    font-size: 1.65rem;
    line-height: 1;
}

.hero-store-badge__text {
    text-align: left;
    line-height: 1.15;
}

.hero-store-badge__text small {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-store-badge__text strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

/* Página do paciente */
.paciente-hero-img {
    max-width: min(320px, 85vw);
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.paciente-feature-card {
    border-radius: 16px;
}

.paciente-feature-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.15));
    color: #667eea;
    font-size: 1.25rem;
}

.paciente-steps li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

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

.paciente-step-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.paciente-store-btn {
    display: inline-flex;
    align-items: center;
    text-align: left;
    border-radius: 12px;
}

.paciente-store-btn span small {
    font-size: 0.7rem;
    font-weight: 500;
}

.paciente-security {
    background: linear-gradient(180deg, #f8f9fc 0%, #fff 100%);
}

.paciente-security-card {
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.12);
}

.paciente-security-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.15));
    color: #5a67a8;
    font-size: 0.85rem;
    font-weight: 600;
}

.paciente-security-item {
    padding: 1.25rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(102, 126, 234, 0.1);
    height: 100%;
}

.paciente-security-item__icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Botões */
.btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Botões e badges — cards de profissionais */
.profissional-card .btn-sostag-outline {
    border: 2px solid #667eea;
    color: #667eea;
    background-color: #fff;
}

.profissional-card .btn-sostag-outline:hover,
.profissional-card .btn-sostag-outline:focus {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.profissional-card .badge-sostag {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 500;
    border: none;
}

.profissional-card .badge-sostag-success {
    background-color: rgba(102, 126, 234, 0.12);
    color: #5a67a8;
    border: 1px solid rgba(102, 126, 234, 0.35);
    font-weight: 500;
}

.profissional-card .badge-valor {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 1px solid rgba(102, 126, 234, 0.2);
    font-weight: 500;
    padding: 0.5em 0.85em;
    border-radius: 25px;
}

.profissionais-busca-input {
    --profissionais-busca-border: rgba(102, 126, 234, 0.4);
    border: 1px solid var(--profissionais-busca-border);
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profissionais-busca-input:focus-within {
    --profissionais-busca-border: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.12), 0 0 0 0.2rem rgba(102, 126, 234, 0.18);
}

.profissionais-busca-input .input-group-text {
    background: transparent;
    color: #667eea;
    border: 0;
    padding-left: 1.15rem;
    padding-right: 0.5rem;
}

.profissionais-busca-input .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding-left: 0;
}

.profissionais-busca-input .form-control:focus {
    border: 0;
    box-shadow: none;
    outline: none;
}

.profissionais-busca-input .profissionais-busca-btn {
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0;
    margin: 0;
    padding-left: 1.25rem;
    padding-right: 1.35rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: none;
}

.profissionais-busca-input .profissionais-busca-btn:hover,
.profissionais-busca-input .profissionais-busca-btn:focus {
    transform: none;
    box-shadow: none;
}

/* Estatísticas */
.stat-item {
    padding: 2rem 1rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 80px; /* Altura fixa para consistência */
    z-index: 1030; /* Garantir que fique acima de outros elementos */
}

.navbar-brand {
    font-size: 1.5rem;
    transition: color 0.3s ease;
    color: #9B7BC7 !important; /* Lilás azulado para a logo */
    line-height: 1.2;
}

.site-logo-link {
    padding: 0;
    margin: 0;
    color: inherit !important;
    line-height: 1;
}

.site-logo-link:hover,
.site-logo-link:focus {
    color: inherit !important;
}

.site-logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: min(220px, 58vw);
    object-fit: contain;
    opacity: 0.82;
    filter: saturate(0.72) contrast(0.94) brightness(1.03);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.site-logo-link:hover .site-logo,
.site-logo-link:focus .site-logo {
    opacity: 0.9;
    filter: saturate(0.8) contrast(0.96) brightness(1.03);
}

.footer-logo-wrap {
    display: inline-block;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 12px;
    padding: 8px 12px;
    line-height: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.footer-logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    opacity: 0.84;
    filter: saturate(0.72) contrast(0.94) brightness(1.03);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #9B7BC7 !important;
}

/* Garantir consistência do navbar em todas as páginas */
.navbar-collapse {
    background-color: transparent;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Melhorias para menu responsivo */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #ffffff !important;
        border-radius: 10px;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 1020;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
        margin: 2px 0;
        color: #333333 !important;
        font-weight: 500;
        transition: all 0.3s ease;
        background-color: transparent;
        text-shadow: none;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background-color: rgba(155, 123, 199, 0.1);
        color: #9B7BC7 !important;
        transform: translateX(5px);
        outline: none;
    }
    
    .navbar-nav .nav-link:active {
        background-color: rgba(155, 123, 199, 0.2);
        transform: translateX(3px) scale(0.98);
    }
    
    .navbar-nav .dropdown-menu {
        background-color: #ffffff;
        border: 1px solid rgba(155, 123, 199, 0.3);
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        margin-top: 5px;
        padding: 8px;
    }
    
    .navbar-nav .dropdown-item {
        padding: 8px 12px;
        border-radius: 6px;
        color: #333333;
        font-weight: 500;
        transition: all 0.3s ease;
        text-shadow: none;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: rgba(155, 123, 199, 0.15);
        color: #9B7BC7;
        transform: translateX(3px);
    }
    
    .navbar-nav .dropdown-divider {
        border-color: rgba(155, 123, 199, 0.2);
        margin: 8px 0;
    }
    
    /* Ícone do toggle com melhor visibilidade */
    .navbar-toggler {
        background-color: rgba(155, 123, 199, 0.1);
        border-radius: 8px;
        padding: 8px 12px;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:hover {
        background-color: rgba(155, 123, 199, 0.2);
        transform: scale(1.05);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%239B7BC7' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* Animação suave para abertura do menu */
    .navbar-collapse.collapsing {
        transition: height 0.35s ease;
    }
    
    .navbar-collapse.show {
        animation: slideDown 0.3s ease-out;
    }
}

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

/* Melhorias para telas muito pequenas */
@media (max-width: 575.98px) {
    .navbar-collapse {
        margin-top: 5px;
        padding: 10px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .site-logo {
        height: 44px;
        max-width: min(180px, 62vw);
    }

    .footer-logo {
        height: 38px;
        max-width: 150px;
    }
    
    .navbar-toggler {
        padding: 6px 10px;
    }
}

/* Melhorias para modo paisagem em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(155, 123, 199, 0.3) transparent;
    }
    
    .navbar-collapse::-webkit-scrollbar {
        width: 4px;
    }
    
    .navbar-collapse::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb {
        background-color: rgba(155, 123, 199, 0.3);
        border-radius: 2px;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Espaçamento consistente para todas as páginas */
.page-content {
    /*padding-top: 20px;*/
    min-height: calc(100vh - 160px);
}

.navbar-brand:not(.site-logo-link):hover {
    color: #7A5BA8 !important;
}

.navbar-brand:not(.site-logo-link) i {
    color: #9B7BC7 !important;
}

.navbar-brand:not(.site-logo-link):hover i {
    color: #7A5BA8 !important;
}

/* Ícones text-primary em lilás azulado */
.text-primary {
    color: #9B7BC7 !important;
}

/* Formulários */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

/* Tutorial específico */
.tutorial-step {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tutorial-step.active {
    display: block;
}

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

.breathing-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    animation: breathe 8s ease-in-out infinite;
    text-align: center;
    padding: 10px;
    overflow: hidden;
}

.breathing-circle #breathingText {
    font-size: 1.2rem;
    line-height: 1.2;
    max-width: 180px;
    word-wrap: break-word;
}

.breathing-circle #breathingText.motivational {
    font-size: 0.85rem;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-row {
        min-height: auto;
        padding-top: 0.5rem;
    }

    .hero-app-showcase {
        max-width: min(320px, 88vw);
    }

    .hero-app-caption {
        bottom: 4%;
    }

    .hero-app-pill {
        font-size: 0.72rem;
        padding: 0.35rem 0.75rem;
    }

    .hero-stores-cta {
        justify-content: center;
    }

    .hero-store-badge {
        padding: 0.5rem 0.85rem 0.5rem 0.75rem;
    }
    
    .breathing-circle {
        width: 150px;
        height: 150px;
        padding: 8px;
    }
    
    .breathing-circle #breathingText {
        font-size: 1rem;
        max-width: 130px;
    }
    
    .breathing-circle #breathingText.motivational {
        font-size: 0.75rem;
    }
}

/* Animações de entrada */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alertas personalizados */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(45deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* Classes de fundo roxo */
.bg-purple {
    background-color: #764ba2 !important;
    background-image: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

.bg-purple-solid {
    background-color: #764ba2 !important;
}

.bg-purple-light {
    background-color: #9b7bc7 !important;
}

.bg-purple-dark {
    background-color: #5d3a7b !important;
}

.bg-purple-gradient {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

/* Gráfico temporal com altura fixa */
#graficoTempo {
    height: 300px !important;
    max-height: 300px !important;
}

/* Cards de gráficos com altura fixa */
.grafico-horarios-card,
.grafico-intensidade-card {
    height: 500px !important;
}

.grafico-horarios-card .card-body,
.grafico-intensidade-card .card-body {
    height: calc(500px - 60px) !important; /* Subtraindo altura do header */
    display: flex;
    align-items: center;
    justify-content: center;
}

#graficoHorarios,
#graficoIntensidade {
    height: 320px !important;
    max-height: 320px !important;
}

/* Documentação interna (página oculta) */
.docs-interno-flow {
    background: #1e1e2e;
    color: #cdd6f4;
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-x: auto;
    border: none;
    margin: 0;
}

.docs-interno-code {
    background: #f8f9fc;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    font-size: 0.78rem;
    overflow-x: auto;
    margin: 0;
}

.docs-interno-code code {
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
}

.docs-interno-table code {
    font-size: 0.7rem;
    word-break: break-all;
}

.docs-interno-sidebar {
    z-index: 1;
}

.docs-interno-banner code {
    background: rgba(0, 0, 0, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
}

/* Página Como funciona */
.como-funciona-role-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.2));
    color: #667eea;
    font-size: 1.35rem;
}

.como-funciona-role-card--pro .como-funciona-role-icon {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.2), rgba(102, 126, 234, 0.12));
    color: #764ba2;
}

.como-funciona-flow-step {
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.como-funciona-flow-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.como-funciona-privacy-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: #f8f9fc;
    border-radius: 12px;
    height: 100%;
}

/* Documentação API (desenvolvedores) */
.docs-api-body {
    background: #f4f6fa;
    color: #1a1d26;
}

.docs-api-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.docs-api-badge-dev {
    font-weight: 500;
}

.docs-api-main {
    min-height: calc(100vh - 140px);
}

.docs-api-article {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1.75rem 2.5rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.docs-api-article__header .badge {
    font-weight: 500;
}

.docs-api-toc {
    top: 5rem;
    padding-top: 0.5rem;
}

.docs-api-toc__title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.docs-api-toc__link {
    color: #495057;
    padding: 0.2rem 0;
}

.docs-api-toc__link:hover {
    color: #667eea;
}

.docs-api-toc__base {
    word-break: break-all;
    background: #f0f2f8;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
}

.docs-api-h1 {
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 1rem;
    display: none;
}

.docs-api-h2 {
    font-size: 1.35rem;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #e9ecef;
    scroll-margin-top: 5.5rem;
}

.docs-api-h3 {
    font-size: 1.1rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #764ba2;
    scroll-margin-top: 5.5rem;
}

.docs-api-p,
.docs-api-ul,
.docs-api-ol {
    margin-bottom: 1rem;
    line-height: 1.65;
    color: #444;
}

.docs-api-ul,
.docs-api-ol {
    padding-left: 1.35rem;
}

.docs-api-pre {
    background: #1e1e2e;
    color: #cdd6f4;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.docs-api-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre;
}

.docs-api-inline {
    background: #eef1f8;
    color: #5a3d8a;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.88em;
}

.docs-api-table {
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.docs-api-table th {
    background: #f8f9fc;
    white-space: nowrap;
}

.docs-api-quote {
    border-left: 4px solid #667eea;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: #f8f9ff;
    color: #555;
}

.docs-api-hr {
    margin: 2rem 0;
    opacity: 0.15;
}

.docs-api-link {
    color: #667eea;
}

.docs-api-footer a {
    color: #667eea;
}

@media (min-width: 992px) {
    .como-funciona-link-flow .como-funciona-flow-step {
        position: relative;
    }

    .como-funciona-link-flow .col-lg-3:not(:last-child) .como-funciona-flow-step::after {
        content: '';
        position: absolute;
        top: 2.25rem;
        right: -12%;
        width: 24%;
        height: 2px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        opacity: 0.35;
    }
}
