/* General Reset and Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #fff;
    background-color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden; /* Adicionado para tentar prevenir scroll horizontal em geral */
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Utility Classes --- */
.text-yellow {
    color: #ffd700;
}

.icon-yellow {
    color: #ffd700;
}

.hidden {
    display: none !important;
}

.float-right {
    float: right;
}

.margin-top-10 {
    margin-top: 10px;
}
.margin-top-30 {
    margin-top: 30px;
}

/* --- Specific Body Backgrounds --- */
.login-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a, #333);
}

.admin-page-body {
    background-color: #1a1a1a;
}

/* --- Landing Page Styles (unchanged from previous response, ensure it's here for completeness) --- */
.black-november-countdown {
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.black-november-countdown::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.black-november-countdown h1,
.black-november-countdown .countdown-timer {
    position: relative;
    z-index: 2;
}

.black-november-title { font-size: 2.5em; font-weight: 800; margin-bottom: 30px; letter-spacing: 2px; }
.countdown-timer { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; }
.time-block { background-color: #ffd700; color: #1a1a1a; padding: 15px 20px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; min-width: 90px; box-sizing: border-box; }
.time-block .number { font-size: 2.5em; font-weight: 700; }
.time-block .label { font-size: 0.8em; text-transform: uppercase; font-weight: 500; }
.countdown-timer .separator { font-size: 2.5em; font-weight: 700; color: #ffd700; }

.landing-page-content { background-color: #8C261C; padding: 60px 20px; }
.main-offer-section { display: flex; max-width: 1200px; margin: 0 auto; gap: 50px; align-items: flex-start; flex-wrap: wrap;}
.offer-details { flex: 2; padding-right: 30px; box-sizing: border-box; }
.brand-logo { display: flex; align-items: center; font-size: 1.2em; font-weight: 600; margin-bottom: 20px; }
.brand-logo .fas { margin-right: 10px; font-size: 1.5em; }
.offer-title { font-size: 3.2em; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.offer-description { font-size: 1.1em; margin-bottom: 30px; color: rgba(255, 255, 255, 0.9); }
.offer-highlights { display: flex; gap: 30px; font-size: 1em; font-weight: 500; flex-wrap: wrap; }
.offer-highlights span { display: flex; align-items: center; gap: 8px; }
.offer-highlights .fas { font-size: 1.1em; }

.contact-form-card { flex: 1; background-color: #3f1a23; padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); box-sizing: border-box; }
.contact-form-card h3 { font-size: 1.8em; margin-bottom: 10px; font-weight: 700; }
.contact-form-card p { margin-bottom: 25px; color: rgba(255, 255, 255, 0.8); }
.contact-form-card form input[type="text"], .contact-form-card form input[type="tel"], .contact-form-card form input[type="email"], .contact-form-card form select { width: 100%; padding: 12px 15px; margin-bottom: 15px; border: 1px solid #555; border-radius: 5px; background-color: #2e0e16; color: #fff; font-size: 1em; box-sizing: border-box; }
.contact-form-card form input::placeholder, .contact-form-card form select { color: rgba(255, 255, 255, 0.6); }
.contact-form-card form select option { background-color: #2e0e16; color: #fff; }
.phone-input { display: flex; margin-bottom: 15px; flex-wrap: wrap; }
.phone-input span { background-color: #2e0e16; padding: 12px 10px; border: 1px solid #555; border-right: none; border-radius: 5px 0 0 5px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; box-sizing: border-box; }
.phone-input input { flex-grow: 1; border-radius: 0 5px 5px 0 !important; margin-bottom: 0 !important; box-sizing: border-box; }
.select-group { display: flex; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.select-group select { flex: 1; margin-bottom: 0; box-sizing: border-box; }
.checkbox-container { display: block; position: relative; padding-left: 30px; margin-bottom: 25px; cursor: pointer; font-size: 0.9em; color: rgba(255, 255, 255, 0.7); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkbox-container .checkmark { position: absolute; top: 0; left: 0; height: 20px; width: 20px; background-color: #2e0e16; border: 1px solid #555; border-radius: 3px; }
.checkbox-container:hover input ~ .checkmark { background-color: #444; }
.checkbox-container input:checked ~ .checkmark { background-color: #ffd700; border-color: #ffd700; }
.checkbox-container .checkmark:after { content: ""; position: absolute; display: none; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #1a1a1a; border-width: 0 3px 3px 0; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); }
.checkbox-container input:checked ~ .checkmark:after { display: block; }
.btn-submit { width: 100%; padding: 15px 20px; background-color: #a02c21; color: #fff; border: none; border-radius: 5px; font-size: 1.1em; font-weight: 600; cursor: pointer; transition: background-color 0.3s ease; }
.btn-submit:hover { background-color: #8c261c; }


/* SEÇÃO DE PRODUTOS - REVERTIDA PARA SEU CÓDIGO ANTIGO + CORREÇÕES DE RESPONSIVIDADE */
.irresistible-offers { 
    max-width: 1200px; 
    margin: 60px auto; 
    text-align: center; 
    padding: 0 20px; /* Mantido o padding lateral como no seu código antigo */
}
.irresistible-offers h2 { 
    font-size: 2.5em; 
    font-weight: 800; 
    color: #ffd700; 
    margin-bottom: 15px; 
}
.irresistible-offers p { 
    font-size: 1.1em; 
    color: rgba(255, 255, 255, 0.9); 
}
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Seu grid original */
    gap: 30px; /* Seu gap original */
}
.product-card { 
    background-color: #a02c21; /* Cor do seu código antigo */
    border-radius: 10px; 
    overflow: hidden; 
    text-align: center; /* Mantido como no seu código antigo */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); 
    box-sizing: border-box; /* Adicionado: Crucial para padding e bordas não causarem overflow */
    padding: 0 0 15px 0; /* Adicionado: Padding inferior para o botão, ajuste de padding geral */
    display: flex; /* Adicionado: Para organizar conteúdo verticalmente */
    flex-direction: column; /* Adicionado: Empilha o conteúdo */
    justify-content: space-between; /* Adicionado: Empurra o botão para o final do card */
}
.product-card img { 
    width: 100%; 
    height: 200px; /* Altura original da imagem */
    object-fit: cover; /* Comportamento da imagem original */
    display: block; 
    box-sizing: border-box; /* Adicionado: Garantir box-sizing */
}
.product-card h4 { 
    font-size: 1.4em; 
    font-weight: 700; 
    margin: 20px 15px 15px; /* Adicionado padding lateral (15px) para evitar texto colado nas bordas */
    text-align: left; /* Adicionado: Alinha o título à esquerda, como na imagem de referência */
}
/* Estilos para as seções de detalhes (Tamanhos e Códigos) - Presumindo que existem no PHP */
.product-details-section {
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    text-align: left; /* Alinhado à esquerda */
    margin-left: 15px; /* Alinha com o h4 */
    margin-right: 15px; /* Alinha com o h4 */
}

.product-details-title {
    font-weight: 600;
    font-size: 0.9em;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 5px 0;
}

.product-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 10px; /* Ajusta margem para lista */
    font-size: 0.85em;
    color: #ffffff;
}

.product-details-list li {
    padding: 2px 0;
    border-bottom: 1px dotted rgba(255,255,255,0.05);
}

.product-card .btn-offer { 
    background-color: #8c261c; 
    color: #fff; 
    padding: 12px 25px; 
    border: none; 
    border-radius: 5px; 
    font-size: 1em; 
    font-weight: 600; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
    margin: 15px 15px 0; /* Adicionado: Margens para alinhar e dar espaço */
    width: calc(100% - 30px); /* Adicionado: Garante que o botão ocupe a largura interna do card, descontando as margens */
    align-self: center; /* Adicionado: Centraliza o botão dentro do card flex */
    box-sizing: border-box; /* Adicionado: Garantir box-sizing */
}
.product-card .btn-offer:hover { background-color: #7a221a; }
/* FIM DA SEÇÃO DE PRODUTOS */


/* --- Login Page Styles (unchanged from previous response, ensure it's here for completeness) --- */
.login-container { background-color: #2a2a2a; padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); width: 100%; max-width: 400px; text-align: center; box-sizing: border-box; }
.login-header { margin-bottom: 30px; }
.login-icon { font-size: 3em; color: #ffd700; margin-bottom: 15px; }
.login-header h2 { font-size: 2em; margin-bottom: 10px; color: #ffd700; font-weight: 700; }
.login-header p { color: rgba(255, 255, 255, 0.7); font-size: 0.95em; }
.login-form .form-group { text-align: left; margin-bottom: 20px; }
.login-form .form-group label { display: block; margin-bottom: 8px; font-size: 0.9em; color: rgba(255, 255, 255, 0.8); font-weight: 500; }
.login-form .form-group input { width: 100%; padding: 12px 15px; margin-bottom: 15px; border: 1px solid #555; border-radius: 5px; background-color: #333; color: #fff; font-size: 1em; box-sizing: border-box; }
.login-form .form-group input::placeholder { color: rgba(255, 255, 255, 0.5); }
.login-form .form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; font-size: 0.9em; }
.login-form .forgot-password { color: #ffd700; transition: color 0.3s ease; }
.login-form .forgot-password:hover { color: #fff; text-decoration: underline; }
.btn-login { width: 100%; padding: 15px 20px; background-color: #ffd700; color: #1a1a1a; border: none; border-radius: 5px; font-size: 1.1em; font-weight: 700; cursor: pointer; transition: background-color 0.3s ease; }
.btn-login:hover { background-color: #e0b800; }
.login-footer { margin-top: 30px; font-size: 0.9em; }
.login-footer a { color: rgba(255, 255, 255, 0.7); transition: color 0.3s ease; }
.login-footer a:hover { color: #fff; text-decoration: underline; }


/* --- Admin Layout Structure --- */
.admin-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-header-area {
    background-color: #1a1a1a; /* Top black bar */
    padding: 20px 20px 10px; /* Adjust padding to match image */
    border-bottom: 1px solid #444;
}

.admin-title-top {
    max-width: 1200px;
    margin: 0 auto 20px; /* Space below title */
    font-size: 2.2em;
    font-weight: 800;
    color: #ffd700;
    text-align: center;
}

.admin-header-bottom-bar {
    max-width: 1200px; /* Consistent max-width for content */
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Space out user info and nav */
    align-items: center;
    padding-bottom: 10px; /* Space above border-bottom if needed */
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9em;
    flex-shrink: 0; /* Prevent shrinking */
}

.admin-user-info p {
    margin: 0;
}

.admin-user-info .role {
    color: rgba(255, 255, 255, 0.6);
}

.admin-user-info .fas { /* For logout icon */
    font-size: 1.2em;
    color: #ccc;
    transition: color 0.3s ease;
}

.admin-user-info .fas:hover {
    color: #ffd700;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Alinhado à esquerda na imagem do manage-leads */
    gap: 10px;
}

.nav-item {
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-item:hover {
    background-color: #444;
    color: #ffd700;
}

.nav-item.active {
    background-color: #ffd700;
    color: #1a1a1a;
}

/* Specific content area for dashboard and leads config with reddish background */
.admin-content-area-dashboard,
.admin-content-area-dark-red {
    flex-grow: 1;
    background-color: #8C261C; /* Dark reddish-brown background from image */
    max-width: 100%; /* Spans full width */
    padding: 40px 20px; /* Adjust padding */
    margin: 0; /* No margin as it spans full width */
    display: flex; /* Use flex to center inner content */
    justify-content: center;
}

/* Generic content area for other admin pages (e.g., Editor, Users - if they are not dark-red) */
.admin-content-area {
    flex-grow: 1;
    max-width: 1200px; /* Centralizes content and defines max width */
    margin: 40px auto;
    padding: 0 20px;
}

/* Wrapper to centralize content inside dark-red areas */
.admin-content-inner-wrapper {
    width: 100%;
    max-width: 1200px; /* Restrict inner content width */
}


.dashboard-grid {
    width: 100%; /* Take full width of its container (admin-content-area-dashboard) */
    max-width: 1200px; /* Restrict inner grid max width */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}


.admin-footer-area {
    background-color: #1a1a1a;
    padding: 20px 20px; /* Adjusted padding */
    text-align: right;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: auto; /* Pushes footer to the bottom */
    border-top: 1px solid #444;
}

.made-in-bolt {
    display: inline-flex; /* Use flex for icon and text alignment */
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    padding: 5px 10px; /* Add some padding */
    background-color: #333; /* Dark background for the tag */
    border-radius: 5px;
}
.made-in-bolt .fas {
    color: #ffd700; /* Yellow bolt icon */
}


/* --- Admin Components Styling --- */

/* Cards */
.admin-card {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* margin-bottom handled by grid gap or form-section */
}

.admin-card h3 {
    font-size: 1.5em;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 20px;
}

.card-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px; /* Spacing between title and button if wrapped */
}

.card-header-with-button h3 {
    margin-bottom: 0;
    flex-grow: 1; /* Allow title to take space */
}

/* Dashboard Specifics */
.dashboard-grid .big-number {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
}

.dashboard-grid .card-description {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* Progress Bars */
.progress-item {
    margin-bottom: 15px;
}

.progress-item span:first-child {
    display: block;
    font-size: 0.95em;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.progress-bar {
    background-color: #444;
    height: 25px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-weight: 600;
    color: #1a1a1a;
    border-radius: 5px;
    min-width: 1%; /* Ensure fill is visible even for small values */
}

.progress-bar.progress-yellow .progress-fill {
    background-color: #ffd700;
}

.progress-bar.progress-green .progress-fill {
    background-color: #28a745;
}

.progress-bar.progress-blue .progress-fill {
    background-color: #007bff;
}

/* Ranking List */
.ranking-list {
    list-style: none;
    counter-reset: ranking-item; /* Initialize counter */
}

.ranking-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #3a3a3a;
}

.ranking-list li:last-child {
    border-bottom: none;
}

.ranking-list li span:first-child {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Styling for the numbered circles in ranking */
.ranking-list li::before {
    content: counter(ranking-item);
    counter-increment: ranking-item;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #ffd700; /* Yellow background */
    color: #1a1a1a; /* Dark text */
    font-size: 0.9em;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
}


.ranking-list li .leads-count {
    font-size: 0.9em;
    color: #ffd700;
    font-weight: 600;
}

/* --- Forms & Inputs --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input:not([type="checkbox"]):not([type="color"]):not([type="file"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.form-group input::placeholder,
.form-group select option {
    color: rgba(255, 255, 255, 0.6);
}

.form-group.with-button {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap; /* Allow wrapping */
}

.form-group.with-button label {
    flex-basis: 100%; /* Label takes full width on top */
}

.form-group.with-button input {
    flex-grow: 1;
    margin-bottom: 0;
    min-width: 150px; /* Ensure input has a minimum width before wrapping */
    box-sizing: border-box;
}

/* Form Sections */
.form-section { /* Applied to admin-card where forms are */
    margin-bottom: 30px; /* Consistent spacing */
}

.form-section-group {
    background-color: #2e2e2e;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-section-title {
    color: #ffd700;
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #3a3a3a;
    padding-bottom: 8px;
}

.sub-section-title {
    color: #ffd700;
    font-size: 1.1em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.form-actions {
    margin-top: 40px;
    text-align: right;
    display: flex; /* Use flexbox for button alignment */
    justify-content: flex-end; /* Align buttons to the right */
    gap: 15px; /* Spacing between buttons */
}

/* --- Buttons --- */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #ffd700;
    color: #1a1a1a;
    font-weight: 700;
}

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

.btn-secondary {
    background-color: #444;
    color: #fff;
    padding: 10px 18px; /* Slightly smaller for secondary */
    font-size: 0.9em;
}

.btn-secondary:hover {
    background-color: #555;
}

.btn-cancel {
    background-color: #666;
    color: #fff;
    /* margin-right: 15px; Removido, usando gap do flexbox */
}

.btn-cancel:hover {
    background-color: #777;
}

/* Buttons in user list table */
.user-actions-cell, .leads-table .lead-actions-cell { /* Applies to both user and lead actions */
    white-space: nowrap; /* Impede que os botões quebrem linha */
    text-align: center; /* Alinha os botões ao centro da célula */
    min-width: 120px; /* Garante espaço para os botões */
}

.btn-icon {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1.1em;
    padding: 5px;
    transition: color 0.3s ease;
    margin: 0 2px; /* Espaçamento entre ícones */
}

.btn-icon:hover {
    color: #ffd700;
}

.btn-icon.action-edit {
    color: #007bff;
}
.btn-icon.action-edit:hover {
    color: #5cb85c;
}

.btn-icon.action-view {
    color: #17a2b8;
}
.btn-icon.action-view:hover {
    color: #28a745;
}


.btn-icon.action-send-password {
    color: #ffc107;
}
.btn-icon.action-send-password:hover {
    color: #ffd700;
}

.btn-icon.action-delete {
    color: #ff4d4d;
}
.btn-icon.action-delete:hover {
    color: #dc3545;
}


/* --- Toggle Switch --- */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-right: 15px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #ffd700;
}

input:focus + .slider {
    box-shadow: 0 0 1px #ffd700;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.integration-toggle-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.integration-toggle-group span {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
}

.integration-fields {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    margin-top: -10px;
    margin-bottom: 20px;
}

/* --- Dynamic Field Containers (for leads, highlights, products) --- */
.dynamic-field-container {
    margin-top: 15px;
}

.dynamic-field-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background-color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    flex-wrap: wrap;
}

.dynamic-field-item input[type="text"] {
    flex: 1;
    margin-bottom: 0;
    padding: 8px 10px;
    font-size: 0.9em;
    box-sizing: border-box;
}

/* Small checkbox label for dynamic fields */
.checkbox-label {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
    user-select: none;
    white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label .checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #2e0e16;
    border: 1px solid #555;
    border-radius: 3px;
}

.checkbox-label:hover input ~ .checkmark {
    background-color: #444;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #ffd700;
    border-color: #ffd700;
}

.checkbox-label .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 0px;
    width: 4px;
    height: 8px;
    border: solid #1a1a1a;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}


/* --- Tables (for Leads Config and User Management) --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    table-layout: auto;
}

.data-table th, .data-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #3a3a3a;
    font-size: 0.9em;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table th {
    color: #ffd700;
    font-weight: 600;
    text-transform: uppercase;
}

.data-table td {
    color: rgba(255, 255, 255, 0.8);
}

.data-table tbody tr:hover {
    background-color: #2e2e2e;
}


/* Tags for Integrations in table */
.tag {
    display: inline-block;
    background-color: #444;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-bottom: 5px;
}

.tag-google {
    background-color: #28a745;
}

/* --- Editor Landing Page Specifics --- */

/* Specific width for the editor card */
.editor-card-full-width {
    width: 100%;
    border: 2px solid #FF00FF !important;
}

.editor-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.editor-tabs-nav .tab-button {
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.editor-tabs-nav .tab-button:hover {
    background-color: #444;
    color: #ffd700;
}

.editor-tabs-nav .tab-button.active {
    background-color: #ffd700;
    color: #1a1a1a;
    font-weight: 700;
}

.tab-content-display-area {
    padding-top: 20px;
}


.form-group-flex-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.form-group-item-half {
    flex: 1;
    min-width: 280px;
}


.inline-form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.inline-form-group label {
    margin-bottom: 0;
    flex-shrink: 0;
}
.inline-form-group .btn {
    flex-shrink: 0;
}

.hidden-file-input {
    display: none;
}

/* Image preview box (for logo and background) */
.image-preview-box {
    background-color: #333;
    border: 1px solid #444;
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 40px;
    padding: 8px 15px;
    font-size: 0.9em;
    flex-grow: 1;
    box-sizing: border-box;
}
.image-preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.image-preview-box .fas {
    margin-right: 8px;
}


/* For toggle and text on the same line */
.form-section-group .toggle-switch {
    float: right;
    margin-left: 15px;
}

.toggle-label-text {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 34px;
    display: inline-block;
}

.dynamic-field-item.type-select-item select {
    flex-shrink: 0;
    width: 120px;
    margin-bottom: 0;
    box-sizing: border-box;
}

.product-editor-container {
    display: flex;
    flex-direction: column;
}

.dynamic-field-item.product-editor-item {
    padding: 10px 15px;
}

.dynamic-field-item.product-editor-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.dynamic-field-item.product-editor-item input[type="text"] {
    flex-grow: 1;
    box-sizing: border-box;
}

.dynamic-field-item.product-editor-item .btn-secondary {
    flex-shrink: 0;
    padding: 8px 15px;
    font-size: 0.85em;
}

.color-palette-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}

.color-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.color-picker-item label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.color-picker-item input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 5px;
    overflow: hidden;
}

.color-picker-item input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.color-picker-item input[type="color"]::-webkit-color-swatch {
    border: none;
}
.color-picker-item input[type="color"]::-moz-color-swatch {
    border: none;
}

.color-picker-item input[type="text"] {
    width: 90px;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.85em;
    margin-bottom: 0;
    box-sizing: border-box;
}

/* --- User Management Specifics --- */
.user-management-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.user-list-card {
    grid-column: 1;
}

.create-user-card {
    grid-column: 2;
}

.user-role {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 500;
}

.admin-role {
    background-color: #ff4d4d; /* Red from image */
    color: #1a1a1a; /* Dark text */
}
.editor-role {
    background-color: #ffd700; /* Yellow from image */
    color: #1a1a1a; /* Dark text */
}
.viewer-role {
    background-color: #6c757d;
    color: #fff;
}

/* --- Logs e Permissões --- */
.log-list-card, .permissions-table-card { /* Usado para os cards de logs e permissões */
    grid-column: 1 / -1; /* Ocupa toda a largura */
}

.permissions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    table-layout: auto;
}
.permissions-table th, .permissions-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #3a3a3a;
    font-size: 0.9em;
    vertical-align: middle;
}
.permissions-table th {
    color: #ffd700;
    font-weight: 600;
    text-transform: uppercase;
}
.permissions-table td {
    color: rgba(255, 255, 255, 0.8);
}
.permissions-table tbody tr:hover {
    background-color: #2e2e2e;
}
.permissions-table .toggle-switch { /* Alinhar o toggle na célula */
    margin-right: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* --- Leads Management Specifics --- */
.leads-dashboard-section {
    margin-bottom: 30px;
    border: 2px solid #00BFFF !important;
}

.leads-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.leads-overview-item {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.leads-overview-item h4 {
    color: #ffd700;
    font-size: 1.1em;
    margin-bottom: 5px;
}
.leads-overview-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.leads-top-states-card {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    grid-column: 1 / -1;
    text-align: left;
}

.leads-top-states-card h4 {
    color: #ffd700;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.leads-top-states-card .progress-item span:first-child {
    font-size: 1em;
}
.leads-top-states-card .progress-fill span {
    font-size: 0.95em;
}


.card-header-with-export-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}
.card-header-with-export-buttons h3 {
    margin-bottom: 0;
    flex-shrink: 0;
}

.export-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.export-buttons .btn-export-small {
    padding: 8px 15px;
    font-size: 0.9em;
    font-weight: 500;
    min-width: 70px;
}

.manage-leads-search-filter-form {
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #2e2e2e;
    border-radius: 8px;
}
.manage-leads-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
}
.manage-leads-search-filter-form input,
.manage-leads-search-filter-form select {
    flex-grow: 1;
    max-width: 200px;
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    font-size: 0.95em;
    margin-bottom: 0;
    box-sizing: border-box;
}
.manage-leads-search-filter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.manage-leads-search-filter-form button.btn-search-filter,
.manage-leads-search-filter-form a.btn-search-filter {
    flex-shrink: 0;
    padding: 10px 15px;
    font-size: 0.95em;
    min-width: 90px;
}

.manage-leads-table-container {
    overflow-x: auto;
    width: 100%;
}

.manage-leads-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    table-layout: auto;
    min-width: 1050px;
}

.manage-leads-table th, .manage-leads-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #3a3a3a;
    font-size: 0.9em;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manage-leads-table th {
    color: #ffd700;
    font-weight: 600;
    text-transform: uppercase;
}

.manage-leads-table td {
    color: rgba(255, 255, 255, 0.8);
}

.manage-leads-table tbody tr:hover {
    background-color: #2e2e2e;
}

/* Larguras de colunas EXATAS conforme a imagem para manage-leads.php */
.manage-leads-table th:nth-child(1), .manage-leads-table td:nth-child(1) { width: 40px !important; text-align: center !important; }
.manage-leads-table th:nth-child(2), .manage-leads-table td:nth-child(2) { width: 120px !important; white-space: normal !important; text-overflow: clip !important; }
.leads-table th:nth-child(3), .leads-table td:nth-child(3) { width: 180px !important; }
.leads-table th:nth-child(4), .leads-table td:nth-child(4) { width: 120px !important; }
.leads-table th:nth-child(5), .leads-table td:nth-child(5) { width: 140px !important; }
.leads-table th:nth-child(6), .leads-table td:nth-child(6) { width: 90px !important; }
.leads-table th:nth-child(7), .leads-table td:nth-child(7) { width: 90px !important; }
.leads-table th:nth-child(8), .leads-table td:nth-child(8) { width: 120px !important; }
.leads-table th:nth-child(9), .leads-table td:nth-child(9) { width: 110px !important; }
.leads-table th:nth-child(10), .leads-table td:nth-child(10) { width: 90px !important; text-align: center !important; }

.manage-leads-actions-cell {
    display: flex !important;
    justify-content: center !important;
    gap: 5px !important;
    width: auto !important;
}

/* Estilos para a página de Detalhes do Lead (view_lead.php) e Edição (edit_lead.php) */
.lead-details-grid, .form-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.lead-details-grid .detail-item, .form-group-grid .form-group {
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
}
.lead-details-grid .detail-item h4, .form-group-grid .form-group label {
    color: #ffd700;
    font-size: 1em;
    margin-bottom: 5px;
}
.lead-details-grid .detail-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
    margin: 0;
}
.lead-details-grid .detail-item.full-width {
    grid-column: 1 / -1;
}
.form-group-grid .form-group-checkbox {
    display: flex;
    align-items: center;
    padding-top: 20px;
}
.form-group-grid .checkbox-label {
    margin-bottom: 0;
}


/* --- Mensagens de Alerta (para formulário da landing page e admin) --- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    color: #1a1a1a;
}

.alert.success {
    background-color: #28a745;
    color: #fff;
}

.alert.error {
    background-color: #dc3545;
    color: #fff;
}

/* --- Modal Styles (para confirmações) --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.modal-backdrop.visible .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
}

.modal-header h3 {
    font-size: 1.6em;
    color: #ffd700;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.8em;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-body {
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-body .fas {
    font-size: 3em;
    margin-bottom: 15px;
    color: #ffd700;
}

.modal-footer {
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* -------------------------------------------------------------------------- */
/*                          MEDIA QUERIES (RESPONSIVE)                        */
/* -------------------------------------------------------------------------- */

@media (max-width: 992px) {
    /* LANDING PAGE - Seção principal de oferta e formulário */
    .main-offer-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        margin: 30px auto;
        padding: 0 20px;
    }

    .offer-details {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 0;
    }

    .offer-highlights {
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-form-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 25px;
    }

    /* LANDING PAGE - Ajustes para inputs e selects dentro do formulário */
    .phone-input {
        flex-direction: column;
        align-items: stretch;
    }

    .phone-input span {
        width: 100%;
        border-radius: 5px 5px 0 0;
        border-bottom: none;
        text-align: center;
        padding: 10px;
    }

    .phone-input input[type="tel"] {
        border-radius: 0 0 5px 5px !important;
        border-top: none;
        width: 100%;
    }

    .select-group {
        flex-direction: column;
        gap: 10px;
    }
    .select-group select {
        width: 100%;
        margin-bottom: 0;
    }

    .checkbox-container {
        font-size: 0.85em;
        line-height: 1.3;
        padding-left: 25px;
        text-align: left;
    }
    .checkbox-container .checkmark {
        height: 18px;
        width: 18px;
    }
    .checkbox-container .checkmark:after {
        left: 5px;
        top: 2px;
        width: 4px;
        height: 8px;
    }

    .btn-submit {
        font-size: 1em;
        padding: 12px 15px;
    }

    /* LANDING PAGE - Ajustes gerais de fonte para tablet */
    .black-november-title { font-size: 2.8em; }
    .offer-title { font-size: 2.5em; }
    .irresistible-offers-title { font-size: 2em; }
    .irresistible-offers-description { font-size: 1em; }

    /* ESTILOS DA SEÇÃO DE PRODUTOS PARA TABLET */
    .irresistible-offers { 
        padding: 0 15px; /* Reduz padding lateral da seção */
    }
    .products-grid {
        gap: 20px; /* Ajusta o gap para tablets */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Mantém flexível */
    }
    .product-card {
        padding-bottom: 12px; /* Ajuste padding inferior */
    }
    .product-card img {
        height: 180px; /* Reduz a altura da imagem para tablets */
    }
    .product-card h4 { 
        font-size: 1.2em; 
        margin: 15px 10px 10px; /* Ajusta margens do título */
    }
    .product-details-section {
        margin-left: 10px;
        margin-right: 10px;
    }
    .product-details-title { font-size: 0.85em; margin: 0 0 4px 0; }
    .product-details-list { font-size: 0.8em; margin: 0 0 0 8px; }
    .product-card .btn-offer {
        padding: 10px 20px;
        font-size: 0.95em;
        margin: 12px 10px 0; /* Ajusta margem e largura do botão */
        width: calc(100% - 20px);
    }


    /* ADMIN LAYOUT - Responsive */
    .admin-header-bottom-bar {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .admin-user-info {
        order: 2;
        margin-top: 15px;
    }
    .admin-nav {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }
    .nav-item {
        width: auto;
        flex-grow: 1;
        justify-content: center;
        max-width: 180px;
    }
    .admin-title-top {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .admin-content-area-dashboard,
    .admin-content-area-dark-red,
    .admin-content-area {
        padding: 30px 15px;
    }
    .user-management-grid {
        grid-template-columns: 1fr;
    }
    .user-list-card, .create-user-card {
        grid-column: auto;
    }
    .card-header-with-button {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .card-header-with-button .btn {
        width: 100%;
    }
    .form-group.with-button {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-group.with-button input {
        width: 100%;
    }
    .form-group.with-button .btn {
        width: auto;
    }
    .toggle-label-text {
        float: none;
        display: block;
        margin-top: 10px;
        text-align: left;
    }

    .form-group-flex-container {
        flex-direction: column;
        gap: 20px;
    }
    .form-group-item-half {
        width: 100%;
        min-width: unset;
    }
    .inline-form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .inline-form-group .image-preview-box,
    .inline-form-group .btn {
        width: 100%;
    }
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    .form-actions .btn {
        width: 100%;
    }
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    .modal-footer .btn {
        width: 100%;
    }

    /* Leads Management Responsive */
    .leads-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .leads-top-states-card {
        margin-top: 20px !important;
        grid-column: auto !important;
    }
    .card-header-with-export-buttons {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    .export-buttons {
        justify-content: center !important;
        width: 100% !important;
    }
    .manage-leads-search-filter-form {
        padding: 15px !important;
    }
    .manage-leads-filter-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .manage-leads-search-filter-form input,
    .manage-leads-search-filter-form select,
    .manage-leads-search-filter-form button.btn-search-filter,
    .manage-leads-search-filter-form a.btn-search-filter {
        width: 100% !important;
        max-width: none !important;
    }
    .manage-leads-table-container {
        overflow-x: auto;
    }
    .manage-leads-table {
        min-width: 900px !important;
        width: auto !important;
        table-layout: fixed !important;
    }
    /* Ajustes finos de largura de coluna para tablets */
    .manage-leads-table th:nth-child(2), .manage-leads-table td:nth-child(2) { width: 100px !important; white-space: normal !important; text-overflow: clip !important; }
    .manage-leads-table th:nth-child(3), .manage-leads-table td:nth-child(3) { width: 150px !important; }
    .manage-leads-table th:nth-child(4), .manage-leads-table td:nth-child(4) { width: 100px !important; }
    .manage-leads-table th:nth-child(5), .manage-leads-table td:nth-child(5) { width: 120px !important; }
    .manage-leads-table th:nth-child(6), .manage-leads-table td:nth-child(6) { width: 80px !important; }
    .manage-leads-table th:nth-child(7), .manage-leads-table td:nth-child(7) { width: 80px !important; }
    .manage-leads-table th:nth-child(8), .manage-leads-table td:nth-child(8) { width: 100px !important; }
    .manage-leads-table th:nth-child(9), .manage-leads-table td:nth-child(9) { width: 100px !important; }
    .manage-leads-table th:nth-child(10), .manage-leads-table td:nth-child(10) { width: 80px !important; text-align: center !important; }

    .manage-leads-actions-cell {
        gap: 5px !important;
        width: auto !important;
    }

    .lead-details-grid, .form-group-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        max-width: 90%;
        margin: 0 15px;
    }
}

@media (max-width: 600px) {
    /* LANDING PAGE - Ajustes para Telas de Smartphone Pequenas (<= 600px) */
    .black-november-title { font-size: 2.2em; }
    .countdown-timer { gap: 8px; }
    .time-block { padding: 8px 12px; min-width: 65px; max-width: 120px; }
    .time-block .number { font-size: 1.8em; }
    .countdown-timer .separator { display: none; }
    .offer-title { font-size: 2em; }
    .offer-details { padding: 0 5px; }
    .offer-highlights span { font-size: 0.9em; padding: 6px 12px; }
    .main-offer-section { gap: 20px; padding: 0 15px; }
    .contact-form-card { padding: 20px; max-width: 100%; }
    .contact-form-card h3 { font-size: 1.6em; }
    .contact-form-card p { font-size: 0.9em; }
    .btn-submit { padding: 10px 12px; font-size: 0.95em; }

    /* ESTILOS DA SEÇÃO DE PRODUTOS PARA MOBILE */
    .irresistible-offers { 
        padding: 30px 15px; margin: 30px auto; 
    }
    .irresistible-offers h2 { 
        font-size: 1.8em; 
    }
    .irresistible-offers p { 
        font-size: 0.9em; 
        margin-bottom: 20px; 
    }
    .products-grid {
        padding: 0 10px; /* Adiciona padding lateral ao grid para evitar que os cards toquem as bordas */
        gap: 15px; /* Ajusta o gap */
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Permite que o card seja um pouco menor, garantindo 1 coluna em telas menores */
    }
    .product-card {
        padding-bottom: 10px; /* Reduz padding inferior */
        max-width: 320px; /* Limita largura máxima, para não ficar gigante em algumas telas */
        margin: 0 auto; /* Centraliza o card quando em coluna única */
    }
    .product-card img {
        height: 160px; /* Reduz a altura da imagem para smartphones */
    }
    .product-card h4 { font-size: 1.1em; margin: 12px 10px 8px; } /* Ajusta margens do título */
    .product-details-section {
        margin-left: 10px;
        margin-right: 10px;
        font-size: 0.9em;
    }
    .product-details-title { font-size: 0.8em; margin: 0 0 3px 0; }
    .product-details-list { font-size: 0.75em; margin: 0 0 0 8px; }
    .product-card .btn-offer {
        padding: 10px 15px;
        font-size: 0.9em;
        margin: 10px 10px 0; /* Ajusta margem e largura do botão */
        width: calc(100% - 20px);
    }

    .landing-page-footer { padding: 20px 10px; font-size: 0.75em; }


    /* ADMIN LAYOUT - Responsive */
    .admin-content-area {
        margin: 20px auto;
        padding: 0 10px;
    }
    .admin-card {
        padding: 15px;
    }
    .admin-card h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    .dashboard-grid .big-number {
        font-size: 2.2em;
    }
    .data-table {
        font-size: 0.75em;
    }
    .data-table th, .data-table td {
        padding: 6px 8px;
    }
    .dynamic-field-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .dynamic-field-item input[type="text"] {
        width: 100%;
        flex-basis: auto;
    }
    .dynamic-field-item .btn-icon {
        align-self: flex-end;
    }
    .checkbox-label {
        width: 100%;
        margin-top: 5px;
    }
    .dynamic-field-item.type-select-item select {
        width: 100%;
        margin-bottom: 0;
    }
    .color-palette-group {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .color-picker-item {
        width: 100%;
        max-width: 200px;
    }
    .color-picker-item input[type="text"] {
        width: 100%;
    }

    /* LEADS MANAGEMENT - Responsive */
    .manage-leads-table {
        min-width: 600px !important;
        table-layout: fixed !important;
    }
    /* Ajustes finos de largura de coluna para telas muito pequenas */
    .manage-leads-table th:nth-child(1), .manage-leads-table td:nth-child(1) { width: 30px !important; }
    .manage-leads-table th:nth-child(2), .manage-leads-table td:nth-child(2) { width: 90px !important; white-space: normal !important; text-overflow: clip !important;}
    .manage-leads-table th:nth-child(3), .manage-leads-table td:nth-child(3) { width: 120px !important; }
    .manage-leads-table th:nth-child(4), .manage-leads-table td:nth-child(4) { width: 90px !important; }
    .manage-leads-table th:nth-child(5), .manage-leads-table td:nth-child(5) { width: 100px !important; }
    .manage-leads-table th:nth-child(6), .manage-leads-table td:nth-child(6) { width: 70px !important; }
    .manage-leads-table th:nth-child(7), .manage-leads-table td:nth-child(7) { width: 70px !important; }
    .manage-leads-table th:nth-child(8), .manage-leads-table td:nth-child(8) { width: 90px !important; }
    .manage-leads-table th:nth-child(9), .manage-leads-table td:nth-child(9) { width: 90px !important; }
    .manage-leads-table th:nth-child(10), .manage-leads-table td:nth-child(10) { width: 70px !important; }

    .manage-leads-actions-cell {
        gap: 3px !important;
    }

    .modal {
        padding: 20px;
        margin: 0 10px;
    }
    .modal-header h3 {
        font-size: 1.4em;
    }
    .modal-close-btn {
        font-size: 1.5em;
    }
    .modal-body .fas {
        font-size: 2.5em;
    }
    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    /* LANDING PAGE - Ajustes para Telas de Smartphone Muito Pequenas (Ex: iPhone SE) */
    .black-november-title { font-size: 1.6em; margin-bottom: 20px; }
    .countdown-timer { gap: 5px; }
    .time-block { padding: 6px 10px; min-width: 60px; max-width: 120px; }
    .time-block .number { font-size: 1.5em; }
    .offer-title { font-size: 1.8em; }
    .offer-description { font-size: 0.9em; margin-bottom: 20px; }
    .offer-highlights span { font-size: 0.85em; padding: 5px 10px; }
    .main-offer-section { gap: 20px; padding: 0 15px; }
    .contact-form-card { padding: 20px; max-width: 100%; }
    .contact-form-card h3 { font-size: 1.3em; }
    .btn-submit { font-size: 1em; padding: 10px 12px; }

    /* ESTILOS DA SEÇÃO DE PRODUTOS PARA MOBILE MUITO PEQUENO */
    .irresistible-offers { 
        padding: 30px 15px; margin: 30px auto; 
    }
    .irresistible-offers h2 { 
        font-size: 1.5em; 
    }
    .irresistible-offers p { 
        font-size: 0.85em; 
        margin-bottom: 25px; 
    }
    .products-grid {
        padding: 0 8px; /* Padding lateral mínimo */
        gap: 10px; /* Gap mínimo */
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Permite que o card seja ainda menor */
    }
    .product-card {
        padding-bottom: 8px; /* Padding interno mínimo */
        max-width: 350px; /* Limita a largura máxima do card */
    }
    .product-card img {
        height: 140px; /* Altura mínima da imagem */
    }
    .product-card h4 { font-size: 1em; margin: 10px 8px 6px; } /* Ajusta margens do título */
    .product-details-section {
        margin-left: 8px;
        margin-right: 8px;
        font-size: 0.8em;
    }
    .product-details-title { font-size: 0.75em; margin: 0 0 2px 0; }
    .product-details-list { font-size: 0.7em; margin: 0 0 0 5px; }
    .product-card .btn-offer {
        padding: 8px 12px;
        font-size: 0.85em;
        margin: 8px 8px 0; /* Ajusta margem e largura do botão */
        width: calc(100% - 16px);
    }

    .landing-page-footer { padding: 20px 10px; font-size: 0.75em; }

    /* ADMIN LAYOUT - Responsive */
    .admin-title-top { font-size: 1.3em; }
    .admin-nav .nav-item { font-size: 0.75em; padding: 6px 10px; }
    .admin-card h3 { font-size: 1em; }
    .dashboard-grid .big-number { font-size: 2em; }
    .data-table th, .data-table td { font-size: 0.75em; padding: 5px 6px; }
    .made-in-bolt { font-size: 0.75em; padding: 4px 8px; justify-content: center; }
    .made-in-bolt .fas { font-size: 0.9em; }

    .inline-form-group {
        flex-direction: column;
        align-items: stretch;
    }
    .inline-form-group label {
        width: 100%;
        text-align: center;
    }
    .inline-form-group .image-preview-box,
    .inline-form-group .btn {
        width: 100%;
    }
    .image-preview-box {
        height: auto;
        min-height: 35px;
    }

    .modal {
        padding: 15px;
        max-width: 95%;
    }
    .modal-header h3 {
        font-size: 1.2em;
    }
    .modal-close-btn {
        font-size: 1.3em;
    }
    .modal-body .fas {
        font-size: 2em;
    }
    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }
}