/*Planos e assinaturas*/
.detalhes-planos-assinaturas {
    padding: 30px;
    background-color: #f8f9fc;
    overflow-x: hidden;
}

.detalhes-planos-assinaturas .titulo {
    color: #3EBBEB;
    font-weight: bold;
    font-size: 1.8rem;
}

.detalhes-planos-assinaturas .tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    max-width: 100%;
    overflow-x: auto;
}

.detalhes-planos-assinaturas .tabs button {
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
}

.detalhes-planos-assinaturas .tabs button.active {
    border-bottom: 3px solid #3EBBEB;
    color: #000;
    font-weight: bold;
}

/* Conteúdo das abas */
.tab-content {
    display: none;
}

.tab-content.ativo {
    display: block;
}

/* Box do plano */
.detalhes-planos-assinaturas .box-plan {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Títulos dos campos */
.detalhes-planos-assinaturas .box-plan .title {
    color: #a0a0a0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

/* Informações */
.detalhes-planos-assinaturas .box-plan .info {
    color: #000;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Links clicáveis */
.detalhes-planos-assinaturas .box-plan .link {
    color: #3EBBEB;
    font-weight: bold;
    cursor: pointer;
}

/* Tag de economia */
.detalhes-planos-assinaturas .box-plan .tag {
    background: #6751D1;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
}

/* Caixa de Créditos IA */
.detalhes-planos-assinaturas .box-credito {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.detalhes-planos-assinaturas .box-credito h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.detalhes-planos-assinaturas .box-credito p {
    font-size: 14px;
    color: #333;
}

.detalhes-planos-assinaturas .box-credito .creditos-restantes {
    font-size: 16px;
    font-weight: bold;
    color: #6751D1;
}

/* Barra de Progresso */
.detalhes-planos-assinaturas .progress-bar {
    width: 100%;
    height: 5px;
    background: #e0f7ff;
    border-radius: 5px;
    margin-top: 10px;
}

.detalhes-planos-assinaturas .progress {
    height: 100%;
    background: #3EBBEB;
    border-radius: 5px;
}

/* Caixa de Ações de Cobrança */
.detalhes-planos-assinaturas .box-cobranca {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.detalhes-planos-assinaturas .box-cobranca h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.detalhes-planos-assinaturas .box-cobranca ul {
    padding-left: 20px;
}

.detalhes-planos-assinaturas .box-cobranca li {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.detalhes-planos-assinaturas .box-cobranca .alterar-link {
    color: #3EBBEB;
    font-weight: 500;
    cursor: pointer;
    display: block;
    margin-top: 5px;
}

/* Estilização do Box */
.box-comprar-creditos {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Título */
.box-comprar-creditos h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Container Flexível */
.box-comprar-creditos .creditos-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Cada Item (status, atingir, comprar) */
.box-comprar-creditos .creditos-item {
    display: flex;
    flex-direction: column;
}

/* Labels */
.box-comprar-creditos .creditos-item label {
    font-size: 0.9rem;
    color: #8a8a8a;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Inputs e Selects */
.box-comprar-creditos .creditos-item select,
.box-comprar-creditos .creditos-item input {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: 140px;
}

/* Ajuste para alinhar o botão ao lado do input */
.input-btn-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botão de Comprar */
.box-comprar-creditos .btn-comprar {
    background-color: #6751D1;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.box-comprar-creditos .btn-comprar:hover {
    transform: scale(1.05);
}

/* Caixa Principal */
.creditos-extras {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Título */
.creditos-extras h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Container Flexível */
.creditos-extras .creditos-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    /* Não permite quebra de linha */
}

/* Cada Item (Quantidade de Créditos) */
.creditos-extras .creditos-item {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

/* Labels */
.creditos-extras .creditos-item label {
    font-size: 0.9rem;
    color: #8a8a8a;
    margin-bottom: 5px;
}

/* Select */
.creditos-extras .creditos-item select {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.9rem;
    width: 260px;
}

/* Botão de Comprar */
.creditos-extras .btn-comprar {
    background-color: #6751D1;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
    white-space: nowrap;
    width: 220px;
}

.creditos-extras .btn-comprar:hover {
    transform: scale(1.05);
}

/* Overlay escuro ao fundo */
#modalPlanoAnual {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Fundo do Modal */

/* Estrutura do modal */
#modalPlanoAnual .modal-content-plano-anual {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 550px;
    max-width: 90%;
}

/* Título do modal */
#modalPlanoAnual .modal-title-plano-anual {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Corpo do modal */
#modalPlanoAnual .modal-body-plano-anual label {
    font-weight: 600;
    font-size: 14px;
    color: #8a8a8a;
    display: block;
    margin-top: 15px;
}

#modalPlanoAnual .modal-body-plano-anual .info-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px solid #d6d6d6;
    padding-bottom: 5px;
}

/* Tag de economia */
#modalPlanoAnual .tag-plano-anual {
    background: #6751D1;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 5px;
}

/* Caixa do cartão */
.cartao-box {
    margin-top: 20px;
}

.cartao-box div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modalPlanoAnual .cartao-container-plano-anual {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 5px;
}

#modalPlanoAnual .cartao-container-plano-anual input {
    border: none;
    font-size: 16px;
    font-weight: 600;
    flex-grow: 1;
    text-align: left;
    background: none;
    padding: 5px;
}

#modalPlanoAnual .cartao-container-plano-anual img {
    width: 35px;
}

/* Link de troca de cartão */
#modalPlanoAnual .trocar-cartao-plano-anual {
    color: #3EBBEB;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

/* Rodapé do modal */
#modalPlanoAnual .modal-footer-plano-anual {
    display: flex;
    justify-content: end;
    margin-top: 25px;
}

/* Botão Cancelar */
#modalPlanoAnual .btn-cancelar-plano-anual {
    background: transparent;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

/* Botão Continuar */
#modalPlanoAnual .btn-continuar-plano-anual {
    background: #6751D1;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

#modalPlanoAnual .btn-continuar-plano-anual:hover {
    background: #5739b5;
}

/* Modal fixo e centralizado */

/* Estilização do modal */
#modalMetodoPagamento {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#modalMetodoPagamento .modal-content-metodo-pagamento {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 550px;
    max-width: 95%;
    position: relative;
}

/* Ícone de fechar */
#modalMetodoPagamento .close-modal-metodo-pagamento {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    transition: 0.3s;
}

#modalMetodoPagamento .close-modal-metodo-pagamento:hover {
    color: #ff0000;
}

/* Segurança do ambiente */
#modalMetodoPagamento .seguranca-info {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* Campos de input */
#modalMetodoPagamento .modal-body-metodo-pagamento .row {
    margin-bottom: 10px;
}

#modalMetodoPagamento .modal-body-metodo-pagamento input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Container do input */
#modalMetodoPagamento .input-cartao {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 5px 10px;
    background-color: #fff;
}

/* Input de número do cartão */
#modalMetodoPagamento .input-cartao input {
    width: 100%;
    padding: 10px 40px 10px 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

/* Imagem dentro do input */
#modalMetodoPagamento .input-cartao-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#modalMetodoPagamento .input-cartao-icon img {
    height: 25px;
}


/* Botão de trocar cartão */
#modalMetodoPagamento .btn-trocar-cartao {
    background: #6751D1;
    color: white;
    padding: 12px;
    border: none;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

#modalMetodoPagamento .btn-trocar-cartao:hover {
    opacity: 0.8;
}

/* Fundo escuro ao abrir o modal */
#modalAlterarEmail {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Conteúdo do modal */
#modalAlterarEmail .modal-content-alterar-email {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 450px;
    max-width: 90%;
    text-align: left;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
}

/* Quando o modal estiver ativo */
#modalAlterarEmail.ativo {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Efeito de animação ao abrir */
#modalAlterarEmail.ativo .modal-content-alterar-email {
    transform: scale(1);
}

/* Cabeçalho do modal */
#modalAlterarEmail .modal-header-alterar-email {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Título do modal */
#modalAlterarEmail .modal-title-alterar-email {
    font-size: 20px;
    font-weight: bold;
}

/* Ícone de fechar (X) */
#modalAlterarEmail .close-modal-alterar-email {
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
}

#modalAlterarEmail .close-modal-alterar-email:hover {
    color: red;
}

/* Corpo do modal */
#modalAlterarEmail .modal-body-alterar-email {
    margin-bottom: 20px;
}

/* Label do input */
#modalAlterarEmail .modal-body-alterar-email label {
    font-size: 14px;
    font-weight: bold;
    color: #8a8a8a;
    display: block;
    margin-bottom: 5px;
}

/* Input de e-mail */
#modalAlterarEmail .modal-body-alterar-email input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

/* Rodapé do modal */
#modalAlterarEmail .modal-footer-alterar-email {
    text-align: center;
}

/* Botão de Trocar E-mail */
#modalAlterarEmail .btn-alterar-email {
    background: #6751D1;
    color: white;
    padding: 12px;
    border: none;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#modalAlterarEmail .btn-alterar-email:hover {
    opacity: 0.8;
}

/* Resumo Pedido */
#modalResumoPedido {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Ativar modal */
#modalResumoPedido.ativo {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

/* Conteúdo do modal */
#modalResumoPedido .modal-content-resumo-pedido {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 600px;
    max-width: 90%;
    position: relative;
}

/* Cabeçalho do modal */
#modalResumoPedido .modal-header-resumo-pedido {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#modalResumoPedido .modal-title-resumo-pedido {
    font-size: 20px;
    font-weight: bold;
}

#modalResumoPedido .close-modal-resumo-pedido {
    font-size: 18px;
    cursor: pointer;
    color: #333;
    transition: 0.3s;
}

#modalResumoPedido .close-modal-resumo-pedido:hover {
    color: #ff0000;
}

/* Corpo do modal */
#modalResumoPedido .modal-body-resumo-pedido {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Informações do pedido */
#modalResumoPedido .pedido-info,
#modalResumoPedido .pedido-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2px;
    border-bottom: 1px solid #C2C2C2;
}

#modalResumoPedido .pedido-info label,
#modalResumoPedido .pedido-total label {
    font-size: 14px;
    font-weight: 600;
    color: #8a8a8a;
}

#modalResumoPedido .pedido-info p,
#modalResumoPedido .pedido-total p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

#modalResumoPedido .preco {
    margin-top: 18px;
}

/* Caixa do cartão */
#modalResumoPedido .cartao-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#modalResumoPedido .cartao-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modalResumoPedido .cartao-label-container label {
    color: #C2C2C2;
    font-weight: 600;
}

#modalResumoPedido .trocar-cartao-resumo-pedido {
    color: #3EBBEB;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

#modalResumoPedido .cartao-container-resumo-pedido {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

#modalResumoPedido .cartao-container-resumo-pedido input {
    border: none;
    font-size: 16px;
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    background: none;
    padding: 5px;
}

#modalResumoPedido .cartao-container-resumo-pedido img {
    width: 35px;
}

/* Rodapé do modal */
#modalResumoPedido .modal-footer-resumo-pedido {
    display: flex;
    justify-content: end;
    margin-top: 25px;
}

/* Botão Cancelar */
#modalResumoPedido .btn-cancelar-resumo-pedido {
    background: transparent;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

/* Botão Confirmar Compra */
#modalResumoPedido .btn-confirmar-resumo-pedido {
    background: #6751D1;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

#modalResumoPedido .btn-confirmar-resumo-pedido:hover {
    background: #5739b5;
}

/*Faturas e cobrança*/
.box-faturas {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Título */
.box-faturas h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Texto informativo */
.box-faturas p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Container responsivo para a tabela */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* Tabela */
.tabela-faturas {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Evita quebra em telas menores */
}

/* Cabeçalho da tabela */

.tabela-faturas th {
    text-align: left;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #8a8a8a;
}

/* Linhas da tabela */
.tabela-faturas td {
    padding: 10px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    color: #3D4040;
    font-weight: 600;
}

/* Status pago */
.status-pago {
    font-weight: bold;
    color: #333;
}

/*Dados de cobranca*/
#dados-cobranca .box-dados {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Título */
#dados-cobranca .box-dados h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Estilização dos inputs */
#dados-cobranca .box-dados label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #8a8a8a;
    margin-bottom: 5px;
}

#dados-cobranca .box-dados input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

/* Estilização do campo de idioma */
#dados-cobranca .input-icone {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

#dados-cobranca .input-icone img {
    width: 25px;
    margin-right: 10px;
}

/* Botão de salvar */
#dados-cobranca .salvar-alteracoes {
    text-align: right;
    margin-top: 10px;
}

#dados-cobranca .btn-salvar {
    background: linear-gradient(90deg, rgba(19, 180, 238, 1) 0%, rgba(45, 248, 250, 1) 100%);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

#dados-cobranca .btn-salvar:hover {
    opacity: 0.8;
}