* {
    box-sizing: border-box; /* Garante que padding não aumente a largura */
}
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    color: #222;
    overflow-x: hidden; /* Remove rolagem lateral */
    overflow-y: auto;   /* Permite rolagem vertical normal */
    width: 100%;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
header {
    background: #222;
    color: #fff;
    padding: 10px 0;
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    /* height: 50px; REMOVIDO PARA PERMITIR TAMANHO MAIOR NO HTML */
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}
.dropbtn {
    cursor: pointer;
}
.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 270px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    z-index: 10;
    border-radius: 0 0 12px 12px;
    top: 100%;
    left: 0;
    padding: 0;
}
.dropdown-content a {
    color: #222;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-weight: normal;
    border-bottom: 1px solid #eee;
    transition: background 0.2s, color 0.2s;
}
.dropdown-content a:last-child {
    border-bottom: none;
}
.dropdown-content a:hover {
    background: #00bcd4;
    color: #fff;
}
.dropdown:hover .dropdown-content {
    display: block;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.login-btn {
    background: #00bcd4;
    color: #fff !important;
    padding: 8px 22px;
    border-radius: 20px;
    margin-left: 10px;
    transition: background 0.2s, color 0.2s;
}
.login-btn:hover {
    background: #fff;
    color: #00bcd4 !important;
    border: 1px solid #00bcd4;
}
nav a:hover {
    color: #00bcd4;
}
.banner {
    background: linear-gradient(120deg, #00bcd4 60%, #222 100%);
    color: #fff;
    padding: 60px 0 40px 0;
    text-align: center;
}
.banner .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 32px;
    background: #fff;
    color: #00bcd4;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}
.banner .btn:hover {
    background: #00bcd4;
    color: #fff;
    border: 1px solid #fff;
}
.pagamentos {
    background: #fff;
    padding: 40px 0;
    text-align: center;
}
.bancos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}
.bancos li {
    background: #00bcd4;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
}
.noticias {
    background: #f4f4f4;
    padding: 40px 0;
    text-align: center;
}
.contato {
    background: #fff;
    padding: 40px 0;
    text-align: center;
}
.contato .telefone {
    font-size: 1.3em;
    font-weight: bold;
    margin: 10px 0;
}
.redes a {
    display: inline-block;
    margin: 0 10px;
    color: #00bcd4;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.redes a:hover {
    color: #222;
}
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 0.95em;
    margin-top: 30px;
}

/* Header Branco Style Image 2 */
.header-white {
    background: #fff;
    color: #333;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative; /* Para menu mobile */
}
.header-white .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-white nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-white nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    transition: color 0.2s;
}
.header-white nav a:hover {
    color: #8bc34a; /* Green hover */
}
.header-user-area {
    font-size: 0.9em;
    font-weight: bold;
    color: #d32f2f;
}

/* Menu Mobile Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5em;
    color: #333;
    cursor: pointer;
}

/* Estilos dos botões mobile */
.btn-mobile {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 15px 10px;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.1s;
    min-width: 100px;
}
.btn-mobile i {
    font-size: 1.5em;
    color: #00bcd4;
    margin-bottom: 2px;
}
.btn-mobile:active {
    transform: scale(0.98);
    background: #f0f0f0;
}

/* Responsividade Geral */
@media (max-width: 768px) {
    /* Forçar tela cheia na largura, mas permitir scroll vertical */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    /* Header */
    .header-white .container {
        padding: 0 15px; /* Margem lateral */
        width: 100%;
        max-width: 100%;
    }
    /* Header Mobile - Restaurar padrão (esconder menu, mostrar toggle) */
    .header-white nav {
        display: none !important; /* Esconde menu completamente no mobile */
    }
    .menu-toggle { 
        display: none !important; /* Esconde hambúrguer no mobile */ 
    }
    
    .header-white .container {
        flex-direction: row; /* Volta ao normal */
        justify-content: center; /* Centraliza logo */
    }

    /* User Area no Mobile */
    .header-user-area {
        /* display: none !important; REMOVIDO PARA MOSTRAR BOTÃO LOGIN */
        font-size: 0.8em;
    }
}

/* --- MENU RÁPIDO MOBILE (Novo) --- */
.menu-rapido-mobile {
    display: none; /* ESCONDIDO POR PADRÃO (PC) */
}

/* Responsividade Geral */
@media (max-width: 768px) {
    /* MOSTRAR NO MOBILE */
    .menu-rapido-mobile {
        display: flex;
        gap: 10px;
        margin-bottom: 5px; /* Reduzi de 20px para 5px */
        overflow-x: auto;
        padding-bottom: 5px;
    }

    /* Tabela de Histórico Responsiva (Cards) */
    .orders-table, .orders-table tbody, .orders-table tr, .orders-table td {
        display: block;
        width: 100%;
    }
    .orders-table thead {
        display: none; /* Esconde cabeçalho da tabela */
    }
    .orders-table tr {
        margin-bottom: 15px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    .orders-table td {
        text-align: right;
        padding: 5px 0; /* Reduzi de 8px para 5px */
        border-bottom: 1px solid #f0f0f0; /* Borda mais suave */
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.9em; /* Fonte levemente menor */
    }
    .orders-table td:last-child {
        border-bottom: none;
    }
    .orders-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #555;
        text-align: left;
    }
    /* Ajuste específico para colunas (Historico) */
    .orders-table td:nth-child(1)::before { content: "ID"; }
    .orders-table td:nth-child(2)::before { content: "Serviço"; }
    .orders-table td:nth-child(3)::before { content: "Dados"; }
    .orders-table td:nth-child(4)::before { content: "Resultado"; } /* Corrigido de Valor para Resultado */
    .orders-table td:nth-child(5)::before { content: "Status"; }
    
    .orders-table td:nth-child(2) { /* Serviço */
        text-align: right;
        font-weight: bold;
        color: #2196f3;
        white-space: normal; /* Permite quebrar linha se for longo */
        line-height: 1.4;
        padding-left: 20px; /* Espaço para não colar no rótulo */
    }



    /* User Area no Mobile */
    
    /* User Area no Mobile */
    .header-user-area {
        margin-left: auto;
        margin-right: 15px;
    }
    .header-user-area .usuario-logado {
        padding: 5px 10px;
        font-size: 0.8em;
    }
    .header-user-area span#header-nome {
        display: none !important; /* Esconde nome, mostra só saldo/ícone */
    }

    /* Footer */
    .footer-cols {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .footer-col {
        min-width: 100%;
    }
    
    /* Banners */
    #banner-slider {
        min-height: 200px !important; /* Altura menor no celular */
    }
    
    /* Formulários e Containers */
    .container {
        width: 95%;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 20px;
    }
    
    /* Botões Amarelos */
    #botoes-amarelos-index {
        gap: 10px;
    }
    #botoes-amarelos-index img {
        height: 40px !important;
    }
}

/* Green Menu Bar */
.green-menu {
    background: #8bc34a;
    padding: 0;
}
.green-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.green-menu li {
    position: relative;
}
.green-menu a {
    display: block;
    padding: 16px 24px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1em;
    transition: background 0.2s;
}
.green-menu a:hover {
    background: rgba(0,0,0,0.1);
}
.green-menu .arrow-down {
    font-size: 0.8em;
    margin-left: 5px;
}

/* Footer Style Image 2 */
.footer-modern {
    background: #fff;
    padding: 50px 0 20px 0;
    border-top: 1px solid #eee;
    color: #555;
}
.footer-cols {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: #8bc34a;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1em;
    text-transform: uppercase;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: #8bc34a;
}
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
}
.usuario-logado {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent; /* Removido fundo cinza */
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    color: #333; /* Texto escuro para contraste */
}
.usuario-logado .saldo {
    background: transparent; /* Removido fundo azul */
    color: #000; /* Preto */
    padding: 0;
    margin-left: 5px;
    font-size: 1.3em; /* Maior */
    font-weight: 900; /* Negrito extra */
}
.alerta {
    background: #e0f7fa;
    padding: 15px 0 5px 0;
    border-bottom: 1px solid #b2ebf2;
    font-size: 1em;
}
.alerta .info {
    color: #00796b;
    margin: 0 0 5px 0;
}
.alerta .admin {
    color: #d84315;
    margin: 0;
}
.painel-main {
    background: #f4f4f4;
    min-height: 400px;
    padding: 10px 0; /* Reduzi de 40px para 10px */
}
.painel-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.painel-saldo {
    background: #2196f3;
    color: #fff;
    border-radius: 16px;
    padding: 30px 40px;
    min-width: 260px;
    box-shadow: 0 2px 8px rgba(33,150,243,0.08);
    text-align: center;
}
.painel-saldo .valor-saldo {
    font-size: 2.5em;
    font-weight: bold;
    margin: 18px 0 20px 0;
}
.painel-saldo .btn {
    background: #fff;
    color: #2196f3;
    border-radius: 20px;
    padding: 10px 28px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
    border: none;
    cursor: pointer;
}
.painel-saldo .btn:hover {
    background: #2196f3;
    color: #fff;
    border: 1px solid #fff;
}
.painel-anuncios {
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.painel-anuncios h3 {
    margin-top: 0;
    color: #00bcd4;
}
.painel-anuncios ul {
    list-style: disc inside;
    padding-left: 0;
    margin: 0;
}
.painel-anuncios li {
    margin-bottom: 10px;
    color: #222;
}
@media (max-width: 900px) {
    .painel-flex {
        flex-direction: column;
        gap: 20px;
    }
    .painel-flex {
        flex-direction: column;
        gap: 20px;
    }
    .painel-saldo, .painel-anuncios {
        width: 100%;
        min-width: unset; /* Remove largura mínima fixa */
        padding: 25px 20px; /* Ajusta padding interno */
    }
    .painel-saldo .valor-saldo {
        font-size: 2em; /* Reduz um pouco a fonte do saldo */
    }
    .painel-saldo .btn {
        width: 100%; /* Botão ocupa largura total */
        display: block;
        box-sizing: border-box;
        padding: 15px;
    }
}
@media (max-width: 700px) {
    .header-flex {
        flex-direction: column;
        gap: 10px;
    }
    .bancos {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- CSS Adicional para Lista de Serviços (IMEI/Cards) --- */

.imei-main {
    background: #f4f4f4;
    min-height: 500px;
    padding: 30px 0;
}
.titulo-pagina {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* Filtros */
.filtros-imei {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.filtros-imei .input-group {
    flex: 1;
    min-width: 250px;
}
.filtros-imei label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
    font-size: 0.9em;
}
.filtros-imei input, 
.filtros-imei select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

/* Lista de Serviços (Cards) */
.lista-servicos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.servico-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.servico-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.servico-info {
    flex: 1;
    padding-right: 20px;
}

.servico-nome {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.servico-detalhes {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: #777;
}

.servico-detalhes span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.servico-detalhes i {
    color: #8bc34a;
}

.servico-acao {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 120px;
}

.servico-acao .preco {
    font-size: 1.2em;
    font-weight: bold;
    color: #2196f3;
}

.btn-comprar {
    background: #8bc34a;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-comprar:hover {
    background: #7cb342;
}

/* Responsividade para Lista de Serviços */
@media (max-width: 768px) {
    .filtros-imei {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .servico-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .servico-info {
        padding-right: 0;
        width: 100%;
    }
    
    .servico-detalhes {
        flex-wrap: wrap;
        margin-top: 5px;
    }
    
    .servico-acao {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }
    
    .btn-comprar {
        padding: 10px 20px;
    }
}

/* --- HISTORICO E BADGES (NOVO) --- */
.historico-container {
    max-width: 95% !important; /* Mais largo conforme pedido */
}
.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.orders-table th, .orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.orders-table th {
    background: #f9f9f9;
    font-weight: bold;
    color: #555;
}
.badge {
    padding: 5px 10px;
    border-radius: 15px;
    color: white;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-block;
}
.bg-green { background: #4caf50; }
.bg-orange { background: #ff9800; }
.bg-red { background: #f44336; }
.bg-blue { background: #2196f3; }

.btn-copy-small {
    background: #e0e0e0;
    color: #333;
    border: 1px solid #ccc;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.btn-copy-small:hover {
    background: #d5d5d5;
    color: #000;
}
