:root {
    --primary: #26b7a7;
    --primary-dark: #159486;
    --bg: #f3f4f6;
    --text: #2b2f36;
    --border: #d9dee5;
    --footer: #252a31;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { width: min(1180px, 92%); margin: 0 auto; }
.topbar { background: #111; padding: 12px 0; }
.topbar-content { display: flex; justify-content: space-between; align-items: center; }
.brand { color: var(--primary); text-decoration: none; font-weight: 700; font-size: 24px; }

    .site-header {
        background: #fff;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        z-index: 40;
    }

    .header-inner {
        min-height: 74px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .logo {
        text-decoration: none;
        font-size: 34px;
        line-height: 1;
        font-weight: 800;
        color: var(--primary);
    }

    .main-nav {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .main-nav a {
        font-size: 14px;
        color: #3a404a;
        text-decoration: none;
        font-weight: 600;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .login-link {
        text-decoration: none;
        color: #2f3440;
        font-weight: 700;
    }

    .user-chip {
        background: #e8f9f7;
        color: #136f65;
        border: 1px solid #b9ede7;
        border-radius: 999px;
        padding: 8px 12px;
        font-size: 13px;
        font-weight: 700;
    }

    .main-content { padding: 24px 0 50px; }

    .landing-hero {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 22px;
        margin-bottom: 28px;
    }

    .hero-copy,
    .hero-photo {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 24px;
    }

    .hero-copy h1 {
        margin-top: 0;
        font-size: 40px;
        line-height: 1.15;
    }

    .hero-copy ul {
        margin: 0;
        padding-left: 18px;
        color: #4f5560;
    }

    .hero-copy li { margin-bottom: 8px; }

    .hero-photo {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 320px;
        background: linear-gradient(145deg, #edf9f7 0%, #e4f4ef 100%);
    }

    .hero-stats-card {
        width: 100%;
        display: grid;
        gap: 12px;
    }

    .hero-stat {
        background: rgba(255, 255, 255, 0.86);
        border: 1px solid #cbe8e3;
        border-radius: 12px;
        padding: 14px 16px;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        color: #2b5048;
        font-weight: 600;
    }

    .hero-stat-number {
        font-size: 28px;
        line-height: 1;
        color: #1f766c;
        font-weight: 800;
    }

    .section-block { margin-bottom: 30px; }
    .section-title {
        margin: 0 0 16px;
        font-size: 28px;
    }

    .service-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .service-carousel {
        position: relative;
    }

    .service-carousel-viewport {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .service-carousel-viewport::-webkit-scrollbar {
        display: none;
    }

    .service-grid.is-slider {
        display: flex;
        flex-wrap: nowrap;
        gap: 14px;
        align-items: stretch;
    }

    .service-grid.is-slider .service-card {
        flex: 0 0 calc((min(1180px, 92vw) - 42px) / 4);
        min-height: 420px;
        padding: 0;
        border-radius: 16px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .service-grid.is-slider .service-image {
        height: 200px;
        border-radius: 0;
        flex-shrink: 0;
    }

    .service-grid.is-slider .service-card-body {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
        padding: 16px;
    }

    .service-grid.is-slider .service-card h3 {
        font-size: 18px;
        line-height: 1.25;
        font-weight: 700;
        margin: 2px 0 0;
    }

    .service-grid.is-slider .service-card p {
        font-size: 13px;
        line-height: 1.4;
        color: #475569;
        min-height: 0;
    }

    .service-grid.is-slider .service-card .service-category {
        color: var(--primary-dark);
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .service-grid.is-slider .service-card .service-desc {
        color: #475569;
        font-size: 14px;
        line-height: 1.45;
        flex: 1;
    }

    .service-grid.is-slider .service-card .btn {
        margin-top: auto;
        width: 100%;
        text-align: center;
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        padding: 12px 16px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        font-size: 13px;
        border-radius: 10px;
        display: block;
    }

    .service-carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 18px;
    }

    .service-carousel-dot {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        border: none;
        background: #d1d9e2;
        cursor: pointer;
        padding: 0;
        transition: background .2s, width .2s;
    }

    .service-carousel-dot.is-active {
        background: var(--primary);
        width: 24px;
    }

    .service-carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
        width: 34px;
        height: 34px;
        border-radius: 999px;
        border: 1px solid #cfd8e3;
        background: #ffffff;
        color: #334155;
        font-size: 20px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
        cursor: pointer;
    }

    .service-carousel-nav.is-prev {
        left: -16px;
    }

    .service-carousel-nav.is-next {
        right: -16px;
    }

    .service-carousel-nav:disabled {
        opacity: 0.45;
        cursor: default;
    }

    .service-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 12px;
        display: grid;
        gap: 10px;
    }

    .service-image {
        height: 94px;
        border-radius: 10px;
        background: linear-gradient(130deg, #d5f4f0 0%, #b9ebe3 100%);
        background-size: cover;
        background-position: center;
    }

    .service-card h3 {
        margin: 0;
        font-size: 15px;
    }

    .service-card p {
        margin: 0;
        color: #5d6470;
        font-size: 13px;
    }

    .how-it-works,
    .plans-block,
    .benefits-block {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 22px;
    }

    .steps-grid,
    .plans-grid,
    .benefits-grid {
        display: grid;
        gap: 12px;
    }

    .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .plans-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .benefits-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .steps-grid article,
    .plan-card,
    .benefit-item {
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 14px;
        position: relative;
        background: #f8fafc;
    }

    .plan-card {
        background-size: cover;
        background-position: center;
        overflow: hidden;
    }

    .plan-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.9));
        pointer-events: none;
    }

    .plan-card > * { position: relative; z-index: 1; }

    .steps-grid span {
        color: var(--primary-dark);
        font-size: 12px;
        text-transform: uppercase;
        font-weight: 700;
    }

    .steps-grid h3,
    .plan-card h3,
    .benefit-item h3 {
        margin: 8px 0;
        font-size: 16px;
    }

    .steps-grid p,
    .plan-card p,
    .benefit-item p {
        margin: 0;
        color: #5d6470;
        font-size: 13px;
    }

    .testimonials-block {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 24px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    }

    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .testimonial-card {
        border: 1px solid #dbe7f5;
        border-radius: 14px;
        padding: 18px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        box-shadow: 0 8px 22px rgba(30, 64, 105, 0.08);
    }

    .testimonial-stars {
        color: #f59e0b;
        font-size: 16px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .testimonial-text {
        margin: 0 0 12px;
        color: #1f2937;
        font-size: 14px;
        line-height: 1.45;
    }

    .testimonial-author {
        color: #6b7280;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.2px;
    }

    .pro-cta-block {
        background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #0ea5e9 100%);
        border-radius: 16px;
        padding: 0;
        border: 0;
        overflow: hidden;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
    }

    .pro-cta-inner {
        padding: 36px 28px;
        color: #f8fafc;
        text-align: center;
    }

    .pro-cta-inner h2 {
        margin: 0 0 10px;
        font-size: 30px;
    }

    .pro-cta-inner p {
        margin: 0 0 20px;
        color: #dbeafe;
        font-size: 16px;
    }

    .pro-cta-inner .btn.primary {
        background: #f8fafc;
        color: #1e3a8a;
        border-color: #f8fafc;
    }

    /* ── PLANS V2 ─────────────────────────────────────── */
    .plans-subtitle {
        text-align: center;
        color: #5d6470;
        font-size: 15px;
        margin: -10px 0 24px;
    }

    /* ── PARCEIROS ──────────────────────────────────────── */
    .parceiros-block { padding: 32px 0 16px; border-top: 1px solid var(--color-border-tertiary, #e5e7eb); }
    .parceiros-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; padding: 16px 0; }
    .parceiro-item { font-size: 15px; font-weight: 700; color: var(--color-text-secondary, #6b7280); letter-spacing: .02em; opacity: .7; }

    /* ── IMPRENSA ───────────────────────────────────────── */
    .imprensa-block { padding: 40px 0; }
    .imprensa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
    .imprensa-card { background: var(--color-background-secondary, #f9fafb); border-radius: 12px; padding: 24px; border-left: 3px solid var(--color-border-secondary, #d1d5db); }
    .imprensa-quote { font-size: 14px; color: var(--color-text-secondary, #6b7280); line-height: 1.6; margin: 0 0 12px; font-style: italic; }
    .imprensa-fonte { font-size: 12px; font-weight: 700; color: var(--color-text-tertiary, #9ca3af); text-transform: uppercase; letter-spacing: .06em; }

    .plans-grid-v2 {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
        align-items: stretch;
    }

    .plan-card-v2 {
        background: #fff;
        border: 2px solid var(--border);
        border-radius: 18px;
        padding: 28px 22px 24px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: relative;
        transition: box-shadow .2s, border-color .2s;
    }

    .plan-card-v2:hover {
        box-shadow: 0 8px 32px rgba(0,0,0,.09);
        border-color: #f1dd52;
    }

    .plan-card-v2--featured {
        border-color: #f1dd52;
        box-shadow: 0 8px 32px rgba(241,221,82,.25);
        background: linear-gradient(160deg, #fffdf0 0%, #fff 60%);
    }

    .plan-badge {
        display: inline-block;
        background: #f1dd52;
        color: #3b4112;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
        border-radius: 20px;
        padding: 4px 12px;
        align-self: flex-start;
    }

    .plan-header { display: flex; flex-direction: column; gap: 6px; }

    .plan-name {
        font-size: 17px;
        font-weight: 800;
        color: var(--text);
        margin: 0;
    }

    .plan-desc {
        font-size: 13px;
        color: #5d6470;
        margin: 0;
        line-height: 1.45;
    }

    .plan-price {
        display: flex;
        align-items: baseline;
        gap: 4px;
        margin-top: 6px;
    }

    .plan-price-value {
        font-size: 26px;
        font-weight: 900;
        color: #3b4112;
        letter-spacing: -.02em;
    }

    .plan-price-freq {
        font-size: 13px;
        color: #5d6470;
    }

    .plan-features {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
    }

    .plan-features li {
        font-size: 13px;
        color: var(--text);
        padding-left: 22px;
        position: relative;
        line-height: 1.4;
    }

    .plan-features li::before {
        position: absolute;
        left: 0;
        top: 0;
        font-size: 14px;
        font-weight: 700;
    }

    .plan-features li.feat-ok { color: var(--text); }
    .plan-features li.feat-ok::before { content: '✓'; color: #c5a21a; }

    .plan-features li.feat-no { color: #adb5bd; }
    .plan-features li.feat-no::before { content: '✗'; color: #d9dee5; }

    .plan-btn {
        display: block;
        text-align: center;
        border: 2px solid #f1dd52;
        color: #3b4112;
        background: transparent;
        border-radius: 10px;
        padding: 11px 0;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        transition: background .15s, color .15s;
        margin-top: auto;
    }

    .plan-btn:hover {
        background: #f1dd52;
        color: #3b4112;
    }

    .plan-btn--featured {
        background: #f1dd52;
        color: #3b4112;
    }

    .plan-btn--featured:hover {
        background: #d7bf44;
        border-color: #d7bf44;
    }

    @media (max-width: 900px) {
        .plans-grid-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 540px) {
        .plans-grid-v2 { grid-template-columns: 1fr; }
    }
    /* ── /PLANS V2 ──────────────────────────────────────── */

    .auth-shell {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px 16px 60px;
        min-height: calc(100vh - 74px - 200px);
    }

    .auth-card {
        width: 480px;
        max-width: 100%;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    }

    .auth-card.register-card {
        width: 620px;
    }

    .auth-card-header {
        text-align: center;
        font-weight: 800;
        font-size: 22px;
        padding: 28px 24px 0;
        border-bottom: none;
        color: var(--text);
    }

    .auth-card-body {
        width: 100%;
        max-width: 100%;
        padding: 24px 32px 32px;
    }

/* ========== ADMIN PANEL �?" structure (colors via vars) ========== */
.admin-brand {
    color: var(--admin-primary);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.admin-sidebar nav {
    display: grid;
    gap: 4px;
}

.admin-sidebar a {
    color: var(--admin-muted);
    text-decoration: none;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.admin-sidebar a:hover {
    background: var(--admin-hover);
    color: var(--admin-text);
}

.admin-sidebar a.is-active {
    background: var(--admin-primary);
    color: var(--admin-primary-text);
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.admin-topbar h1 {
    margin: 0;
    color: var(--admin-text);
    font-size: 24px;
}

.admin-topbar p {
    margin: 4px 0 0;
    color: var(--admin-muted);
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-notify {
    min-width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--admin-hover);
    color: var(--admin-text);
    font-weight: 700;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--admin-primary);
    color: var(--admin-primary-text);
    font-weight: 800;
}

.admin-user strong {
    color: var(--admin-text);
}

.admin-user small {
    display: block;
    color: var(--admin-muted);
}

.admin-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    box-shadow: 0 4px 14px var(--admin-shadow);
    padding: 14px;
}

.kpi-card small {
    display: block;
    color: var(--admin-muted);
    margin-bottom: 8px;
}

.kpi-card strong {
    color: var(--admin-text);
    font-size: 24px;
    font-weight: 800;
}

.charts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chart-canvas {
    width: 100% !important;
    max-width: 100%;
    height: 240px !important;
}

.module-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    box-shadow: 0 4px 20px var(--admin-shadow);
    padding: 24px 28px;
}

.module-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1.5px solid var(--admin-border);
}

.module-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--admin-text);
    letter-spacing: -.02em;
}

.module-head span {
    font-size: 12px;
    font-weight: 700;
    color: #7a8462;
    background: #f3f4ec;
    border: 1.5px solid #e9eadf;
    border-radius: 999px;
    padding: 4px 12px;
}

.module-card .table-wrap {
    border-radius: 10px;
    border: 1px solid var(--admin-border);
    overflow: auto;
}

.module-card table {
    width: 100%;
    border-collapse: collapse;
}

.module-card th,
.module-card td {
    padding: 9px;
    font-size: 13px;
    border-bottom: 1px solid var(--admin-border);
    color: var(--admin-text);
    white-space: nowrap;
}

.module-card th {
    background: var(--admin-th-bg);
    color: var(--admin-text);
    text-align: left;
}

.module-card table tr:nth-child(even) {
    background: var(--admin-stripe);
}

.module-card table tr:hover {
    background: var(--admin-row-hover);
}

.toolbar-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    align-items: flex-end;
}

.toolbar-form input,
.toolbar-form select,
.toolbar-form button,
.module-card input,
.module-card select {
    background: var(--admin-input-bg);
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
    border-radius: 10px;
    padding: 8px 10px;
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
}

.toolbar-form input::placeholder,
.module-card input::placeholder {
    color: var(--admin-muted);
}

.admin-main .btn {
    background: var(--admin-surface);
    border-color: var(--admin-border);
    color: var(--admin-text);
}

.admin-main .btn.primary,
.admin-main .btn.tiny:hover {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
    color: var(--admin-primary-text);
}

.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--admin-text);
}

.mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.mini-list li {
    display: flex;
    justify-content: space-between;
    border: 1px solid var(--admin-border);
    border-radius: 9px;
    background: var(--admin-surface);
    padding: 8px 10px;
    gap: 10px;
}

.mini-list li span {
    color: var(--admin-muted);
    font-size: 12px;
}

.chart-wrap {
    position: relative;
    width: 100%;
    height: 260px;
}

.chart-canvas {
    width: 100%;
    height: 100%;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    display: block;
}

.toast {
    margin-bottom: 12px;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
}

.toast-success {
    background: var(--admin-toast-ok-bg);
    border: 1px solid var(--admin-toast-ok-border);
    color: var(--admin-toast-ok-text);
}

.toast-error {
    background: var(--admin-toast-err-bg);
    border: 1px solid var(--admin-toast-err-border);
    color: var(--admin-toast-err-text);
}

.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* old admin responsive handled in new block below */
        padding: 24px 16px 28px;
    }

    .auth-tabs {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid #eef0f3;
    }

    .auth-tabs strong {
        font-size: 15px;
        color: var(--text);
    }

    .link-button {
        border: 0;
        background: none;
        color: var(--primary);
        font-weight: 600;
        cursor: pointer;
        font-size: 14px;
        transition: color 0.2s;
    }

    .link-button:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

    .full { width: 100%; }
    .outline {
        border-color: #7acfc4;
        color: #1e6f66;
        text-align: center;
    }

    .separator {
        text-align: center;
        color: #8c929d;
        margin: 8px 0 14px;
    }

    .form-heading {
        margin: 2px 0 2px;
        font-size: 13px;
        font-weight: 700;
        color: #4d5460;
    }

    .check-row {
        display: flex;
        gap: 8px;
        align-items: flex-start;
        font-size: 12px;
        color: #59616c;
    }

    .check-row input { width: auto; margin-top: 3px; }

    .auth-inline-error {
        margin: 0;
        padding: 8px 10px;
        border-radius: 8px;
        border: 1px solid #f3c3c3;
        background: #fff1f1;
        color: #9b2c2c;
        font-size: 13px;
        font-weight: 600;
    }

    .modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(21, 24, 29, 0.55);
        z-index: 70;
        display: grid;
        place-items: center;
        padding: 20px;
    }

    .modal-backdrop[hidden] {
        display: none !important;
    }

    .register-modal {
        width: 420px;
        max-width: 100%;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
        padding: 18px;
        position: relative;
    }

    .modal-close {
        position: absolute;
        top: 8px;
        right: 10px;
        border: 0;
        background: none;
        font-size: 30px;
        line-height: 1;
        color: #8c929d;
        cursor: pointer;
    }

    .register-modal h2 {
        margin: 2px 0 6px;
        font-size: 28px;
        line-height: 1.1;
    }

    .register-modal p {
        margin: 0 0 10px;
        color: #5e6672;
        font-size: 13px;
    }

    .register-option {
        display: grid;
        gap: 4px;
        text-decoration: none;
        color: #2d3440;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 10px;
    }

    .register-option:hover {
        border-color: #9fded6;
        background: #f6fefd;
    }

    .register-option span {
        color: #5f6670;
        font-size: 13px;
    }

.btn {
    border: 1px solid #bcc4cf;
    background: #fff;
    color: #2b313b;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn.primary {
    background: var(--primary);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn.primary:hover {
    background: var(--primary-dark);
}
.btn.tiny { padding: 6px 10px; border-radius: 8px; font-size: 12px; }

.btn:disabled,
.btn[aria-disabled='true'] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.08);
}

    .hero-actions { display: flex; gap: 10px; margin-top: 18px; }
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-cards.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cards.four-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}
.price { font-weight: 700; color: #1c5d00; }

.form-grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
input, select, textarea {
    width: 100%;
    border: 1px solid #cfd6df;
    border-radius: 10px;
    padding: 12px 14px;
    background: #f9fafb;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(38, 183, 167, 0.15);
    background: #fff;
}

input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Password toggle wrapper */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #7c8594;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.password-toggle:hover {
    color: var(--primary-dark);
    background: rgba(38, 183, 167, 0.08);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.field-invalid {
    border-color: #d9534f !important;
    box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.12);
}

.field-valid {
    border-color: #22a06b !important;
    box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.12);
}
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.align-end { display: flex; align-items: end; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #edf2ec; padding: 10px; text-align: left; }
.inline { display: inline-flex; align-items: center; gap: 8px; }

.dashboard-hero {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.dashboard-hero h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.dashboard-hero p {
    margin: 0;
    color: #5b6370;
}

.admin-hero {
    margin-bottom: 16px;
}

.stats-row {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.stats-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.stat-card small {
    display: block;
    color: #69707c;
    margin-bottom: 6px;
}

.stat-card strong {
    font-size: 28px;
    line-height: 1;
}

.section-elevated {
    box-shadow: 0 2px 8px rgba(18, 28, 45, 0.03);
}

.dashboard-grid-gap {
    gap: 12px;
}

.wizard-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}

.wizard-step {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fbfd;
}

.wizard-step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid #c2c9d4;
    font-size: 12px;
    font-weight: 700;
}

.wizard-step p {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.wizard-step.is-active {
    border-color: #95ded6;
    background: #eefaf8;
}

.wizard-step.is-active span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.wizard-inline-error {
    margin: 2px 0 4px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #f3c3c3;
    background: #fff1f1;
    color: #9b2c2c;
    font-size: 13px;
    font-weight: 600;
}

.auth-submit-hint {
    margin-top: -2px;
    font-size: 12px;
    display: block;
}

.auth-submit-hint.is-pending {
    color: #8a5b11;
}

.auth-submit-hint.is-ready {
    color: #1f8c57;
}

.wizard-panel {
    display: none;
    gap: 10px;
}

.wizard-panel.is-active {
    display: grid;
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.wizard-actions.between {
    justify-content: space-between;
}

.wizard-summary {
    border: 1px dashed #b6d8d4;
    border-radius: 8px;
    padding: 10px;
    background: #f4fbfa;
}

.wizard-summary p,
.wizard-summary small {
    margin: 0;
    color: #4f5866;
}

.wizard-summary-list {
    margin: 10px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.wizard-summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px dashed #d2e8e4;
    padding-bottom: 4px;
    font-size: 13px;
}

.wizard-summary-list li span {
    color: #5a6370;
}

.cupom-badge {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 8px;
    border: 1px solid transparent;
}

.cupom-badge.is-neutral {
    background: #eef1f5;
    border-color: #d8dee7;
    color: #5e6674;
}

.cupom-badge.is-valid {
    background: #e8fbf3;
    border-color: #a8e9c9;
    color: #1f8c57;
}

.cupom-badge.is-warning {
    background: #fff7e8;
    border-color: #f3d38b;
    color: #9b6c16;
}

.wizard-summary small {
    display: block;
    margin-top: 4px;
}

.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; }\n.alert.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }\n.alert.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.notification-item { border-bottom: 1px dashed var(--border); padding: 8px 0; }

.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.sidebar {
    background: #24303a;
    color: #fff;
    border-radius: 14px;
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: 16px;
}
.sidebar h2 { color: var(--primary); margin-top: 0; }
.sidebar a { color: #fff; text-decoration: none; display: block; margin-bottom: 10px; }

main.main-content {
    flex: 1 0 auto;
}

.site-footer { margin-top: auto; }

.trust-strip {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.trust-grid small {
    display: block;
    color: #68707d;
    font-size: 12px;
}

.trust-grid p {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 700;
}

.footer-main {
    background: var(--footer);
    color: #d7dbe3;
    padding: 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.footer-grid h4 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 13px;
}

.footer-grid a,
.footer-grid p {
    display: block;
    margin: 0 0 6px;
    color: #c1c7d2;
    text-decoration: none;
    font-size: 13px;
}

@media (max-width: 980px) {
    .landing-hero,
    .service-grid,
    .steps-grid,
    .plans-grid,
    .benefits-grid,
    .stats-row.three,
    .stats-row.four,
    .trust-grid,
    .footer-grid,
    .grid-cards,
    .grid-cards.two-cols,
    .grid-cards.four-cols,
    .grid-4,
    .wizard-stepper { grid-template-columns: 1fr; }

    .header-inner {
        min-height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
    }

    .admin-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }

    .auth-card-body { width: 100%; }

    .testimonials-grid { grid-template-columns: 1fr; }
    .pro-cta-inner h2 { font-size: 24px; }
    .hero-stat-number { font-size: 24px; }

    .service-grid.is-slider .service-card {
        min-width: min(84vw, 320px);
        min-height: 335px;
    }

    .service-grid.is-slider .service-image {
        height: 148px;
    }

    .service-grid.is-slider .service-card h3 {
        font-size: 15px;
    }

    .service-grid.is-slider {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
    }

    .service-carousel-nav.is-prev {
        left: -8px;
    }

    .service-carousel-nav.is-next {
        right: -8px;
    }
}

/* ========== ADMIN THEME VARIABLES ========== */
/* Default = Light Mode */
.admin-body {
    --admin-bg: #f5f7fa;
    --admin-surface: #ffffff;
    --admin-panel: #f0f2f6;
    --admin-border: #dfe3ea;
    --admin-text: #1a2332;
    --admin-muted: #5b6a7d;
    --admin-primary: #2d8a4e;
    --admin-primary-text: #ffffff;
    --admin-hover: #e8ecf1;
    --admin-input-bg: #ffffff;
    --admin-th-bg: #f0f2f5;
    --admin-shadow: rgba(18, 32, 56, 0.06);
    --admin-stripe: rgba(18, 32, 56, 0.025);
    --admin-row-hover: rgba(18, 32, 56, 0.05);
    --admin-toast-ok-bg: #ecfaf0;
    --admin-toast-ok-border: #b5e4c4;
    --admin-toast-ok-text: #1a6e3e;
    --admin-toast-err-bg: #fef0f0;
    --admin-toast-err-border: #f3c3c3;
    --admin-toast-err-text: #9b2c2c;
    background: var(--admin-bg);
    overflow-x: hidden;
}

/* Dark Mode */
.admin-body.theme-dark {
    --admin-bg: #0b1220;
    --admin-surface: #131c2b;
    --admin-panel: #0a111e;
    --admin-border: #1f2e44;
    --admin-text: #e8edf6;
    --admin-muted: #8b9bb2;
    --admin-primary: #a4f000;
    --admin-primary-text: #132000;
    --admin-hover: #1b2836;
    --admin-input-bg: #18222f;
    --admin-th-bg: #1a2431;
    --admin-shadow: rgba(0, 0, 0, 0.24);
    --admin-stripe: rgba(255, 255, 255, 0.02);
    --admin-row-hover: rgba(255, 255, 255, 0.04);
    --admin-toast-ok-bg: #1e3a24;
    --admin-toast-ok-border: #285f37;
    --admin-toast-ok-text: #b3ffca;
    --admin-toast-err-bg: #3d1f22;
    --admin-toast-err-border: #6e3036;
    --admin-toast-err-text: #ffd1d7;
}

.admin-body .main-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.admin-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    padding-left: 260px;
    display: block;
    background: var(--admin-bg);
    color: var(--admin-text);
    box-sizing: border-box;
    overflow-x: hidden;
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    z-index: 60;
    background: var(--admin-panel);
    border-right: 1px solid var(--admin-border);
    padding: 12px 14px 16px;
    transition: width 0.25s ease, transform 0.25s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.admin-shell.is-collapsed {
    padding-left: 84px;
}

.admin-shell.is-collapsed .admin-sidebar {
    width: 84px;
}

.admin-shell.is-collapsed .admin-sidebar .admin-brand {
    font-size: 0;
}

.admin-shell.is-collapsed .admin-sidebar .admin-brand::before {
    content: 'VA';
    font-size: 22px;
}

.admin-shell.is-collapsed .admin-sidebar a {
    text-align: center;
    font-size: 0;
}

.admin-shell.is-collapsed .admin-sidebar a::first-letter {
    font-size: 13px;
}

.admin-main {
    min-height: 100vh;
    padding: 20px;
    background: var(--admin-bg);
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

.module-card .table-wrap,
.table-wrap {
    max-width: 100%;
}

.kpi-card,
.module-card,
.admin-sidebar a,
.admin-main .btn {
    transition: all 0.2s ease;
}

.kpi-card:hover,
.module-card:hover {
    border-color: var(--admin-primary);
    transform: translateY(-1px);
}

.admin-main .btn:hover {
    border-color: var(--admin-primary);
}

.admin-sidebar-toggle {
    margin-bottom: 8px;
}

.pagination-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* Admin form grid for create/edit forms */
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.admin-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-muted);
}

.admin-form-grid label input,
.admin-form-grid label select,
.admin-form-grid label textarea {
    width: 100%;
    background: var(--admin-input-bg);
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
}

.admin-form-grid .full-width {
    grid-column: 1 / -1;
}

.admin-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

/* Servicos grid */
.servicos-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.servico-item {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
}

.servico-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f4ff, #dfe6ff);
    background-size: cover;
    background-position: center;
    border: 1px dashed var(--admin-border);
}

.servico-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.servico-meta .muted {
    color: var(--admin-muted);
    font-size: 12px;
}

.servico-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.servico-actions .inline {
    display: inline-flex;
}

.servico-actions .servico-status {
    display: inline-flex;
}

.servico-item h4 {
    margin: 0;
    font-size: 16px;
    color: var(--admin-text);
}

.servico-item p {
    margin: 0;
    font-size: 13px;
    color: var(--admin-muted);
}

.servico-item .servico-price {
    font-weight: 800;
    font-size: 18px;
    color: var(--admin-primary);
}

.servico-item .servico-status {
    font-size: 12px;
}

@media (max-width: 768px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .admin-shell,
    .admin-shell.is-collapsed {
        padding-left: 0;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .admin-shell.is-open-mobile .admin-sidebar {
        transform: translateX(0);
    }

    .admin-main {
        height: auto;
        min-height: 100vh;
    }
}

/* ================================================================
   CLIENTE "MEU LAR" �?" Layout & Theme
   ================================================================ */

.cliente-body {
    --cl-bg: #f8f8f2;
    --cl-surface: #ffffff;
    --cl-panel: #3b4112;
    --cl-border: #e9eadf;
    --cl-text: #2f3411;
    --cl-muted: #70785f;
    --cl-primary: #f1dd52;
    --cl-primary-dark: #d9cc24;
    --cl-primary-text: #3b4112;
    --cl-hover: rgba(242, 232, 42, 0.16);
    --cl-shadow: rgba(59, 65, 18, 0.10);
    --cl-stripe: rgba(59, 65, 18, 0.035);
    background: var(--cl-bg);
    overflow-x: hidden;
}

.cliente-body .main-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Shell */
.cliente-shell {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-left: 260px;
    display: block;
    box-sizing: border-box;
}

/* Sidebar */
.cliente-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    z-index: 60;
    background: linear-gradient(180deg, #3b4112 0%, #4d5521 100%);
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 18px 14px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.cliente-brand {
    color: var(--cl-primary);
    font-size: 46px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    margin: 4px 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cliente-brand .brand-word {
    text-transform: lowercase;
}

.cliente-brand .brand-mark {
    font-size: 28px;
    opacity: 0.9;
}

.cliente-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    justify-content: flex-start;
}

.cliente-sidebar nav a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0;
    transition: background 0.2s, color 0.2s;
}

.cliente-sidebar nav a:hover {
    background: rgba(242, 232, 42, 0.16);
    color: #ffffff;
}

.cliente-sidebar nav a.is-active {
    background: linear-gradient(90deg, rgba(242, 232, 42, 0.34), rgba(242, 232, 42, 0.92));
    color: var(--cl-primary-text);
}

.cliente-sidebar nav a .menu-icon {
    display: none;
}

.cliente-sidebar nav a .menu-label {
    flex: 1;
}

.badge-count {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}

.cliente-sidebar .sidebar-user {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 12px;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: center;
}

.cliente-sidebar .sidebar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cl-primary);
    color: var(--cl-primary-text);
    font-weight: 800;
    font-size: 16px;
}

.cliente-sidebar .sidebar-user-meta {
    display: grid;
    min-width: 0;
}

.cliente-sidebar .sidebar-user strong {
    color: #e8edf6;
    font-size: 13px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cliente-sidebar .sidebar-user small {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logout {
    margin-top: 10px;
}

.btn-logout {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--cl-primary-text);
    padding: 8px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255,255,255,0.32);
}

/* Cliente Main */
.cliente-main {
    min-height: 100vh;
    padding: 20px 22px;
    box-sizing: border-box;
}

.cliente-menu-toggle {
    display: none;
    background: #ffffff;
    color: var(--cl-primary-text);
    border: 1px solid var(--cl-border);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
    font-weight: 700;
    cursor: pointer;
    margin: 0;
}

/* Topbar */
.cliente-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(248, 248, 242, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--cl-border);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 26px var(--cl-shadow);
}

.cliente-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cliente-topbar h1 {
    margin: 0;
    font-size: 22px;
    color: var(--cl-text);
}

.cliente-topbar p {
    margin: 4px 0 0;
    color: var(--cl-muted);
    font-size: 14px;
}

.cliente-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notif-bell {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--cl-border);
    background: #ffffff;
    display: grid;
    place-items: center;
    font-size: 16px;
    text-decoration: none;
}

.topbar-divider {
    width: 1px;
    height: 24px;
    background: var(--cl-border);
}

.cliente-topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cliente-topbar-user .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: var(--cl-primary);
    color: var(--cl-primary-text);
}

.cliente-topbar-user strong {
    font-size: 14px;
    color: var(--cl-text);
}

.notif-bell .badge-count {
    position: absolute;
    top: -6px;
    right: -10px;
}

/* Grids */
.cliente-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.cliente-grid.kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cliente-grid.two-cols-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Reuse existing module-card, kpi-card styles with cliente overrides */
.cliente-body .module-card {
    background: var(--cl-surface);
    border: 1px solid var(--cl-border);
    border-radius: 14px;
    box-shadow: 0 4px 14px var(--cl-shadow);
    padding: 16px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.cliente-body .module-card:hover {
    border-color: var(--cl-primary-dark);
}

.cliente-body .module-card h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--cl-text);
}

.cliente-body .kpi-card {
    background: var(--cl-surface);
    border: 1px solid var(--cl-border);
    border-radius: 14px;
    box-shadow: 0 4px 14px var(--cl-shadow);
    padding: 16px;
    transition: border-color 0.2s, transform 0.2s;
}

.cliente-body .kpi-card:hover {
    border-color: var(--cl-primary);
    transform: translateY(-2px);
}

.cliente-body .kpi-card small {
    display: block;
    color: var(--cl-muted);
    margin-bottom: 6px;
    font-size: 13px;
}

.cliente-body .kpi-card strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--cl-text);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-pendente { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.status-aceito { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.status-concluido { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.status-cancelado { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.freq-badge {
    background: #e0e7ff;
    color: #3730a3;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* Next service card */
.next-service-card p { margin: 4px 0; font-size: 14px; }

.poll-label {
    display: block;
    margin-top: 6px;
    color: var(--cl-muted);
    font-size: 11px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 24px 16px;
    color: var(--cl-muted);
}

.empty-state p {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
}

.empty-state small {
    font-size: 13px;
}

/* Favoritos */
.fav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--cl-border);
    font-size: 14px;
}

.fav-item:last-child { border-bottom: none; }

/* Actions cell */
.actions-cell {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* Modals */
.cliente-modal {
    width: 480px;
    max-width: 95vw;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
    padding: 22px;
    position: relative;
}

.cliente-modal.modal-wide {
    width: 640px;
}

.cliente-modal h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.cliente-modal textarea,
.cliente-modal input,
.cliente-modal select {
    margin-bottom: 10px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

/* Star rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin: 8px 0;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 28px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s;
    width: auto;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f59e0b;
}

/* Info grid (perfil) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.info-grid div {
    background: var(--cl-bg);
    border: 1px solid var(--cl-border);
    border-radius: 10px;
    padding: 12px;
}

.info-grid small {
    display: block;
    color: var(--cl-muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.info-grid strong {
    font-size: 15px;
}

/* Enderecos */
.enderecos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.endereco-card {
    background: var(--cl-bg);
    border: 1px solid var(--cl-border);
    border-radius: 12px;
    padding: 14px;
    position: relative;
}

.endereco-card.is-principal {
    border-color: var(--cl-primary);
    background: #f7fee7;
}

.principal-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #65a30d;
}

.endereco-card p {
    margin: 2px 0;
    font-size: 13px;
}

.endereco-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* Notificações */
.notif-list {
    display: grid;
    gap: 8px;
}

.notif-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--cl-border);
    border-radius: 10px;
    transition: background 0.2s;
}

.notif-item.is-unread {
    background: #eff6ff;
    border-color: #93c5fd;
}

.notif-content strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.notif-content p {
    margin: 0;
    font-size: 13px;
    color: var(--cl-muted);
}

.notif-content small {
    font-size: 11px;
    color: #9ca3af;
}

.notif-read-tag {
    font-size: 12px;
    color: #6ee7b7;
    font-weight: 600;
    white-space: nowrap;
}

/* Toast auto-dismiss */
.toast[data-toast] {
    animation: toastSlide 0.3s ease, toastFade 0.5s ease 4s forwards;
}

@keyframes toastSlide {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes toastFade {
    to { opacity: 0; height: 0; padding: 0; margin: 0; overflow: hidden; }
}

/* Responsivo cliente */
@media (max-width: 1100px) {
    .cliente-shell {
        padding-left: 0;
    }

    .cliente-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .cliente-shell.is-open-mobile .cliente-sidebar {
        transform: translateX(0);
    }

    .cliente-menu-toggle {
        display: block;
    }

    .cliente-grid.kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cliente-grid.kpi-grid,
    .cliente-grid.two-cols-grid,
    .info-grid,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .enderecos-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   ADMIN �?" Extended UI Components
   =================================== */

/* Badge system */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-danger  { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info    { background: #d1ecf1; color: #0c5460; }
.badge-secondary { background: #e2e3e5; color: #383d41; }

[data-admin-theme="dark"] .badge-success { background: #1a3a2a; color: #7ce8a0; }
[data-admin-theme="dark"] .badge-danger  { background: #3a1a1a; color: #e87c7c; }
[data-admin-theme="dark"] .badge-warning { background: #3a3518; color: #e8d67c; }
[data-admin-theme="dark"] .badge-info    { background: #183a3a; color: #7cd6e8; }
[data-admin-theme="dark"] .badge-secondary { background: #2a2a2a; color: #b0b0b0; }

/* Text color utilities */
.text-success { color: #28a745 !important; }
.text-danger  { color: #dc3545 !important; }
.text-warning { color: #d4a017 !important; }

/* Button variants */
.btn-success { background: #28a745; color: #fff; border-color: #28a745; }
.btn-success:hover { background: #218838; }
.btn-danger  { background: #dc3545; color: #fff; border-color: #dc3545; }
.btn-danger:hover  { background: #c82333; }
.btn-warning { background: #ffc107; color: #212529; border-color: #ffc107; }
.btn-warning:hover { background: #e0a800; }

/* Detail panel (inline detail sections) */
.detail-panel {
    margin-top: 18px;
    padding: 16px 18px;
    background: var(--admin-card-bg, #fff);
    border: 1px solid var(--admin-border, #e2e8f0);
    border-left: 4px solid var(--admin-primary, #2d8a4e);
    border-radius: 8px;
}
.detail-panel h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
}
.detail-panel h5 {
    margin: 14px 0 6px 0;
    font-size: 13px;
    color: var(--admin-text-muted, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Timeline list */
.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 3px solid var(--admin-primary, #2d8a4e);
    padding-left: 16px;
}
.timeline-list li {
    position: relative;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
}
.timeline-list li::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 12px;
    width: 8px;
    height: 8px;
    background: var(--admin-primary, #2d8a4e);
    border-radius: 50%;
}

/* Admin settings form (fieldset layout) */
.admin-settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.admin-settings-form fieldset {
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 8px;
    padding: 14px 18px;
}
.admin-settings-form legend {
    font-weight: 600;
    font-size: 14px;
    padding: 0 6px;
    color: var(--admin-primary, #2d8a4e);
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.form-row label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    min-width: 180px;
    flex: 1;
}
.form-row label input,
.form-row label select {
    font-size: 13px;
    padding: 6px 10px;
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 6px;
    background: var(--admin-card-bg, #fff);
    color: var(--admin-text, #1e293b);
}

/* Pagination enhancements */
.pagination-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--admin-border, #e2e8f0);
}

/* Admin table code blocks */
.admin-main table code {
    background: rgba(0,0,0,0.06);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
}
[data-admin-theme="dark"] .admin-main table code {
    background: rgba(255,255,255,0.1);
}

/* Responsive admin settings */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    .form-row label {
        min-width: 100%;
    }
    .admin-grid.two-cols {
        grid-template-columns: 1fr;
    }
}



/* -- Campos obrigatorios ------------------------------------------------------- */
label.required-field::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}
