/* style.css */
:root {
    --azul-principal: #0095B6;
    --azul-claro: #D0F2F7;
    --cinza-fundo: #F3F7FB;
    --cinza-borda: #D0D5DD;
    --texto-preto: #1E293B;
    --texto-azul-suave: #3B82F6;
    --branco: #FFFFFF;
    --vermelho-erro: #e74c3c;
    --verde-sucesso: #2ecc71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cinza-fundo);
    color: var(--texto-preto);
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

/* --- TELA DE LOGIN E CADASTRO --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--cinza-fundo);
    padding: 2rem;
}

.auth-box {
    background: var(--branco);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.auth-box .logo {
    margin-bottom: 0.75rem;
}

.auth-box .subtitle {
    margin-bottom: 2.5rem;
    color: #6b7280;
}

.auth-box .input-group input {
    background-color: var(--cinza-fundo);
    border: 2px solid var(--cinza-fundo);
    transition: border-color 0.2s;
}

.auth-box .input-group input:focus {
    background-color: var(--branco);
    border-color: var(--azul-principal);
    box-shadow: none;
}

.auth-box .btn-primary {
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.input-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--cinza-borda);
    border-radius: 8px;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--azul-principal);
    box-shadow: 0 0 0 2px var(--azul-claro);
}

.btn-primary {
    background-color: var(--azul-principal);
    color: var(--branco);
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #007a99;
}

.toggle-link {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.toggle-link a {
    color: var(--azul-principal);
    text-decoration: none;
    font-weight: 600;
}

/* --- DASHBOARD --- */
.dashboard-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--branco);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-right: 1px solid #e5e7eb;
}

.sidebar .logo {
    text-align: left;
    margin-bottom: 2rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.9rem;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}
.menu-item i {
    margin-right: 0.8rem;
    color: var(--cinza-borda);
}

.menu-item:hover {
    background-color: var(--azul-claro);
    color: var(--azul-principal);
}
.menu-item:hover i {
    color: var(--azul-principal);
}
.menu-item.active span, .menu-item.active i {
    color: var(--azul-principal);
}
.menu-item.active {
    font-weight: 600;
}

.user-profile {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.user-profile #doctor-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile #logout-btn {
    color: #4b5563;
    cursor: pointer;
}
.user-profile #logout-btn:hover {
    color: var(--vermelho-erro);
}

.main-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

/* --- COMPONENTES DO DASHBOARD --- */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.view-title {
    font-size: 2.25rem;
    font-weight: 700;
}
.btn-secondary {
    background-color: var(--azul-principal);
    color: var(--branco);
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}
.btn-secondary:hover {
    background-color: #007a99;
}

.item-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
    background-color: var(--branco);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--cinza-borda);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.07);
    border-color: var(--azul-principal);
}
.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.card-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}
.card-tag {
    display: inline-block;
    background-color: var(--azul-claro);
    color: var(--azul-principal);
    padding: 0.25rem 0.6rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- MODAL --- */
#modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#modal-content {
    background: var(--branco);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}
.close-modal-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--cinza-borda);
}
.close-modal-btn:hover {
    color: var(--texto-preto);
}

/* --- TOAST / NOTIFICAÇÃO --- */
#toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--branco);
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 2000;
}
#toast.show {
    opacity: 1;
    visibility: visible;
}
#toast.success { background-color: var(--verde-sucesso); }
#toast.error { background-color: var(--vermelho-erro); }

/* --- DETALHES DO PACIENTE --- */
.patient-detail-header {
    margin-bottom: 2rem;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--texto-azul-suave);
    margin-bottom: 1rem;
    font-weight: 500;
}
.patient-detail-title {
    font-size: 2rem;
    font-weight: 700;
}
.patient-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.patient-info, .patient-records {
    background: var(--branco);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--cinza-borda);
}
.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.info-item span:first-child {
    font-weight: 500;
    color: #6b7280;
}

/* --- LOGO DUAS CORES --- */
.logo {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}
.logo-base {
    color: var(--texto-preto);
}
.logo-accent {
    color: var(--azul-principal);
}

/* --- MELHORIAS PRONTUÁRIO --- */
.record-form-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.record-form-modern textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 1px solid var(--cinza-borda);
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
}
.record-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.file-input-hidden {
    display: none;
}
.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--cinza-borda);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #4b5563;
    flex-grow: 1;
    justify-content: center;
}
.file-input-label:hover {
    background-color: var(--cinza-fundo);
    border-color: var(--azul-principal);
}
.record-form-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- ESTILOS DOS CARDS E BOTÃO DE EDIÇÃO --- */
.card-content {
    flex-grow: 1;
}
.card-actions .edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--cinza-borda);
    transition: all 0.2s;
}
.card-actions .edit-btn:hover {
    color: var(--azul-principal);
    background-color: var(--azul-claro);
}

/* --- LANDING PAGE --- */
.light-theme {
    background-color: var(--branco);
    color: var(--texto-preto);
}
.light-theme .logo-base {
    color: var(--texto-preto);
}
.light-theme .logo-accent {
    color: var(--azul-principal);
}

.landing-nav-light {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
}
.landing-nav-light .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.landing-nav-light .nav-actions {
    display: flex;
    gap: 1rem;
}
.landing-nav-light .nav-actions .btn-secondary {
    background: var(--cinza-fundo);
    border: 1px solid var(--cinza-borda);
    color: var(--texto-preto);
}
.landing-nav-light .nav-actions .btn-secondary:hover {
    border-color: var(--texto-preto);
}
.landing-nav-light .nav-actions .btn-primary {
    background-color: var(--azul-principal);
    border: 1px solid var(--azul-principal);
}

.landing-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.features-section {
    padding: 4rem 0 6rem 0;
    text-align: center;
}
.features-section h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
}
.feature-card {
    background: var(--cinza-fundo);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
}
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--azul-claro);
    color: var(--azul-principal);
    margin: 0 auto 1.5rem auto;
}
.feature-icon i {
    width: 28px;
    height: 28px;
}
.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.feature-card p {
    color: #4b5563;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

.main-footer {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    background-color: var(--cinza-fundo);
    border-top: 1px solid #e5e7eb;
}
.logo-base-footer { color: var(--texto-preto); }

/* --- AJUSTES FINAIS DE LINKS E LOGOS --- */
a {
    text-decoration: none;
}
a.logo, a.nav-logo {
    display: inline-block;
}
.landing-nav-light a.nav-logo {
    font-size: 1.75rem;
    transition: transform 0.2s ease-in-out;
}
.landing-nav-light a.nav-logo:hover {
    transform: scale(1.05);
}

/* --- ESTILOS PARA LANDING PAGE CENTRALIZADA E NOVO FADING TEXT --- */
.hero-section-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - 220px);
    padding: 4rem 0;
}

.hero-image-container {
    display: none;
}

.fading-hero-title {
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--texto-preto);
}
.fading-accent {
    color: var(--azul-principal);
    transition: opacity 0.4s ease-in-out;
    display: inline-block;
    margin-left: 0;
}
.fading-accent.fade-out {
    opacity: 0;
}

.hero-section-centered .hero-subtitle {
    max-width: 600px;
    font-size: 1.25rem;
}

/* --- CAMPO DE PESQUISA --- */
.search-container {
    margin-bottom: 2rem;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--cinza-borda);
    background-color: var(--cinza-fundo);
    font-size: 1rem;
    transition: all 0.2s;
}
.search-input:focus {
    outline: none;
    border-color: var(--azul-principal);
    background-color: var(--branco);
    box-shadow: 0 0 0 3px var(--azul-claro);
}
.search-container .search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* --- BOTÃO DE LIMPAR FILTRO E AJUSTES DE TÍTULO --- */
.title-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn-tertiary {
    background: var(--azul-claro);
    color: var(--azul-principal);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}
.btn-tertiary:hover {
    background-color: #bdecf4;
}

/* --- ESTILO DO SELECT MODERNO --- */
.select-wrapper {
    position: relative;
    width: 100%;
}
.select-wrapper::after {
    content: '▼';
    font-size: 0.8rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
}
.select-wrapper select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--cinza-borda);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--branco);
    cursor: pointer;
}
.select-wrapper select:focus {
    outline: none;
    border-color: var(--azul-principal);
    box-shadow: 0 0 0 2px var(--azul-claro);
}

/* --- ESTADO DE LOADING DO BOTÃO --- */
.btn-primary.loading {
    position: relative;
    color: transparent;
    cursor: not-allowed;
}
.btn-primary.loading .btn-text {
    visibility: hidden;
}
.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-top-color: var(--branco);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- NOVA UI PARA TIMELINE E ANEXOS --- */
.timeline-item {
    padding: 1rem 0;
    border: none;
    background: none;
    margin: 0;
}
.timeline-time {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}
.timeline-note {
    background-color: var(--branco);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--cinza-borda);
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
    line-height: 1.6;
    word-break: break-word;
}
.attachment-list {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}
@media (min-width: 500px) {
    .attachment-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
.attachment-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--branco);
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--cinza-borda);
    cursor: help;
}
.attachment-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--azul-claro);
    color: var(--azul-principal);
    border-radius: 8px;
}
.attachment-icon i {
    width: 18px;
    height: 18px;
}
.attachment-info {
    flex-grow: 1;
    overflow: hidden;
    min-width: 0;
}
.attachment-name {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.attachment-actions {
    display: flex;
    gap: 0.5rem;
}
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--cinza-fundo);
    border: 1px solid var(--cinza-borda);
    color: #4b5563;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}
.action-btn:hover {
    background-color: var(--azul-principal);
    border-color: var(--azul-principal);
    color: var(--branco);
}
.action-btn i {
    width: 16px;
    height: 16px;
}

/* --- ESTILOS PARA "ESQUECEU A SENHA" --- */
.forgot-password-link {
    text-align: right;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    margin-top: -1rem;
}
.forgot-password-link a {
    color: var(--texto-azul-suave);
    text-decoration: none;
}
.forgot-password-link a:hover {
    text-decoration: underline;
}

/* --- RESPONSIVIDADE E MOBILE --- */
.mobile-header {
    display: none;
}
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid #e5e7eb;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
    }
    .mobile-logo {
        font-size: 1.5rem;
        font-weight: 700;
    }
    .mobile-nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .mobile-menu-item {
        padding: 0.5rem;
        color: #4b5563;
    }
    .mobile-menu-item.active i {
        color: var(--azul-principal);
    }
    .main-content {
        padding: 1rem;
        padding-top: 5rem;
    }
    .view-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .view-header .btn-secondary {
        align-self: center;
    }
    .patient-detail-grid {
        grid-template-columns: 1fr;
    }
    .hide-on-mobile {
        display: none !important;
    }
}
@media (min-width: 1024px) {
    .patient-detail-grid {
        grid-template-columns: 350px 1fr;
    }
}

/* --- NOVOS ESTILOS PARA FORMULÁRIO --- */
.form-divider {
    border: none;
    border-top: 1px solid var(--cinza-borda);
    margin: 2rem 0 1.5rem 0;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--texto-preto);
}

/* Adiciona espaço acima da timeline para não colar no formulário */
.timeline {
    margin-top: 2rem;
}

/* Estilo para o botão de adicionar contato de emergência */
.btn-tertiary {
    background: var(--azul-claro);
    color: var(--azul-principal);
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-tertiary:hover {
    background-color: #bdecf4;
}

/* --- AJUSTE DE LAYOUT DA LANDING PAGE --- */
.hero-actions {
    margin-top: 2rem; /* Aumenta o espaço acima do botão */
}

/* --- MELHORIA VISUAL PARA CAMPOS DE DATA --- */
input[type="date"] {
    position: relative;
    background-color: var(--branco); /* Garante fundo branco */
}

/* Remove o ícone padrão do calendário */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Adiciona um ícone de calendário personalizado (requer Feather Icons) */
.input-group {
    position: relative;
}
.input-group input[type="date"] + .date-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
}

/* --- SEÇÃO DE PLANOS E PREÇOS --- */
.pricing-section {
    padding: 6rem 0;
    text-align: center;
}

.section-title-light {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 4rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
    }
}

.pricing-card {
    background-color: var(--branco);
    border: 1px solid var(--cinza-borda);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-card.popular {
    border: 2px solid var(--azul-principal);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 149, 182, 0.1);
}

@media (max-width: 991px) {
    .pricing-card.popular {
        transform: scale(1);
    }
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--azul-principal);
    color: var(--branco);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    border-bottom: 1px solid var(--cinza-borda);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--texto-preto);
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
}

.pricing-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
    height: 40px;
}

.features-list {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #4b5563;
}

/* CORREÇÃO: Aplica a quebra de linha apenas em telas maiores */
@media (min-width: 992px) {
    .features-list li {
        white-space: nowrap;
    }
}

.features-list li i {
    color: var(--verde-sucesso);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-full {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.pricing-card .btn-secondary {
    background-color: var(--cinza-fundo);
    border: 1px solid var(--cinza-borda);
    color: var(--texto-preto);
}
.pricing-card .btn-secondary:hover {
    border-color: var(--texto-preto);
    background-color: #e5e7eb;
}


/* --- ESTILOS PARA O SELO DE PROMOÇÃO INICIO --- */

.promo-text {
    background-color: var(--verde-sucesso);
    color: var(--branco);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block; /* Faz o fundo se ajustar ao texto */
    margin-top: 0.75rem;
}

/* Ajusta a altura da descrição para compensar o novo selo */
.pricing-card.popular .pricing-description {
    height: 20px;
}

/* --- ESTILOS PARA O SELO DE PROMOÇÃO FIM --- */