/* style.css - VENDAS TURBO PREMIUM */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: #f8f9fa; color: #333; line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HERO */
.hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 80px 0; }
.hero .container { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.hero-content { flex: 1; min-width: 300px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.highlight { color: #ffd700; font-weight: 900; }
.subtitle { font-size: 1.4rem; margin-bottom: 30px; opacity: 0.9; }
.cta-buttons { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.btn-primary { background: #e74c3c; color: white; padding: 18px 35px; border-radius: 50px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(231,76,60,0.4); }
.btn-primary:hover { background: #c0392b; transform: translateY(-5px); }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.btn-secondary { background: transparent; color: white; border: 2px solid white; padding: 16px 30px; border-radius: 50px; text-decoration: none; }
.btn-secondary:hover { background: white; color: #667eea; }

.trust-badges img { height: 40px; margin: 0 10px; filter: brightness(0) invert(1); }
.hero-image img { max-width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

/* PROOF */
.proof { padding: 60px 0; background: white; }
.stats { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; }
.stat h3 { font-size: 2.5rem; color: #e74c3c; font-weight: 900; }
.stat p { color: #666; }

/* HOW IT WORKS */
.how-it-works { padding: 80px 0; background: #f8f9fa; text-align: center; }
.how-it-works h2 { margin-bottom: 50px; font-size: 2.5rem; }
.steps { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.step { background: white; padding: 30px; border-radius: 20px; width: 280px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.icon { font-size: 3rem; color: #667eea; margin-bottom: 20px; }

/* PRICING */
.pricing { padding: 100px 0; background: white; text-align: center; }
.pricing h2 { margin-bottom: 60px; font-size: 2.5rem; }
.plans { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.plan { background: #f8f9fa; padding: 40px; border-radius: 20px; width: 300px; position: relative; transition: transform 0.3s; }
.plan:hover { transform: translateY(-15px); }
.featured { background: linear-gradient(135deg, #667eea, #764ba2); color: white; transform: scale(1.05); }
.featured .badge { position: absolute; top: -15px; background: #ffd700; color: #333; padding: 8px 20px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; }
.price { font-size: 3rem; font-weight: 900; margin: 20px 0; }
.price span { font-size: 1rem; font-weight: normal; }
.plan ul { list-style: none; margin: 30px 0; text-align: left; }
.plan ul li { margin: 12px 0; position: relative; padding-left: 25px; }
.plan ul li:before { content: "✓"; color: #27ae60; position: absolute; left: 0; font-weight: bold; }
.btn-plan { display: block; background: #e74c3c; color: white; padding: 15px; border-radius: 50px; text-decoration: none; font-weight: 700; }
.featured .btn-plan { background: white; color: #667eea; }

/* TESTIMONIALS */
.testimonials { padding: 80px 0; background: #667eea; color: white; text-align: center; }
.testimonial p { font-size: 1.5rem; font-style: italic; margin-bottom: 15px; }

/* FOOTER */
footer { background: #333; color: white; padding: 40px 0; text-align: center; }
footer a { color: #ffd700; text-decoration: none; }

/* RESPONSIVO */
@media (max-width: 768px) {
    .hero .container { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .stats, .steps, .plans { flex-direction: column; align-items: center; }
}

/* ======================================== */
/* CADASTRO */
/* ======================================== */

.cadastro-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.form-container {
    background: white;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #e74c3c, #ffd700, #27ae60);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.1rem;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.plano-select {
    margin: 25px 0;
}

.plano-select label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.plan-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.plan-option {
    flex: 1;
    min-width: 120px;
}

.plan-option input {
    display: none;
}

.plan-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
}

.plan-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.plan-card .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e74c3c;
    margin: 8px 0;
}

.plan-card small {
    color: #666;
    font-size: 0.85rem;
}

.plan-option input:checked + .plan-card {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.plan-card.featured {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.05);
}

.plan-card.featured .price,
.plan-card.featured h4,
.plan-card.featured small { color: white; }

.badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffd700;
    color: #333;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-submit {
    width: 100%;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25 feedback;
}

.login-link {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* ======================================== */
/* LOGIN */
/* ======================================== */

.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.login-page .form-container {
    background: white;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.login-page .form-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #e74c3c, #ffd700, #27ae60);
}

.login-page .form-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-page .form-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.login-page .form-header p {
    color: #666;
    font-size: 1.1rem;
}

.login-page .input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-page .input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.1rem;
    z-index: 2;
}

.login-page .input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.login-page .input-group input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
}

.checkbox-label input {
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s;
}

.checkbox-label input:checked ~ .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: #667eea;
    font-size: 0.9rem;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-page .btn-submit {
    width: 100%;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    transition: all 0.3s;
}

.login-page .btn-submit:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231,76,60,0.3);
}

.signup-link {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-top: 20px;
}

.signup-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

.social-login {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-login p {
    color: #888;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.social-btn.google {
    background: #fff;
    color: #333;
    border: 2px solid #ddd;
}

.social-btn.google:hover {
    background: #f8f9fa;
    border-color: #ccc;
    transform: translateY(-2px);
}

.social-btn.facebook {
    background: #1877f2;
    color: white;
}

.social-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.alert.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* ======================================== */
/* DASHBOARD */
/* ======================================== */

.dashboard-page {
    background: #f4f6f9;
    min-height: 100vh;
    display: flex;
    font-family: 'Poppins', sans-serif;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: #1a1a2e;
    color: white;
    padding: 20px;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.sidebar-logo {
    width: 60px;
    border-radius: 50%;
    border: 3px solid #e74c3c;
    margin-bottom: 10px;
}

.sidebar-header h3 {
    font-size: 1.3rem;
    color: #ffd700;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    background: #e74c3c;
    color: white;
}

.nav-link.logout {
    margin-top: auto;
    background: #c0392b;
}

.nav-link i {
    font-size: 1.1rem;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

/* HEADER */
.dashboard-header {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.user-info h4 {
    margin: 0;
    color: #333;
}

.plano-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plano-badge.basic { background: #95a5a6; color: white; }
.plano-badge.pro { background: #f39c12; color: white; }
.plano-badge.enterprise { background: #27ae60; color: white; }

.stats-badges {
    display: flex;
    gap: 20px;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.stat-badge i {
    font-size: 1.3rem;
    color: #667eea;
}

.stat-badge.success i { color: #27ae60; }

.stat-badge strong {
    font-size: 1.3rem;
    color: #333;
}

.stat-badge small {
    color: #777;
    display: block;
}

/* CARD */
.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2 i {
    color: #e74c3c;
}

/* FORM GRID */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.input-group input[readonly] {
    background: #f8f9fa;
    color: #666;
}

/* BUTTONS */
.btn-generate {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    transition: all 0.3s;
}

.btn-generate:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231,76,60,0.3);
}

.btn-copy {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: #5a6fd8;
}

/* RESULTADO */
#resultado pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    border: 1px solid #eee;
    max-height: 500px;
    overflow-y: auto;
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .sidebar { 
        width: 80px;
        padding: 15px 10px;
    }
    .sidebar-header h3, .nav-link span { display: none; }
    .main-content { margin-left: 80px; }
    .dashboard-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    .sidebar { 
        position: fixed;
        bottom: 0;
        top: auto;
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 10px;
        z-index: 1000;
    }
    .main-content { margin-left: 0; padding-bottom: 80px; }
    .form-grid { grid-template-columns: 1fr; }
}

/* ======================================== */
/* ESQUECI / REDEFINIR SENHA */
/* ======================================== */

.esqueci-page, .redefinir-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.esqueci-page .form-container,
.redefinir-page .form-container {
    background: white;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.esqueci-page .form-container::before,
.redefinir-page .form-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #e74c3c, #ffd700, #27ae60);
}

.esqueci-page .form-header,
.redefinir-page .form-header {
    text-align: center;
    margin-bottom: 30px;
}

.esqueci-page .form-header h1,
.redefinir-page .form-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.esqueci-page .form-header p,
.redefinir-page .form-header p {
    color: #666;
    font-size: 1.1rem;
}

.esqueci-page .input-group,
.redefinir-page .input-group {
    position: relative;
    margin-bottom: 20px;
}

.esqueci-page .input-group i,
.redefinir-page .input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.1rem;
}

.esqueci-page .input-group input,
.redefinir-page .input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.esqueci-page .input-group input:focus,
.redefinir-page .input-group input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.esqueci-page .btn-submit,
.redefinir-page .btn-submit {
    width: 100%;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    transition: all 0.3s;
}

.esqueci-page .btn-submit:hover,
.redefinir-page .btn-submit:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231,76,60,0.3);
}

.esqueci-page .login-link,
.redefinir-page .login-link {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

.esqueci-page .login-link a,
.redefinir-page .login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.esqueci-page .login-link a:hover,
.redefinir-page .login-link a:hover {
    text-decoration: underline;
}

/* ====================================
   ADMIN PREMIUM - TININDO + RESPONSIVO PERFEITO
==================================== */

.admin-premium {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #e0e6ff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* EVITA SCROLL HORIZONTAL */
}

/* HEADER */
.admin-header {
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 15px;
}
.admin-header .container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    flex-wrap: nowrap;
}
.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    white-space: nowrap;
}
.logo span { color: #00d4ff; }

/* USER MENU */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #00d4ff;
   : 0 0 18px rgba(0,212,255,0.4);
    flex-shrink: 0;
}
.user-info {
    display: none; /* Esconde nome/role no mobile */
    text-align: right;
}
.name { font-weight: 600; font-size: 0.95rem; }
.role { font-size: 0.75rem; color: #a0a8d6; }
.logout {
    background: #ff4757;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    flex-shrink: 0;
}
.logout:hover { background: #ff3742; transform: rotate(90deg); }

/* HAMBURGUER */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #00d4ff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

/* ADMIN WRAPPER */
.admin-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 15px;
    gap: 25px;
    transition: all 0.3s ease;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: rgba(20,18,48,0.7);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 25px 0;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar nav a {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: #a0a8d6;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    border-left: 3px solid transparent;
}
.sidebar nav a:hover,
.sidebar nav li.active a {
    background: rgba(0,212,255,0.15);
    color: #00d4ff;
    border-left-color: #00d4ff;
}
.sidebar nav i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    min-width: 0; /* ESSENCIAL: evita overflow */
}
.page-header h2 {
    font-size: 1.9rem;
    margin: 0 0 8px;
    font-weight: 700;
}
.highlight { color: #00d4ff; }
.page-header p {
    margin: 0;
    color: #a0a8d6;
    font-size: 0.95rem;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 28px 0;
}
.stat-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 0;
}
.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 18px 36px rgba(0,212,255,0.2);
}
.stat-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: white;
    flex-shrink: 0;
}
.bg-gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bg-gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.bg-gradient-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.stat-card h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}
.stat-card p {
    margin: 3px 0 6px;
    font-size: 0.85rem;
    color: #cfd6ff;
}
.trend {
    font-size: 0.75rem;
    font-weight: 600;
}
.trend.up { color: #4ade80; }
.trend.down { color: #ff6b6b; }

/* GRID 2 COLUNAS */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
}

/* CHART CARD */
.chart-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden; /* EVITA OVERFLOW */
}
.chart-card h3 {
    margin: 0 0 18px;
    font-size: 1.05rem;
    color: #e0e6ff;
}

/* CONTAINER DO GRÁFICO */
.chart-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 12px;
}

/* ATIVIDADE */
.activity-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.1);
}
.activity-card h3 {
    margin: 0 0 18px;
    font-size: 1.05rem;
    color: #e0e6ff;
}
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.activity-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.activity-list li:last-child { border: none; }
.activity-icon {
    width: 38px;
    height: 38px;
    background: rgba(0,212,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    flex-shrink: 0;
}
.activity-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.activity-info strong { color: #fff; font-size: 0.9rem; }
.activity-info em {
    color: #00d4ff;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.time {
    font-size: 0.75rem;
    color: #a0a8d6;
    white-space: nowrap;
}

/* FOOTER */
.admin-footer {
    text-align: center;
    padding: 35px 15px;
    color: #6c7293;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
}
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* ====================================
   RESPONSIVO - PERFEITO
==================================== */

/* TABLET */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .chart-container { height: 240px; }
    .user-info { display: block; }
}

/* MOBILE */
@media (max-width: 768px) {
    /* HAMBURGUER */
    .menu-toggle { display: block; }

    /* HEADER */
    .admin-header .container { padding: 0 10px; }
    .logo h1 { font-size: 1.5rem; }
    .user-info { display: none; }

    /* SIDEBAR */
    .sidebar {
        position: fixed;
        top: 80px;
        left: 0;
        width: 260px;
        height: calc(100vh - 80px);
        transform: translateX(-100%);
        z-index: 999;
        border-radius: 0;
        box-shadow: 5px 0 20px rgba(0,0,0,0.3);
    }
    .sidebar.active { transform: translateX(0); }

    /* WRAPPER */
    .admin-wrapper {
        flex-direction: column;
        padding: 0 10px;
        margin: 15px auto;
        gap: 15px;
    }

    /* MAIN */
    .main-content { margin-left: 0; }

    /* CARDS */
    .stats-grid { grid-template-columns: 1fr; gap: 15px; margin: 20px 0; }
    .stat-card { padding: 18px; gap: 14px; }
    .stat-card .icon { width: 50px; height: 50px; font-size: 1.5rem; }
    .stat-card h3 { font-size: 1.6rem; }

    /* GRÁFICOS */
    .grid-2 { gap: 18px; }
    .chart-card { padding: 18px; }
    .chart-card h3 { font-size: 1rem; margin-bottom: 15px; }
    .chart-container { height: 200px; }

    /* ATIVIDADE */
    .activity-card { padding: 18px; }
    .activity-list li { padding: 10px 0; gap: 12px; }
    .activity-icon { width: 34px; height: 34px; }
    .activity-info strong { font-size: 0.85rem; }
    .time { font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .logo h1 { font-size: 1.3rem; }
    .chart-container { height: 180px; }
    .stat-card h3 { font-size: 1.4rem; }
}

/* ====================================
   MARKETPLACES - DATATABLE + MODAL
==================================== */

.table-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 25px;
}
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}
.table-header h3 {
    margin: 0;
    color: #e0e6ff;
    font-size: 1.2rem;
}
.btn-add {
    background: #00d4ff;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}
.btn-add:hover { background: #00b8e6; transform: translateY(-2px); }

.table-responsive { overflow-x: auto; }
.table { width: 100% !important; margin: 0; }
.table th { background: rgba(0,212,255,0.1); color: #e0e6ff; font-weight: 600; }
.table td { vertical-align: middle; }
.dikas-cell { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.status-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-badge.active { background: #4ade80; color: white; }
.status-badge.inactive { background: #ff6b6b; color: white; }

.btn-icon {
    background: none;
    border: none;
    color: #a0a8d6;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: 0.3s;
}
.btn-icon:hover { background: rgba(255,255,255,0.1); color: #00d4ff; }
.btn-icon.block { color: #ff6b6b; }
.btn-icon.unblock { color: #4ade80; }
.btn-icon.delete-btn:hover { color: #ff3742; }

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,12,41,0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-content {
    background: rgba(20,18,48,0.95);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,212,255,0.2);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.modal-header h3 { margin: 0; color: #e0e6ff; }
.modal-close {
    background: none;
    border: none;
    color: #a0a8d6;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}
.modal-close:hover { color: #ff6b6b; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 25px;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cfd6ff;
    font-weight: 500;
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #e0e6ff;
    font-size: 0.95rem;
    transition: 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0,212,255,0.2);
}
textarea.form-control { resize: vertical; min-height: 100px; }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.btn-secondary, .btn-primary {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}
.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #a0a8d6;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.btn-primary {
    background: #00d4ff;
    color: white;
}
.btn-primary:hover { background: #00b8e6; transform: translateY(-2px); }

/* RESPONSIVO */
@media (max-width: 768px) {
    .table-header { flex-direction: column; align-items: stretch; }
    .form-grid { grid-template-columns: 1fr; }
    .modal-content { margin: 10px; }
}

/* UPLOAD & LOGO */
.marketplace-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 2px;
}
.no-logo {
    font-size: 0.7rem;
    color: #777;
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 6px;
}
.current-logo-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #00d4ff;
}

/* MODAL CENTRALIZADO */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,12,41,0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

/* SWEETALERT PERSONALIZADO */
.swal2-popup {
    font-family: 'Inter', sans-serif !important;
    border-radius: 16px !important;
}
.swal2-title {
    color: #e0e6ff !important;
}
.swal2-html-container {
    color: #cfd6ff !important;
}
.swal2-confirm {
    background: #00d4ff !important;
    border-radius: 50px !important;
    padding: 10px 25px !important;
}
.swal2-cancel {
    background: rgba(255,255,255,0.1) !important;
    color: #a0a8d6 !important;
    border-radius: 50px !important;
    padding: 10px 25px !important;
}
.swal2-confirm:hover, .swal2-cancel:hover {
    transform: translateY(-2px) !important;
}

/* BADGE PLANOS - users */
.badge { padding: 4px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.plano-basic { background: #4ade80; color: white; }
.plano-pro { background: #f093fb; color: white; }
.plano-enterprise { background: #667eea; color: white; }

/* ÍCONES */
.fa-crown { color: #ffd700; }


/* PREVIEW SECTION  planos*/
.preview-section {
    margin-top: 40px;
    padding: 30px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
}
.preview-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 25px 0;
    color: #e0e6ff;
    font-size: 1.3rem;
}
.preview-title i { color: #00d4ff; }

/* PRICING CARDS */
.pricing-cards {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}
.pricing-card {
    background: rgba(20,18,48,0.8);
    border-radius: 20px;
    padding: 30px;
    width: 300px;
    text-align: center;
    border: 1px solid rgba(0,212,255,0.2);
    position: relative;
    transition: 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0,212,255,0.3);
}
.pricing-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #00d4ff;
    transform: scale(1.05);
}
.pricing-card.featured:hover { transform: scale(1.05) translateY(-12px); }

.ribbon {
    position: absolute;
    top: -10px; right: -10px;
    background: #ff6b6b;
    color: white;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.card-header h3 {
    margin: 0 0 15px 0;
    color: #e0e6ff;
    font-size: 1.4rem;
}
.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #00d4ff;
    margin: 15px 0;
}
.price sup { font-size: 1.2rem; top: -1.2em; }
.price span { font-size: 0.9rem; color: #a0a8d6; }

.features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
}
.features li {
    padding: 8px 0;
    color: #cfd6ff;
    font-size: 0.95rem;
}
.features i {
    color: #4ade80;
    margin-right: 10px;
}

.btn-card {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    background: rgba(255,255,255,0.1);
    color: #e0e6ff;
}
.btn-card:hover {
    background: #00d4ff;
    color: white;
    transform: translateY(-3px);
}
.btn-featured {
    background: #00d4ff;
    color: white;
}
.btn-featured:hover {
    background: #00b8e6;
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .pricing-cards { gap: 20px; }
    .pricing-card { width: 280px; }
}
@media (max-width: 768px) {
    .pricing-cards { flex-direction: column; align-items: center; }
    .pricing-card.featured { transform: scale(1); }
}

/* FILTROS */
.filters-card {
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 25px;
}
.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: end;
}

/* BADGE ORIGEM */
.origem-api { background: #4ade80; color: white; }
.origem-cache { background: #ff6b6b; color: white; }

/* MODAL DETALHE */
.modal.wide .modal-content { max-width: 900px; width: 95%; }
.consulta-detalhe { font-size: 0.95rem; }
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}
.section { margin-top: 20px; }
.section h4 {
    margin: 0 0 10px 0;
    color: #00d4ff;
    font-size: 1.1rem;
}
.titulo-sugerido {
    background: rgba(0,212,255,0.1);
    padding: 12px;
    border-radius: 10px;
    border-left: 4px solid #00d4ff;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    background: rgba(0,212,255,0.2);
    color: #00d4ff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}
.plano-gerado {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
    border: 1px dashed rgba(0,212,255,0.3);
}

/* CONFIG GRID */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}
.config-card {
    padding: 25px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
}
.config-card h3 {
    margin: 0 0 20px 0;
    color: #00d4ff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.config-form {
    margin-bottom: 18px;
}
.config-form label {
    display: block;
    margin-bottom: 6px;
    color: #e0e6ff;
    font-size: 0.9rem;
}
.config-form input,
.config-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(0,212,255,0.3);
    background: rgba(255,255,255,0.05);
    color: white;
}
.config-form input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0,212,255,0.3);
}
.upload-group {
    margin-bottom: 20px;
}
.preview-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0,212,255,0.3);
}

/* SWITCH */
.switch-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
    user-select: none;
}
.switch-label input {
    position: absolute;
    opacity: 0;
}
.slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: #333;
    border-radius: 50px;
    transition: 0.3s;
}
.slider:before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}
input:checked + .slider {
    background: #00d4ff;
}
input:checked + .slider:before {
    transform: translateX(24px);
}

/* PAGAMENTOS */
.payment-section {
    border: 1px dashed rgba(0,212,255,0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(0,212,255,0.03);
}
.payment-section h4 {
    margin: 0 0 15px 0;
    color: #00d4ff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* TEXTAREA */
.config-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* FAVICON PREVIEW */
.favicon { width: 32px; height: 32px; }

/* SELECT */
.config-form select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(0,212,255,0.3);
    background: rgba(255,255,255,0.05);
    color: white;
}

/* TUTORIAL GUIADO */
.tutorial-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.tutorial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: tutorialPop 0.4s ease;
}

@keyframes tutorialPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tutorial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.tutorial-header i {
    font-size: 2rem;
}

.tutorial-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.tutorial-body li {
    margin: 0.5rem 0;
    font-weight: 500;
}

.tutorial-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tour-tooltip {
    position: absolute;
    background: #1e1b4b;
    color: white;
    padding: 1rem;
    border-radius: 12px;
    max-width: 300px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
}

.tour-tooltip::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-bottom-color: #1e1b4b;
}

.tour-content p {
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.tour-next {
    background: #00d4ff;
    color: #1e1b4b;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.chart-card { 
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); 
    padding: 1.5rem; border-radius: 16px; margin-top: 2rem; 
}
.chart-container { position: relative; height: 300px; }