@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    --az-green:  #25D366;
    --az-dark:   #1a1a2e;
    --az-blue:   #0f3460;
    --az-accent: #e94560;
    --sidebar-w: 260px;
    --font-main: 'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-main); }

/* ═══════════════════════════════════════
   LANDING PAGE — BASE
═══════════════════════════════════════ */

.hero-section {
    background: linear-gradient(135deg, var(--az-dark) 0%, var(--az-blue) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    padding-bottom: 60px;
}

.hero-badge {
    background: rgba(37,211,102,.15);
    border: 1px solid rgba(37,211,102,.4);
    color: var(--az-green);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: .82rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.25rem;
    letter-spacing: .02em;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: clamp(.95rem, 2.2vw, 1.1rem);
    color: rgba(255,255,255,.6);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-whatsapp {
    background: var(--az-green);
    color: #fff;
    font-family: var(--font-main);
    font-weight: 700;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    transition: .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; transform: translateY(-2px); }

.earning-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    color: #fff;
    height: 100%;
}
.earning-card .ec-label {
    color: rgba(255,255,255,.5);
    font-size: .78rem;
    margin-bottom: 8px;
    line-height: 1.4;
}
.earning-card .ec-value {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 800;
    color: var(--az-green);
    line-height: 1.1;
}
.earning-card .ec-sub {
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    margin-top: 4px;
}

/* Seções */
.section-alt { background: #f8f9fa; }

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.25;
}
.section-subtitle { color: #6c757d; font-size: 1rem; }

.section-badge {
    font-size: .8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: .9rem;
    letter-spacing: .02em;
}

/* Feature icons */
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(37,211,102,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--az-green);
    flex-shrink: 0;
}

/* Steps */
.step-circle {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--az-green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800; margin: 0 auto 14px;
}

/* Simulador */
.simulator-box {
    background: linear-gradient(135deg, var(--az-dark), var(--az-blue));
    border-radius: 20px;
    padding: 36px 32px;
    color: #fff;
}
.sim-result {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 800;
    color: var(--az-green);
}

/* Planos */
.plan-card {
    border-radius: 16px;
    border: 2px solid #e9ecef;
    transition: .2s;
}
.plan-card:hover, .plan-card.featured {
    border-color: var(--az-green);
    box-shadow: 0 12px 40px rgba(37,211,102,.15);
}
.plan-card.featured { position: relative; }
.plan-card.featured::before {
    content: 'Mais Vendido';
    position: absolute;
    top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--az-green); color: #fff;
    padding: 4px 16px; border-radius: 50px;
    font-size: .75rem; font-weight: 700;
    white-space: nowrap;
}

/* FAQ */
.faq-item { border-bottom: 1px solid #e9ecef; padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    margin-bottom: .5rem;
}

/* Navbar mobile */
.navbar-collapse.show .nav-link,
.navbar-collapse.collapsing .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.navbar-collapse.show .nav-item:last-child .nav-link,
.navbar-collapse.show .nav-item:last-child a {
    border-bottom: none;
}
.navbar-collapse.show {
    background: rgba(15,52,96,.97);
    backdrop-filter: blur(10px);
    padding: 16px 20px 20px;
    border-radius: 0 0 16px 16px;
    margin-top: 8px;
}

/* Footer */
footer { background: var(--az-dark); color: rgba(255,255,255,.6); }

/* ═══════════════════════════════════════
   LANDING PAGE — MOBILE
═══════════════════════════════════════ */

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 56px;
        min-height: auto;
    }

    .hero-title { margin-bottom: 1rem; }
    .hero-subtitle { margin-bottom: 1.75rem; }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-cta-group .btn-whatsapp,
    .hero-cta-group .btn-outline-light {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-cards { margin-top: 40px; }

    .earning-card { padding: 16px 12px; }

    .section-title { margin-bottom: 1rem; }
}

@media (max-width: 575.98px) {
    .hero-section { padding-top: 90px; }

    /* Earning cards em linha 2x2 mais compactos */
    .earning-card .ec-value { font-size: 1.25rem; }
    .earning-card .ec-label { font-size: .72rem; }

    /* Simulador */
    .simulator-box { padding: 24px 20px; }

    /* Seções */
    .section-title { font-size: 1.45rem; }

    /* Steps — centralizar ícone e texto */
    .step-wrap { padding: 20px 16px !important; }

    /* Planos — impede que o badge "Mais Vendido" corte */
    .plan-card.featured { margin-top: 18px; }

    /* CTA section */
    .cta-section-title { font-size: 1.45rem; }

    /* FAQ itens */
    .faq-item { padding: 16px 0; }

    /* Feature items */
    .feature-icon { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 12px; }
}

/* ═══════════════════════════════════════
   PAINEL INTERNO — BASE
═══════════════════════════════════════ */

body.panel { background: #f0f2f5; }

.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--az-dark);
    position: fixed;
    left: 0; top: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: transform .3s;
    display: flex;
    flex-direction: column;
}
.sidebar .brand {
    padding: 24px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar .brand h5 { color: var(--az-green); font-weight: 800; margin: 0; font-family: var(--font-main); }
.sidebar .brand small { color: rgba(255,255,255,.45); font-size: .73rem; }

.sidebar .nav-section {
    padding: 10px 20px 4px;
    color: rgba(255,255,255,.3);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 8px;
}
.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .875rem;
    border-left: 3px solid transparent;
    transition: .15s;
    font-family: var(--font-main);
}
.sidebar a:hover, .sidebar a.active {
    background: rgba(255,255,255,.06);
    color: #fff;
    border-left-color: var(--az-green);
}
.sidebar a i { width: 18px; text-align: center; }
.sidebar-footer { padding: 20px; margin-top: auto; }

.main-content { margin-left: var(--sidebar-w); min-height: 100vh; }

.topbar {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
}
.topbar .page-title { font-weight: 700; font-size: 1.05rem; margin: 0; font-family: var(--font-main); }
.content-area { padding: 28px; }

/* ── Cards ── */
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.stat-card .icon-box {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.stat-card .stat-value { font-size: 1.7rem; font-weight: 800; margin: 6px 0 2px; font-family: var(--font-main); }
.stat-card .stat-label { color: #6c757d; font-size: .82rem; }

.goal-card {
    background: linear-gradient(135deg, var(--az-dark) 0%, var(--az-blue) 100%);
    border-radius: 20px;
    padding: 32px;
    color: #fff;
}
.goal-card .progress { height: 10px; border-radius: 50px; background: rgba(255,255,255,.15); }
.goal-card .progress-bar { background: var(--az-green); border-radius: 50px; }

.mini-goal-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 16px 18px;
    color: #fff;
}
.mini-goal-card .value { font-size: 1.35rem; font-weight: 700; color: var(--az-green); font-family: var(--font-main); }

/* ── Tables ── */
.table-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    overflow: hidden;
}
.table-card .table { margin: 0; }
.table-card .table thead th {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: .75rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
    padding: 11px 16px;
    letter-spacing: .04em;
    font-family: var(--font-main);
}
.table-card .table tbody td { padding: 12px 16px; vertical-align: middle; font-family: var(--font-main); }

/* ── Forms ── */
.form-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ── Tickets ── */
.ticket-bubble {
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
    max-width: 82%;
}
.ticket-bubble.admin { background: #e8f4fd; margin-left: auto; }
.ticket-bubble.franchisee { background: #f0faf4; }

/* ── Painel Mobile ── */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.3); }
    .main-content { margin-left: 0; }
    .content-area { padding: 20px 16px; }
    .topbar { padding: 12px 16px; }
    .form-card { padding: 20px 16px; }
    .stat-card { padding: 18px 20px; }
    .stat-card .stat-value { font-size: 1.5rem; }
    .goal-card { padding: 24px 20px; }
    .mini-goal-card { padding: 14px 16px; }
    .mini-goal-card .value { font-size: 1.2rem; }
}
