/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b1329;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Header / Cabeçalho */
header {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header > div {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    height: 45px;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #38bdf8;
}

/* Seção Principal (Hero) */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #1e293b;
}

.hero-section h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.hero-section h1 span {
    color: #0077ff;
}

.hero-section p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 25px;
}

.btn-contratar, .hero-section a[href*="painel.hostgs"] {
    display: inline-block;
    background: #ffb800;
    color: #0f172a;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(255, 184, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.btn-contratar:hover {
    transform: translateY(-2px);
    background: #e6a600;
}

/* Layout Estilo HostGator para Planos */
.container-planos {
    max-width: 1240px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.container-planos h2 {
    font-size: 2.3rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 10px;
}

.container-planos > p {
    color: #94a3b8;
    margin-bottom: 40px;
}

.grid-planos-hg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    align-items: stretch;
}

/* Card Estilo Clean (Fundo Branco no padrão HostGator) */
.card-plano-hg {
    background: #ffffff;
    color: #212529;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.card-plano-hg:hover {
    transform: translateY(-5px);
}

/* Card Recomendado com borda e header azul */
.card-plano-hg.recomendado {
    border: 2px solid #0077ff;
    position: relative;
}

.top-header-recomendado {
    background: #0077ff;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plano-top {
    padding: 25px 25px 15px 25px;
    border-bottom: 1px solid #f1f5f9;
}

.plano-top h3 {
    font-size: 1.5rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 8px;
}

.badge-tag {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
}

.descricao-plano {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.4;
    min-height: 50px;
}

/* Caixa de Preços */
.preco-box {
    margin: 15px 0;
}

.preco-antigo {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-right: 6px;
}

.desconto-tag {
    background: #ccfbf1;
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.valor-principal {
    color: #0077ff;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    margin: 8px 0 4px 0;
}

.valor-principal sup {
    font-size: 1.2rem;
    top: -0.8em;
}

.valor-principal sub {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 400;
}

.economia {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Botões do Plano */
.btn-plano-hg {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 15px;
    transition: background 0.2s ease;
}

.btn-blue {
    background: #0077ff;
    color: #ffffff;
}

.btn-blue:hover {
    background: #005bb5;
}

.btn-yellow {
    background: #ffb800;
    color: #0f172a;
}

.btn-yellow:hover {
    background: #e6a600;
}

/* Lista de Recursos com Check Icon */
.recursos-lista {
    list-style: none;
    padding: 25px;
    margin: 0;
    font-size: 0.88rem;
    color: #334155;
    flex-grow: 1;
}

.recursos-lista li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.3;
}

.recursos-lista li i {
    color: #16a34a;
    font-size: 1.1rem;
    font-weight: bold;
}

.divisor-recursos {
    padding-top: 10px;
    margin-top: 15px;
    border-top: 1px dashed #e2e8f0;
    color: #0f172a;
}

/* Footer / Rodapé Profissional */
footer {
    background: #0f172a;
    border-top: 1px solid #1e293b;
    padding: 40px 20px 20px;
    color: #94a3b8;
    text-align: center;
    margin-top: 80px;
}

footer a {
    color: #38bdf8;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* WhatsApp Flutuante */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.whatsapp-box-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-box-link:hover {
    transform: scale(1.03);
}

.whatsapp-tooltip {
    background: #0f172a;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-text {
    display: flex;
    flex-direction: column;
}

.whatsapp-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f8fafc;
}

.whatsapp-status {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.whatsapp-float {
    background-color: #25d366;
    color: #ffffff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    animation: whatsapp-pulse 1.5s infinite;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsividade Básica */
@media (max-width: 768px) {
    header > div {
        flex-direction: column;
        gap: 15px;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
}


/* Estilos da Ferramenta de Remover Fundo */
.container-remover-fundo {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.box-ferramenta {
    background: #ffffff;
    color: #1e293b;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    text-align: center;
}

.box-ferramenta h2 {
    color: #0f172a;
    margin-bottom: 10px;
}

.box-ferramenta p {
    color: #64748b;
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #cbd5e1;
    padding: 40px;
    border-radius: 12px;
    background: #f8fafc;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: #0077ff;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.btn-processar {
    background: #0077ff;
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 25px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-processar:hover {
    background: #005bb5;
}

.previa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.previa-grid img {
    max-width: 100%;
    height: 250px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f1f5f9;
    padding: 10px;
}

.btn-download {
    display: inline-block;
    background: #16a34a;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 25px;
    transition: background 0.2s;
}

.btn-download:hover {
    background: #15803d;
}

/* Spinner de Carregamento */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0077ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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