/* Auto-extraido de blocos <style> dos templates. */

/* templates/admin_entrevistas.html */
.table-responsive {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .table {
        margin-bottom: 0;
    }

    .table-hover tbody tr:hover {
        background-color: #f8f9fa;
    }

    .badge {
        padding: 6px 12px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
        display: inline-block;
    }

    .badge-primary {
        background: #007bff;
        color: white;
    }

    .badge-secondary {
        background: #6c757d;
        color: white;
    }

    .badge-warning {
        background: #ffc107;
        color: #000;
    }

    .badge-info {
        background: #17a2b8;
        color: white;
    }

    .badge-success {
        background: #28a745;
        color: white;
    }

    .badge-danger {
        background: #dc3545;
        color: white;
    }

    .btn-group-sm .btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    .tabs {
        display: flex;
        gap: 10px;
        border-bottom: 2px solid #e9ecef;
        margin-bottom: 20px;
    }

    .tab-btn {
        padding: 10px 20px;
        border: none;
        background: none;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        color: #666;
        border-bottom: 3px solid transparent;
        transition: all 0.3s ease;
    }

    .tab-btn.active {
        color: #007bff;
        border-bottom-color: #007bff;
    }

    .tab-btn:hover {
        color: #0056b3;
    }

    .alert {
        border-radius: 8px;
        padding: 12px 16px;
        margin-bottom: 20px;
    }

    .alert-danger {
        background: #f8d7da;
        border: 1px solid #f5c6cb;
        color: #721c24;
    }

    .alert-success {
        background: #d4edda;
        border: 1px solid #c3e6cb;
        color: #155724;
    }

    .alert-warning {
        background: #fff3cd;
        border: 1px solid #ffeaa7;
        color: #856404;
    }

    .alert-info {
        background: #d1ecf1;
        border: 1px solid #bee5eb;
        color: #0c5460;
    }

/* templates/admin_login.html */
@media (max-width: 900px) {
        .auth-panel[style*="padding-right"] {
            padding-right: 24px !important;
            text-align: center;
        }
    }

/* templates/admin_motoboy_detalhes.html */
.audit-grid {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 28px;
        align-items: start;
    }

    .audit-header {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        align-items: flex-start;
        margin-bottom: 28px;
    }

    .doc-grid,
    .fleet-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 16px;
    }

    .doc-card,
    .fleet-card {
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface);
        padding: 18px;
    }

    .doc-card.is-missing {
        background: var(--warning-soft);
        border-color: #fcd34d;
    }

    .doc-actions {
        display: flex;
        gap: 8px;
        margin-top: 14px;
    }

    .decision-card {
        position: sticky;
        top: 24px;
    }

    @media (max-width: 980px) {
        .audit-grid {
            grid-template-columns: 1fr;
        }

        .decision-card {
            position: static;
        }
    }

/* templates/admin_ocorrencias.html */
.occurrence-filter-bar {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 22px;
    }

    .occurrence-filter {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: #fff;
        color: var(--text);
        text-decoration: none;
        font-size: .82rem;
        font-weight: 900;
    }

    .occurrence-filter.active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .occurrence-card {
        padding: 0;
        overflow: hidden;
        border-radius: 10px;
        border: 1px solid var(--line);
        margin-bottom: 16px;
    }

    .occurrence-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px;
        align-items: start;
        padding: 18px 20px;
        border-bottom: 1px solid var(--line);
        background: #f8fafc;
    }

    .occurrence-body {
        padding: 20px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 22px;
        align-items: start;
    }

    .occurrence-info-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .occurrence-info {
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 12px;
        background: #fff;
        min-width: 0;
    }

    .occurrence-info span {
        display: block;
        color: var(--muted);
        font-size: .68rem;
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 5px;
    }

    .occurrence-info strong {
        display: block;
        color: var(--text);
        font-size: .86rem;
        overflow-wrap: anywhere;
    }

    .occurrence-flags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 14px;
    }

    .occurrence-flag {
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        background: #fff;
        padding: 5px 8px;
        color: #475569;
        font-size: .68rem;
        font-weight: 850;
    }

    .occurrence-flag.danger {
        border-color: #fecaca;
        background: #fef2f2;
        color: #991b1b;
    }

    .occurrence-form {
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 14px;
        background: #fff;
    }

    .occurrence-form label {
        display: block;
        font-size: .72rem;
        font-weight: 900;
        color: #334155;
        margin-bottom: 6px;
    }

    .occurrence-form select,
    .occurrence-form input,
    .occurrence-form textarea {
        width: 100%;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 10px 12px;
        font: inherit;
        font-size: .84rem;
        background: #fff;
    }

    .occurrence-form textarea {
        min-height: 92px;
        resize: vertical;
    }

    .occurrence-impact {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 9px 10px;
        background: #f8fafc;
        font-size: .78rem;
        font-weight: 850;
        margin-top: 8px;
    }

    @media (max-width: 980px) {
        .occurrence-head,
        .occurrence-body {
            grid-template-columns: 1fr;
        }

        .occurrence-info-grid {
            grid-template-columns: 1fr;
        }
    }

/* templates/admin_reprovar_usuario.html */
.modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .modal-content {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 40px;
        max-width: 600px;
        width: 90%;
        box-shadow: var(--shadow-lg);
    }

    .modal-header {
        margin-bottom: 24px;
    }

    .modal-header h2 {
        font-size: 24px;
        margin: 0 0 8px 0;
        color: #ef4444;
    }

    .modal-header p {
        margin: 0;
        color: var(--muted);
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--text);
    }

    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: var(--surface-soft);
        color: var(--text);
        font-size: 14px;
        font-family: inherit;
    }

    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

    .usuario-info {
        background: rgba(59, 130, 246, 0.1);
        border-left: 4px solid #3b82f6;
        padding: 16px;
        border-radius: 6px;
        margin-bottom: 24px;
    }

    .usuario-info strong {
        display: block;
        margin-bottom: 8px;
        color: var(--text);
    }

    .usuario-info p {
        margin: 4px 0;
        color: var(--text);
        font-size: 14px;
    }

    .modal-actions {
        display: flex;
        gap: 12px;
        justify-content: flex-end;
        margin-top: 24px;
    }

    .btn {
        padding: 12px 24px;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
    }

    .btn-cancel {
        background: var(--surface-soft);
        color: var(--text);
    }

    .btn-cancel:hover {
        background: var(--line);
    }

    .btn-reject {
        background: #ef4444;
        color: #fff;
    }

    .btn-reject:hover {
        opacity: 0.9;
    }

    .motivos-predefinidos {
        display: grid;
        gap: 8px;
        margin-bottom: 16px;
    }

    .motivo-btn {
        padding: 10px;
        background: var(--surface-soft);
        border: 1px solid var(--line);
        border-radius: 6px;
        text-align: left;
        cursor: pointer;
        transition: 0.2s;
        font-size: 13px;
    }

    .motivo-btn:hover {
        background: var(--line);
    }

    .motivo-btn.selected {
        background: rgba(239, 68, 68, 0.15);
        border-color: #ef4444;
        color: #ef4444;
    }

    @media (max-width: 768px) {
        .modal-content {
            padding: 24px;
        }

        .modal-header h2 {
            font-size: 20px;
        }
    }

/* templates/admin_tesouraria.html */
:root {
        --fintech-green: #10b981;
        --fintech-red: #ef4444;
        --fintech-blue: #3b82f6;
    }

    .config-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin-bottom: 40px;
    }

    .config-card {
        background: white;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        border: 1px solid #e2e8f0;
        transition: transform 0.2s;
    }

    .config-card:hover {
        transform: translateY(-4px);
    }

    .vehicle-icon {
        width: 48px;
        height: 48px;
        background: #f1f5f9;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .input-group-fintech {
        margin-bottom: 12px;
    }

    .input-group-fintech label {
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .input-group-fintech input {
        width: 100%;
        padding: 10px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-weight: 600;
        color: #1e293b;
    }

    .btn-save-mini {
        width: 100%;
        padding: 8px;
        background: var(--fintech-blue);
        color: white;
        border: none;
        border-radius: 8px;
        font-weight: 700;
        cursor: pointer;
        font-size: 0.85rem;
        margin-top: 8px;
    }

    .debt-badge {
        background: #fee2e2;
        color: #991b1b;
        padding: 4px 8px;
        border-radius: 6px;
        font-weight: 800;
        font-size: 0.85rem;
    }

    .tag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border-radius: 999px;
        padding: 4px 9px;
        font-size: 0.72rem;
        font-weight: 850;
    }

    .tag-primary { background: #dbeafe; color: #1d4ed8; }
    .tag-warning { background: #fef3c7; color: #92400e; }
    .tag-danger { background: #fee2e2; color: #991b1b; }
    .tag-success { background: #dcfce7; color: #166534; }

    .fin-tabs {
        display: flex;
        gap: 12px;
        margin-bottom: 24px;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 12px;
    }

    .fin-tab {
        padding: 8px 16px;
        border-radius: 8px;
        font-weight: 700;
        cursor: pointer;
        color: #64748b;
        transition: 0.2s;
    }

    .fin-tab.active {
        background: var(--primary);
        color: white;
    }

    .status-alert {
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 600;
    }

    .status-alert.warning { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }

/* templates/admin_usuario_detalhes.html */
a[href^="/admin/verificar-documento/"],
    a[href^="/admin/usuario/aprovar/"],
    a[href^="/admin/usuario/suspender/"] {
        display: none !important;
    }

    @media (max-width: 900px) {
        .info-grid[style*="repeat(3"] {
            grid-template-columns: 1fr !important;
        }

        .info-item[style*="grid-column: span 3"] {
            grid-column: span 1 !important;
        }

        .profile-header[style*="display: flex"] {
            flex-direction: column !important;
            align-items: center !important;
            text-align: center;
        }

        .hero-actions[style*="justify-content: flex-end"] {
            flex-direction: column;
            width: 100%;
        }

        .hero-actions[style*="justify-content: flex-end"] .btn {
            width: 100%;
            text-align: center;
            justify-content: center;
        }
    }

/* templates/admin_usuario_detalhes.html */
.fiscal-cnpj-actions > a[href^="/admin/verificar-cnpj/"]{display:none!important;}

/* templates/aguardando_aprovacao.html */
.approval-page {
        min-height: calc(100vh - 150px);
        padding: clamp(28px, 6vh, 64px) 16px 56px;
    }

    .approval-shell {
        width: min(100%, 1080px);
        margin: 0 auto;
        display: grid;
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap: 24px;
        align-items: start;
    }

    .approval-hero,
    .approval-panel {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow-md);
    }

    .approval-hero {
        overflow: hidden;
    }

    .approval-hero-head {
        padding: 34px;
        color: #fff;
        background: #0f172a;
    }

    .approval-hero-head.is-store { background: linear-gradient(135deg, #0f766e 0%, #0f172a 100%); }
    .approval-hero-head.is-courier { background: linear-gradient(135deg, #2563eb 0%, #111827 100%); }
    .approval-hero-head.is-consumer { background: linear-gradient(135deg, #16a34a 0%, #0f172a 100%); }

    .approval-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 11px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 0.74rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .approval-title {
        margin: 18px 0 10px;
        font-size: clamp(1.7rem, 3vw, 2.45rem);
        line-height: 1.08;
        font-weight: 950;
        letter-spacing: 0;
    }

    .approval-subtitle {
        margin: 0;
        color: rgba(255, 255, 255, 0.84);
        font-size: 0.98rem;
        line-height: 1.58;
        font-weight: 650;
    }

    .approval-hero-body {
        padding: 26px 30px 30px;
        display: grid;
        gap: 14px;
    }

    .approval-note {
        padding: 15px;
        border-radius: 12px;
        border: 1px solid #fde68a;
        background: #fffbeb;
        color: #92400e;
        font-size: 0.86rem;
        line-height: 1.52;
        font-weight: 700;
    }

    .approval-note strong {
        display: block;
        color: #78350f;
        margin-bottom: 4px;
        font-size: 0.78rem;
        text-transform: uppercase;
        font-weight: 950;
    }

    .approval-note.is-ready {
        border-color: #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

    .approval-note.is-ready strong {
        color: #14532d;
    }

    .approval-panel {
        padding: 28px;
    }

    .approval-section-title {
        margin: 0 0 10px;
        color: #0f172a;
        font-size: 1.05rem;
        font-weight: 950;
    }

    .approval-text {
        color: #64748b;
        font-size: 0.91rem;
        line-height: 1.65;
        font-weight: 650;
        margin: 0;
    }

    .approval-steps {
        display: grid;
        gap: 12px;
        margin: 18px 0 26px;
    }

    .approval-step {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
        padding: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        background: #fff;
    }

    .approval-step.is-active {
        border-color: #f59e0b;
        background: #fffbeb;
    }

    .approval-step.is-done {
        border-color: #99f6e4;
        background: #f0fdfa;
    }

    .approval-step-number {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: #f1f5f9;
        color: #0f172a;
        font-weight: 950;
    }

    .approval-step.is-active .approval-step-number {
        background: #f59e0b;
        color: #fff;
    }

    .approval-step.is-done .approval-step-number {
        background: var(--primary);
        color: #fff;
    }

    .approval-step strong {
        display: block;
        color: #0f172a;
        font-size: 0.92rem;
        margin-bottom: 4px;
        font-weight: 950;
    }

    .approval-step p {
        margin: 0;
        color: #64748b;
        font-size: 0.84rem;
        line-height: 1.55;
        font-weight: 620;
    }

    .approval-feature-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 16px;
    }

    .approval-feature {
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 15px;
        background: #f8fafc;
    }

    .approval-feature i {
        color: var(--primary);
        font-size: 1.2rem;
    }

    .approval-feature strong {
        display: block;
        margin: 10px 0 5px;
        color: #0f172a;
        font-size: 0.88rem;
        font-weight: 950;
    }

    .approval-feature span {
        color: #64748b;
        font-size: 0.8rem;
        line-height: 1.5;
        font-weight: 620;
    }

    .approval-plan-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin: 16px 0 26px;
    }

    .approval-plan {
        border: 1px solid #dbeafe;
        border-radius: 14px;
        padding: 15px;
        background: #f8fafc;
    }

    .approval-plan strong {
        display: block;
        color: #0f172a;
        font-size: 0.86rem;
        font-weight: 950;
    }

    .approval-plan span {
        display: block;
        color: var(--primary);
        font-size: 1.02rem;
        font-weight: 950;
        margin-top: 3px;
    }

    .approval-plan small {
        display: block;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 700;
        margin-top: 3px;
    }

    .approval-checkout {
        margin-top: 18px;
        padding: 18px;
        border: 2px solid var(--primary);
        border-radius: 16px;
        background: #f0fdfa;
        color: #0f172a;
    }

    .approval-checkout-head {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    .approval-checkout-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: var(--primary);
        color: #fff;
        flex: 0 0 auto;
    }

    .approval-checkout h2 {
        margin: 0 0 4px;
        font-size: 1rem;
        font-weight: 950;
        color: #0f172a;
    }

    .approval-checkout p {
        margin: 0;
        color: #0f766e;
        font-size: 0.82rem;
        line-height: 1.5;
        font-weight: 700;
    }

    .approval-checkout-grid {
        display: grid;
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        gap: 14px;
        align-items: stretch;
    }

    .approval-checkout-method {
        padding: 14px;
        border: 1px solid #99f6e4;
        border-radius: 14px;
        background: #fff;
        min-width: 0;
    }

    .approval-checkout-method strong {
        display: block;
        color: #0f172a;
        font-size: 0.82rem;
        font-weight: 950;
        margin-bottom: 10px;
    }

    .approval-qr {
        width: 150px;
        height: 150px;
        display: block;
        margin: 0 auto 10px;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
    }

    .approval-pix-preview {
        max-height: 46px;
        overflow: hidden;
        word-break: break-all;
        color: #64748b;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 8px;
        font-size: 0.68rem;
        font-weight: 650;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .approval-checkout .btn {
        width: 100%;
        justify-content: center;
    }

    .approval-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 26px;
    }

    .approval-actions a {
        flex: 1 1 210px;
        text-align: center;
        justify-content: center;
    }

    @media (max-width: 900px) {
        .approval-shell {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 560px) {
        .approval-hero-head,
        .approval-panel {
            padding: 24px;
        }

        .approval-hero-body {
            padding: 22px;
        }

        .approval-feature-grid {
            grid-template-columns: 1fr;
        }

        .approval-plan-grid {
            grid-template-columns: 1fr;
        }

        .approval-checkout-grid {
            grid-template-columns: 1fr;
        }
    }

/* templates/auth_portal.html */
.login-role-note {
        margin-top: 16px;
        padding: 14px 0 14px 14px;
        border-left: 3px solid var(--primary);
        color: var(--text-muted);
        font-size: 0.84rem;
        line-height: 1.55;
        font-weight: 650;
    }
    .login-role-note strong {
        display: block;
        color: var(--secondary);
        font-size: 0.88rem;
        margin-bottom: 4px;
        font-weight: 900;
    }

    .merchant-trial-box {
        padding: 16px;
        border: 1px solid #bae6fd;
        border-radius: 14px;
        background: #f0f9ff;
        display: grid;
        gap: 12px;
    }

    .merchant-plan-mini-grid,
    .merchant-plan-choice {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .merchant-plan-mini,
    .merchant-plan-option {
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
        min-width: 0;
    }

    .merchant-plan-option {
        cursor: pointer;
        transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .merchant-plan-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .merchant-plan-option.is-selected {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(46, 183, 169, .14);
        transform: translateY(-1px);
    }

    .merchant-plan-mini strong,
    .merchant-plan-option strong {
        display: block;
        color: var(--secondary);
        font-size: 0.8rem;
        font-weight: 900;
    }

    .merchant-plan-mini span,
    .merchant-plan-option span {
        display: block;
        color: var(--primary);
        font-size: 0.98rem;
        font-weight: 950;
        margin-top: 2px;
    }

    .merchant-plan-mini small,
    .merchant-plan-option small {
        display: block;
        color: var(--text-muted);
        font-size: 0.7rem;
        font-weight: 700;
        margin-top: 2px;
    }

    @media (max-width: 560px) {
        .merchant-plan-mini-grid,
        .merchant-plan-choice {
            grid-template-columns: 1fr;
        }
    }

/* templates/auth_portal_consumidor.html */
.anon-route-note {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-strong);
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
    font-weight: 600;
  }
  .login-role-note {
    margin-top: 14px;
    padding: 14px 0 14px 14px;
    border-left: 3px solid var(--primary);
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.55;
    font-weight: 650;
  }
  .login-role-note strong {
    display: block;
    color: var(--secondary);
    font-size: 0.88rem;
    margin-bottom: 4px;
    font-weight: 900;
  }

  @media (max-width: 920px) {
    .auth-portal-container.anon-priority {
      margin-top: 8px;
    }

    .auth-portal-container.anon-priority .auth-card-panel {
      order: -1;
    }

    .auth-portal-container.anon-priority .auth-side {
      order: 2;
    }
  }

  @media (max-width: 600px) {
    .auth-portal-container.anon-priority .auth-card-panel,
    .auth-portal-container.anon-priority .auth-side {
      padding: 22px;
    }

    .auth-portal-container.anon-priority .auth-tabs {
      margin-bottom: 18px;
    }
  }

/* templates/comerciante_assinatura.html */
.plan-card { transition: transform .25s ease, box-shadow .25s ease; }
    .plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
    .checkout-grid { grid-template-columns: 1fr 1fr; }
    @media (max-width: 680px) { .checkout-grid { grid-template-columns: 1fr; } }
    @keyframes slideIn { from { transform:translateY(-8px); opacity:0; } to { transform:translateY(0); opacity:1; } }

/* templates/comerciante_base.html */
:root {
            --sidebar-width: 280px;
            --topbar-height: 80px;
        }

        html, body {
            overflow-x: hidden;
            max-width: 100vw;
        }

        body {
            font-family: 'Outfit', sans-serif;
            background-color: #f8fafc;
            color: #0f172a;
            margin: 0;
            display: flex;
        }

        /* Sidebar Modernizada */
        .admin-sidebar {
            width: var(--sidebar-width);
            background: #0f172a;
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            padding: 32px 24px;
            border-right: 1px solid rgba(255,255,255,0.05);
        }

        .brand-cube {
            width: 48px;
            height: 48px;
            background: var(--primary);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 40px;
            box-shadow: 0 10px 20px rgba(46, 183, 169, 0.3);
        }

        .sidebar-nav {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
        }

        .sidebar-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-radius: 14px;
            color: #94a3b8;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .sidebar-link i {
            font-size: 1.2rem;
            transition: transform 0.2s;
        }

        .sidebar-link:hover {
            background: rgba(255,255,255,0.05);
            color: #fff;
        }

        .sidebar-link:hover i {
            transform: translateX(3px);
        }

        .sidebar-link.active {
            background: var(--primary);
            color: white;
            box-shadow: 0 10px 20px rgba(46, 183, 169, 0.2);
        }

        .sidebar-section-label {
            font-size: 0.7rem;
            font-weight: 800;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin: 24px 16px 8px;
        }

        /* Main Content Area */
        .admin-main {
            flex: 1;
            margin-left: var(--sidebar-width);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }

        .admin-topbar {
            height: var(--topbar-height);
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--line);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 40px;
            position: sticky;
            top: 0;
            z-index: 900;
        }

        .hub-badge {
            background: #f1f5f9;
            color: #0f172a;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 800;
            letter-spacing: 0.5px;
        }

        .help-dot {
            width: 22px;
            height: 22px;
            min-width: 22px;
            border-radius: 50%;
            display: inline-grid;
            place-items: center;
            border: 1px solid var(--line);
            color: #64748b;
            background: #fff;
            font-size: 0.72rem;
            font-weight: 900;
            line-height: 1;
            cursor: help;
            user-select: none;
        }

        .merchant-action-strip {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }

        .merchant-action-strip a,
        .merchant-action-strip button {
            min-width: 0;
        }

        /* Mobile Adjustments */
        @media (max-width: 1024px) {
            .admin-sidebar { display: none; }
            .admin-main { margin-left: 0; padding-bottom: 90px; }
            .admin-topbar { padding: 0 20px; }
            .desktop-only { display: none !important; }
            .btn-editar-perfil { display: none !important; }
            .merchant-action-strip { grid-template-columns: 1fr; }
        }

        .mobile-bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: #0f172a;
            display: none;
            justify-content: space-around;
            padding: 12px 0;
            z-index: 1100;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        @media (max-width: 1024px) {
            .mobile-bottom-nav { display: flex; }
        }

        .mobile-nav-link {
            color: #94a3b8;
            text-decoration: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 0.65rem;
            font-weight: 700;
            gap: 4px;
            min-width: 0;
        }

        button.mobile-nav-link {
            border: 0;
            background: transparent;
            font-family: inherit;
            cursor: pointer;
            padding: 0;
        }

        .mobile-nav-link i { font-size: 1.4rem; }
        .mobile-nav-link.active { color: var(--primary); }

        .mobile-more-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.45);
            z-index: 1090;
            display: none;
        }

        .mobile-more-backdrop.open {
            display: block;
        }

        .mobile-more-sheet {
            position: fixed;
            left: 12px;
            right: 12px;
            bottom: 82px;
            z-index: 1110;
            display: none;
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 18px;
            box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
            padding: 10px;
        }

        .mobile-more-sheet.open {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .mobile-more-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 13px;
            border-radius: 14px;
            background: #f8fafc;
            color: #0f172a;
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 850;
            border: 1px solid transparent;
        }

        .mobile-more-item i {
            color: var(--primary);
            font-size: 1.1rem;
        }

        .mobile-more-item.active {
            border-color: var(--primary);
            background: var(--primary-soft);
        }

        .mobile-more-item.is-danger {
            color: #b91c1c;
        }

        .mobile-more-item.is-danger i {
            color: #ef4444;
        }

        /* Estilo Global de Modais */
        .ui-modal {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(8px);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

        /* Lightbox Moderno */
        .ui-lightbox {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.9);
            backdrop-filter: blur(8px);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 40px;
            cursor: zoom-out;
            animation: fadeIn 0.3s ease;
        }
        .ui-lightbox img {
            max-width: 100%;
            max-height: 100%;
            border-radius: 16px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            cursor: default;
            transform: scale(0.9);
            animation: scaleUp 0.3s forwards;
        }
        .lightbox-close {
            position: absolute;
            top: 32px;
            right: 32px;
            background: white;
            color: #0f172a;
            border: none;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }
        @keyframes scaleUp {
            to { transform: scale(1); }
        }

/* templates/comerciante_cupons.html */
@media (max-width: 1024px) {
        .table-responsive { display: none !important; }
        .mobile-only-list { display: block !important; }
    }

/* templates/comerciante_entregadores.html */
.partner-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
    }

    .partner-card {
        background: white;
        border-radius: 24px;
        border: 1px solid var(--line);
        padding: 32px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-align: center;
        position: relative;
    }

    .partner-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-soft);
    }

    .avatar-lg {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid #f1f5f9;
        margin-bottom: 20px;
        box-shadow: var(--shadow-sm);
    }

    .stat-pill {
        background: #f8fafc;
        padding: 10px 16px;
        border-radius: 12px;
        font-size: 0.8rem;
        font-weight: 800;
        color: #475569;
        display: flex;
        align-items: center;
        gap: 8px;
        border: 1px solid #e2e8f0;
    }

    .whatsapp-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 24px;
        background: #ecfdf5;
        color: #059669;
        border-radius: 12px;
        font-size: 0.85rem;
        font-weight: 800;
        text-decoration: none;
        transition: 0.2s;
        width: 100%;
        justify-content: center;
        margin-top: 24px;
    }

    .whatsapp-badge:hover {
        background: #dcfce7;
        transform: scale(1.02);
    }

    .badge-tier {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 4px 12px;
        border-radius: 100px;
        font-size: 0.7rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .badge-tier.ouro {
        background: #fef3c7;
        color: #92400e;
        border: 1px solid #fbbf24;
    }

    .badge-tier.prata {
        background: #f1f5f9;
        color: #475569;
        border: 1px solid #cbd5e1;
    }

    .badge-tier.bronze {
        background: #fff7ed;
        color: #9a3412;
        border: 1px solid #fb923c;
    }

    .score-panel {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 14px;
        text-align: left;
    }

    .score-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: center;
        font-size: 0.72rem;
        font-weight: 900;
        color: #475569;
        text-transform: uppercase;
    }

    .score-bar {
        height: 8px;
        background: #e2e8f0;
        border-radius: 999px;
        overflow: hidden;
        margin-top: 8px;
    }

    .score-fill {
        height: 100%;
        background: linear-gradient(90deg, #f59e0b, #22c55e);
        border-radius: inherit;
    }

    .rating-actions {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px dashed #e2e8f0;
    }

    .rating-buttons {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        margin-top: 8px;
    }

    .rating-buttons button {
        border: 1px solid #fde68a;
        background: #fffbeb;
        color: #92400e;
        border-radius: 10px;
        padding: 8px 0;
        font-weight: 900;
        cursor: pointer;
    }

    .rating-buttons button:hover { background: #fef3c7; }

    @media (max-width: 760px) {
        .partner-grid { grid-template-columns: 1fr; }
        .partner-card { padding: 22px; border-radius: 20px; }
    }

/* templates/comerciante_relatorios.html */
.metric-card-premium {
        background: white;
        padding: 32px;
        border-radius: 24px;
        border: 1px solid var(--line);
        display: flex;
        flex-direction: column;
        gap: 8px;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .metric-card-premium:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
    }
    .metric-card-premium.highlight {
        background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
        border: 1px solid #22c55e;
        border-bottom: 6px solid #22c55e;
    }

/* templates/comerciante_relatorios.html */
@media (max-width: 1024px) {
        .table-responsive { display: none !important; }
        .mobile-only-list { display: block !important; }
    }

/* templates/comerciante_solicitar_motoboy.html */
.delivery-status-card {
        padding: 20px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--line);
        background: white;
        transition: all 0.2s;
    }

    .delivery-status-card:hover {
        border-color: var(--primary-soft);
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

    #resultado-calc {
        background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
        border: 1px solid #22c55e;
        border-radius: var(--radius-lg);
        padding: 24px;
        margin-bottom: 24px;
        display: none;
    }

    html, body { overflow-x: hidden; max-width: 100vw; }
    .help-dot {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: inline-grid;
        place-items: center;
        border: 1px solid var(--line);
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 900;
        cursor: help;
        background: #fff;
    }
    .order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .courier-strip {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 16px;
    }
    .courier-score-wrap {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f1f5f9;
        text-align: left;
    }
    .courier-score-line {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        font-size: 0.68rem;
        font-weight: 900;
        color: #475569;
        text-transform: uppercase;
    }
    .courier-score-bar {
        height: 6px;
        border-radius: 999px;
        background: #e2e8f0;
        overflow: hidden;
        margin-top: 7px;
    }
    .courier-score-fill {
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #f59e0b, #22c55e);
    }
    .courier-mini-metrics {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-top: 10px;
        font-size: 0.68rem;
        font-weight: 800;
        color: #64748b;
    }
    .order-product-ficha {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        margin: 12px 0;
        padding: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        background: #fff;
    }
    .order-product-ficha img {
        width: 64px;
        height: 64px;
        border-radius: 12px;
        object-fit: cover;
        border: 1px solid var(--line);
        cursor: zoom-in;
        background: #f8fafc;
        flex: 0 0 auto;
    }
    .order-product-title {
        color: #0f172a;
        font-size: 0.92rem;
        font-weight: 900;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
    .order-product-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 10px;
    }
    .order-product-grid span {
        min-width: 0;
        padding: 7px 8px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #eef2f7;
        color: #334155;
        font-size: 0.72rem;
        font-weight: 800;
        overflow-wrap: anywhere;
    }
    .order-product-grid strong {
        display: block;
        color: #64748b;
        font-size: 0.58rem;
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 2px;
    }
    .order-product-desc {
        margin-top: 10px;
        color: #475569;
        font-size: 0.78rem;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }
    @media (max-width: 760px) {
        .order-actions { grid-template-columns: 1fr; }
        [style*="minmax(350px"] { grid-template-columns: 1fr !important; }
        .order-product-ficha { flex-direction: column; }
        .order-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

/* templates/components_escrow.html */
.timeline-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }

        .timeline-step.active .timeline-dot {
            background: #22c55e;
        }

        .timeline-step.pending .timeline-dot {
            background: rgba(34, 197, 94, 0.2);
        }

        .timeline-dot {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.5rem;
            font-weight: 900;
        }

        .timeline-label {
            font-size: 0.65rem;
            font-weight: 700;
            text-align: center;
            max-width: 70px;
            color: #1e293b;
        }

        .timeline-connector {
            flex: 1;
            height: 2px;
            background: #e2e8f0;
            position: relative;
            top: -12px;
        }

/* templates/dash_comerciante_hub.html */
.card-premium-stats {
        background: white;
        padding: 32px;
        border-radius: 32px;
        border: 1px solid var(--line);
        box-shadow: var(--shadow-sm);
        transition: all 0.3s ease;
    }

    .status-badge-premium {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 12px;
        border-radius: 100px;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .btn-ghost {
        background: transparent;
        border: 1px solid var(--line);
        color: var(--text);
        transition: all 0.2s;
    }
    
    .btn-ghost:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
    }

    .hub-btn-outline {
        background: transparent !important;
        border: 1px solid rgba(255,255,255,0.4) !important;
        color: white !important;
        transition: all 0.3s ease !important;
    }
    .hub-btn-outline:hover {
        background: rgba(255,255,255,0.1) !important;
        border-color: white !important;
        transform: translateY(-2px);
    }

    .next-action-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .next-action-card {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #f8fafc;
        color: var(--text);
        text-decoration: none;
        min-width: 0;
    }

    .next-action-card strong {
        display: block;
        font-size: 0.9rem;
        color: #0f172a;
    }

    .next-action-card span {
        display: block;
        margin-top: 4px;
        font-size: 0.75rem;
        color: var(--text-muted);
        font-weight: 600;
        line-height: 1.35;
    }
    .publication-status-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        margin: 0 0 24px;
        padding: 18px;
        border: 1px solid #fde68a;
        border-radius: 16px;
        background: #fffbeb;
        color: #92400e;
    }
    .publication-status-card.is-plan {
        border-color: #bfdbfe;
        background: #eff6ff;
        color: #1e3a8a;
    }
    .publication-status-card.is-live {
        border-color: #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }
    .publication-status-card strong {
        display: block;
        color: #0f172a;
        font-size: 0.96rem;
        font-weight: 950;
        margin-bottom: 4px;
    }
    .publication-status-card span {
        display: block;
        font-size: 0.82rem;
        line-height: 1.45;
        font-weight: 700;
    }
    .order-product-ficha {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        margin: 12px 0;
        padding: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        background: #fff;
    }
    .order-product-ficha img {
        width: 64px;
        height: 64px;
        border-radius: 12px;
        object-fit: cover;
        border: 1px solid var(--line);
        cursor: zoom-in;
        background: #f8fafc;
        flex: 0 0 auto;
    }
    .order-product-title {
        color: #0f172a;
        font-size: 0.92rem;
        font-weight: 900;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
    .order-product-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 10px;
    }
    .order-product-grid span {
        min-width: 0;
        padding: 7px 8px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #eef2f7;
        color: #334155;
        font-size: 0.72rem;
        font-weight: 800;
        overflow-wrap: anywhere;
    }
    .order-product-grid strong {
        display: block;
        color: #64748b;
        font-size: 0.58rem;
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 2px;
    }
    .order-product-desc {
        margin-top: 10px;
        color: #475569;
        font-size: 0.78rem;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }
    html, body { overflow-x: hidden; max-width: 100vw; }
    .help-dot {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: inline-grid;
        place-items: center;
        border: 1px solid var(--line);
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 900;
        cursor: help;
        background: #fff;
    }
    @media (max-width: 760px) {
        .hub-header-actions { width: 100%; flex-direction: column; }
        .hub-header-actions .btn-premium,
        .hub-header-actions .btn-outline-premium { width: 100%; justify-content: center; }
        .publication-status-card { flex-direction: column; align-items: stretch; }
        .next-action-grid { grid-template-columns: 1fr; }
        .order-product-ficha { flex-direction: column; }
        .order-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

/* templates/dash_comerciante_v2.html */
.mgmt-toolbar-card {
        background: white;
        padding: 24px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--line);
        margin-bottom: 32px;
    }

    .data-table-wrapper {
        background: white;
        border-radius: var(--radius-lg);
        border: 1px solid var(--line);
        overflow: hidden;
    }

    .product-cell {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .product-thumb {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        object-fit: cover;
        border: 1px solid var(--line);
    }

    .bulk-action-bar {
        position: fixed;
        bottom: 32px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--secondary);
        color: #fff;
        padding: 16px 32px;
        border-radius: 999px;
        display: none;
        align-items: center;
        gap: 24px;
        z-index: 500;
        box-shadow: var(--shadow-lg);
        border: 1px solid rgba(255,255,255,0.1);
    }

    .catalog-insight-card {
        background: white;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        padding: 18px;
        display: flex;
        align-items: center;
        gap: 14px;
        text-decoration: none;
        color: var(--text);
        min-width: 0;
    }

    .catalog-insight-card strong {
        display: block;
        font-size: 0.88rem;
        color: #0f172a;
    }

    .catalog-insight-card span {
        display: block;
        margin-top: 3px;
        font-size: 0.75rem;
        color: var(--text-muted);
        font-weight: 600;
    }

    .product-mobile-list {
        display: none;
        gap: 12px;
    }

    .product-mobile-card {
        background: white;
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 16px;
    }

    .catalog-view-switch {
        display: inline-flex;
        gap: 6px;
        padding: 4px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #f8fafc;
    }

    .catalog-view-switch button {
        border: 0;
        border-radius: 10px;
        padding: 9px 12px;
        font-size: 0.76rem;
        font-weight: 900;
        color: #64748b;
        background: transparent;
        cursor: pointer;
    }

    .catalog-view-switch button.active {
        background: var(--primary);
        color: #fff;
    }

    .product-detail-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
        gap: 18px;
    }

    .product-detail-card,
    .product-compact-row {
        background: white;
        border: 1px solid var(--line);
        border-radius: 18px;
    }

    .product-detail-card {
        overflow: hidden;
    }

    .product-detail-card img {
        width: 100%;
        aspect-ratio: 1.35;
        object-fit: cover;
        cursor: zoom-in;
        background: #f8fafc;
    }

    .product-ficha-text {
        margin-top: 6px;
        color: #475569;
        font-size: 0.76rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .product-ficha-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 12px 0;
    }

    .product-ficha-grid span {
        min-width: 0;
        padding: 8px 10px;
        border: 1px solid #eef2f7;
        border-radius: 10px;
        background: #f8fafc;
        color: #334155;
        font-size: 0.74rem;
        font-weight: 800;
        overflow-wrap: anywhere;
    }

    .product-ficha-grid strong {
        display: block;
        color: #64748b;
        font-size: 0.58rem;
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 2px;
    }

    .product-compact-list {
        display: grid;
        gap: 8px;
    }

    .product-compact-row {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) 130px 120px;
        gap: 12px;
        align-items: center;
        padding: 10px 14px;
    }

    .product-drawer {
        justify-content: flex-end;
        align-items: stretch;
        overflow: hidden;
    }

    .product-drawer .drawer-content {
        height: 100dvh;
        max-height: 100dvh;
        overflow-y: auto;
        background: #fff;
        box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
    }

    @media (max-width: 900px) {
        .bulk-action-bar {
            bottom: 90px;
            width: calc(100% - 40px);
            flex-direction: column;
            border-radius: var(--radius-lg);
            gap: 12px;
            padding: 20px;
        }

        .data-table-wrapper { display: none; }
        .product-mobile-list { display: grid; }
        .product-detail-grid { grid-template-columns: 1fr; }
        .product-compact-row { grid-template-columns: 28px minmax(0, 1fr); }
        .product-compact-row .compact-extra { display: none; }
        .mgmt-toolbar-card form { flex-direction: column; align-items: stretch !important; }
        .mgmt-toolbar-card form > div { width: 100%; min-width: 0 !important; }
        .mgmt-toolbar-card select,
        .mgmt-toolbar-card button { width: 100% !important; }
        .catalog-view-switch { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
        .product-drawer {
            align-items: flex-start;
            justify-content: center;
            overflow-y: auto;
            padding: 12px;
        }
        .product-drawer .drawer-content {
            width: 100% !important;
            height: auto;
            max-height: calc(100dvh - 24px);
            border-radius: 18px;
        }
        .product-drawer form {
            padding: 20px !important;
        }
    }

/* templates/dash_consumidor.html */
#gridContainer {
        width: 100%;
    }

    #resultsGrid[data-view-mode="grid1"] #gridContainer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    #resultsGrid[data-view-mode="grid2"] #gridContainer {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 18px;
    }

    #resultsGrid[data-view-mode="list"] #gridContainer {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .product-list-item {
        display: flex;
        align-items: center;
        gap: 12px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 14px;
    }

    .pmb-product-card {
        position: relative;
        background: #fff;
        border: 1px solid #dbe5ef;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    }

    .pmb-card-media {
        position: relative;
        background: #f8fafc;
        overflow: hidden;
    }

    .pmb-card-media img {
        display: block;
        transition: transform 0.35s ease;
    }

    .pmb-product-card:hover .pmb-card-media img {
        transform: scale(1.035);
    }

    .pmb-badge-stack {
        position: absolute;
        top: 12px;
        left: 12px;
        right: 12px;
        z-index: 2;
        display: flex;
        align-items: flex-start;
        gap: 6px;
        flex-wrap: wrap;
        pointer-events: none;
    }

    .pmb-badge-stack.vertical {
        flex-direction: column;
        right: auto;
        max-width: calc(100% - 24px);
    }

    .pmb-chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        min-height: 25px;
        max-width: 100%;
        border-radius: 999px;
        border: 1px solid #dbe5ef;
        background: rgba(255, 255, 255, 0.92);
        color: #0f172a;
        padding: 4px 8px;
        font-size: 0.64rem;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .pmb-chip.success { color: #047857; border-color: #86efac; background: #f0fdf4; }
    .pmb-chip.closed { color: #475569; border-color: #cbd5e1; background: #f8fafc; }
    .pmb-chip.offer { color: #92400e; border-color: #fcd34d; background: #fffbeb; }
    .pmb-chip.distance { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
    .pmb-chip.photo { color: #64748b; border-color: #cbd5e1; background: #f8fafc; }
    .pmb-chip.fiscal { color: #0f766e; border-color: #5eead4; background: #f0fdfa; }

    .pmb-card-body {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .pmb-card-title {
        color: var(--text);
        font-weight: 900;
        letter-spacing: 0;
        line-height: 1.16;
        margin: 0;
        overflow-wrap: anywhere;
    }

    .pmb-store-line {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        color: #475569;
        font-size: 0.72rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .pmb-store-line span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pmb-facts {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        min-height: 0;
    }

    .pmb-fact {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #475569;
        border-radius: 999px;
        padding: 5px 8px;
        font-size: 0.68rem;
        font-weight: 800;
        max-width: 100%;
    }

    .pmb-fact span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pmb-description {
        color: #475569;
        font-size: 0.86rem;
        line-height: 1.5;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pmb-warning-note {
        border: 1px solid #fcd34d;
        background: #fffbeb;
        color: #92400e;
        border-radius: 12px;
        padding: 10px 12px;
        font-size: 0.75rem;
        font-weight: 800;
        line-height: 1.35;
    }

    .pmb-signal-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .pmb-signal {
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #f8fafc;
        padding: 9px 10px;
        min-width: 0;
    }

    .pmb-signal span {
        display: block;
        color: #64748b;
        font-size: 0.6rem;
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .pmb-signal strong {
        display: block;
        color: #0f172a;
        font-size: 0.78rem;
        font-weight: 900;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pmb-card-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-top: 1px solid #eef2f7;
        padding-top: 16px;
        margin-top: auto;
    }

    .pmb-price-block {
        min-width: 0;
    }

    .pmb-price-label {
        display: block;
        color: #64748b;
        font-size: 0.62rem;
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 3px;
    }

    .pmb-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .pmb-card-gallery .pmb-card-title {
        min-height: 2.35em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pmb-price-float {
        position: absolute;
        right: 10px;
        bottom: 10px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(226, 232, 240, 0.92);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
        padding: 8px 10px;
        font-size: 0.95rem;
        font-weight: 900;
    }

    .pmb-list-card {
        padding: 12px 14px;
        cursor: pointer;
        border-radius: 16px;
        align-items: center;
        min-height: 96px;
    }

    .pmb-list-thumb {
        position: relative;
        width: 72px;
        height: 72px;
        flex: 0 0 72px;
        border-radius: 12px;
        overflow: hidden;
        background: #f8fafc;
    }

    .pmb-list-main {
        flex: 1;
        min-width: 0;
    }

    .pmb-list-side {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        min-width: 250px;
    }

    .active-order-filter-row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 12px;
        padding: 0 4px;
    }

    .active-order-filter {
        border: 1px solid var(--line);
        background: var(--surface);
        color: #64748b;
        border-radius: 999px;
        padding: 7px 12px;
        font-size: 0.74rem;
        font-weight: 900;
        cursor: pointer;
    }

    .active-order-filter.active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .public-consumer-header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        min-width: 0;
    }

    .public-location-chip,
    .public-header-action {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border-radius: 12px;
        text-decoration: none;
        font-size: 0.78rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .public-location-chip {
        max-width: 170px;
        padding: 8px 12px;
        color: var(--primary);
        background: var(--primary-soft);
        border: 1px solid var(--line);
        overflow: hidden;
    }

    .public-location-chip span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .public-header-action {
        padding: 8px 12px;
        color: var(--text);
        background: var(--surface);
        border: 1px solid var(--line);
    }

    .location-trigger-chip {
        width: fit-content;
        margin: 20px auto 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px 16px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.22);
        color: #fff;
        font-weight: 800;
        cursor: pointer;
    }

    .search-scope-panel {
        margin-top: 14px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 14px;
        display: grid;
        gap: 12px;
    }

    .search-scope-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        color: #475569;
        font-size: 0.86rem;
        font-weight: 800;
    }

    .scope-pill-row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .scope-option {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 1px solid var(--line);
        background: #f8fafc;
        color: #475569;
        border-radius: 999px;
        padding: 9px 12px;
        font-size: 0.78rem;
        font-weight: 900;
        cursor: pointer;
        min-height: 38px;
    }

    .scope-option.active {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }

    .scope-option input {
        margin: 0;
        accent-color: var(--primary);
    }

    .scope-city-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 8px;
        max-height: 230px;
        overflow: auto;
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 10px;
        background: #f8fafc;
    }

    .scope-city-check {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 9px 10px;
        color: #0f172a;
        font-size: 0.78rem;
        font-weight: 800;
        min-width: 0;
    }

    @media (max-width: 600px) {
        .public-consumer-header-actions {
            gap: 6px;
            max-width: calc(100vw - 72px);
        }

        .public-location-chip {
            max-width: 104px;
            min-height: 38px;
            padding: 7px 9px;
            font-size: 0.72rem;
        }

        .public-header-action {
            width: 38px;
            height: 38px;
            min-height: 38px;
            padding: 0;
            border-radius: 11px;
            flex: 0 0 38px;
        }

        .public-header-action span {
            display: none;
        }

        .search-portal-hero {
            padding: 24px 0 18px;
            border-radius: 0 0 22px 22px;
        }

        .search-portal-hero .info-label {
            margin-bottom: 10px;
        }

        .search-portal-hero .hero-title {
            font-size: 1.55rem !important;
            line-height: 1.15;
            margin-bottom: 8px !important;
        }

        .search-portal-hero .muted-note {
            font-size: 0.86rem;
            line-height: 1.35;
        }

        .location-trigger-chip {
            width: 100%;
            margin-top: 14px;
            padding: 12px 14px;
        }

        .page-block {
            padding-top: 14px;
        }

        .consumer-filter-nav {
            margin-top: 12px;
        }

        .active-orders-section {
            margin-top: 16px;
        }

        .search-scope-head {
            align-items: flex-start;
        }

        .scope-option {
            flex: 1 1 100%;
            justify-content: center;
        }

        .view-toggle-bar {
            display: inline-flex !important;
        }

        #resultsGrid > div[style*="justify-content: space-between"] {
            justify-content: center !important;
            margin-bottom: 14px !important;
        }

        #resultsGrid[data-view-mode="grid2"] #gridContainer {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        #resultsGrid[data-view-mode="grid2"] .product-surface-card h3 {
            font-size: 0.82rem !important;
        }

        #resultsGrid[data-view-mode="grid2"] .product-surface-card .btn-secondary {
            display: none;
        }

        #resultsGrid[data-view-mode="list"] .product-list-item {
            display: grid;
            grid-template-columns: 54px 1fr;
            gap: 10px;
            padding: 10px !important;
        }

        #resultsGrid[data-view-mode="list"] .product-list-item > div:last-child {
            grid-column: 1 / -1;
            text-align: left !important;
            width: 100%;
        }

        #resultsGrid[data-view-mode="list"] .product-list-item > div:last-child > div:last-child {
            justify-content: stretch;
        }

        #resultsGrid[data-view-mode="list"] .product-list-item .btn-primary {
            flex: 1;
        }

        .pmb-card-decision {
            min-height: 0 !important;
        }

        .pmb-card-decision .pmb-card-body,
        .pmb-card-gallery .pmb-card-body {
            padding: 16px !important;
        }

        .pmb-card-title {
            font-size: 1rem !important;
        }

        .pmb-signal-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 6px;
        }

        .pmb-signal {
            padding: 8px 7px;
        }

        .pmb-signal strong {
            font-size: 0.68rem;
        }

        .pmb-card-footer {
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
        }

        .pmb-actions {
            width: 100%;
        }

        .pmb-price-float {
            right: 8px;
            bottom: 8px;
            padding: 7px 8px;
            font-size: 0.78rem;
        }

        .pmb-list-card {
            grid-template-columns: 58px 1fr !important;
            align-items: start !important;
            min-height: 0;
            padding: 10px !important;
        }

        .pmb-list-thumb {
            width: 58px;
            height: 58px;
            flex-basis: 58px;
        }

        .pmb-list-main {
            padding: 0 !important;
        }

        .pmb-list-side {
            grid-column: 1 / -1;
            width: 100%;
            min-width: 0;
            justify-content: space-between;
            align-items: center;
            margin-top: 4px;
        }

        .pinned-order-card {
            padding: 12px !important;
            gap: 10px !important;
            border-radius: 16px !important;
        }

        .pinned-order-img {
            width: 52px !important;
            height: 52px !important;
        }
    }

    #cartModalBody details > summary::-webkit-details-marker {
        display: none;
    }

    #cartModalBody details > summary::marker {
        content: '';
    }

/* templates/dash_consumidor.html */
@keyframes pulse-soft {
                        0% { opacity: 0.8; transform: scale(1); }
                        50% { opacity: 1; transform: scale(1.01); }
                        100% { opacity: 0.8; transform: scale(1); }
                    }

/* templates/dash_motoboy.html */
/* Stats Row Premium */
    .motoboy-stats-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
        margin-bottom: 32px;
    }

    .stat-card-premium {
        background: white;
        padding: 24px;
        border-radius: 24px;
        border: 1px solid var(--line);
        display: flex;
        flex-direction: column;
        gap: 8px;
        transition: all 0.3s ease;
    }

    .stat-card-premium:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

    .stat-label {
        font-size: 0.75rem;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .stat-value {
        font-size: 1.8rem;
        font-weight: 900;
        color: #0f172a;
    }

    /* Operation Cards */
    .operation-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .op-section-title {
        font-size: 1.1rem;
        font-weight: 900;
        color: #0f172a;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .delivery-card-premium {
        background: white;
        border-radius: 24px;
        border: 1px solid var(--line);
        padding: 24px;
        margin-bottom: 16px;
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
    }

    .delivery-card-premium.active {
        border-left: 6px solid var(--primary);
    }

    .card-badge {
        position: absolute;
        top: 20px;
        right: 20px;
        padding: 4px 12px;
        border-radius: 100px;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .badge-open { background: var(--primary-soft); color: var(--primary); }
    .badge-assigned { background: #fef3c7; color: #d97706; }

    .route-info {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin: 20px 0;
        padding: 16px;
        background: #f8fafc;
        border-radius: 16px;
    }

    .route-step {
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }

    .step-icon {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: white;
        border: 2px solid #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .step-icon.origin { border-color: var(--primary); color: var(--primary); }
    .step-icon.dest { border-color: #ef4444; color: #ef4444; }

    .step-text {
        font-size: 0.85rem;
        font-weight: 600;
        color: #475569;
        line-height: 1.4;
    }

    /* Status Toggle */
    .status-toggle-card {
        background: #0f172a;
        color: white;
        padding: 24px;
        border-radius: 24px;
        margin-bottom: 32px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 20px 40px rgba(15,23,42,0.2);
    }

    .toggle-switch {
        position: relative;
        width: 60px;
        height: 32px;
    }

    .toggle-switch input { opacity: 0; width: 0; height: 0; }

    .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: #334155;
        transition: .4s;
        border-radius: 34px;
    }

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 24px;
        width: 24px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

    input:checked + .toggle-slider { background-color: var(--primary); }
    input:checked + .toggle-slider:before { transform: translateX(28px); }

    .status-badge-premium {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 12px;
        border-radius: 100px;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .card-badge {
        position: absolute;
        top: 20px;
        right: 20px;
        padding: 6px 14px;
        border-radius: 100px;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    /* Tier Cards */
    .tier-card {
        padding: 16px;
        border-radius: 16px;
        text-align: center;
        border: 1px solid #e2e8f0;
        transition: 0.3s;
    }

    .tier-icon {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .tier-label {
        font-size: 0.65rem;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        margin-bottom: 2px;
    }

    .tier-name {
        font-size: 0.9rem;
        font-weight: 900;
    }

    .tier-card.ouro { background: #fef3c7; border-color: #fbbf24; color: #92400e; }
    .tier-card.prata { background: #f1f5f9; border-color: #cbd5e1; color: #475569; }
    .tier-card.bronze { background: #fff7ed; border-color: #fb923c; color: #9a3412; }

    html, body { overflow-x: hidden; max-width: 100vw; }
    .help-dot {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: inline-grid;
        place-items: center;
        border: 1px solid var(--line);
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 900;
        cursor: help;
        background: #fff;
    }
    .flow-actions {
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 10px;
        align-items: center;
    }
    .operation-live-strip {
        margin: 0 0 28px;
        padding: 10px 14px;
        border: 1px solid #dbe7ef;
        background: #ffffff;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        font-size: 0.78rem;
        color: #475569;
        font-weight: 800;
    }
    .operation-live-strip > div {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .motoboy-readiness-panel {
        background: white;
        border: 1px solid #dbe7ef;
        border-radius: 20px;
        padding: 18px;
        margin: 0 0 24px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    }
    .readiness-panel-head {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        align-items: flex-start;
        margin-bottom: 14px;
    }
    .readiness-kicker {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.7rem;
        font-weight: 900;
        text-transform: uppercase;
        color: #0f766e;
        background: #ccfbf1;
        padding: 6px 10px;
        border-radius: 999px;
        margin-bottom: 8px;
    }
    .readiness-title {
        margin: 0;
        font-size: 1rem;
        color: #0f172a;
        font-weight: 900;
    }
    .readiness-copy {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 0.84rem;
        font-weight: 700;
        line-height: 1.45;
    }
    .vehicle-readiness-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        gap: 12px;
    }
    .vehicle-readiness-card {
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 14px;
        background: #f8fafc;
        display: grid;
        gap: 10px;
        min-height: 138px;
    }
    .vehicle-readiness-card.liberado {
        background: #f0fdf4;
        border-color: #bbf7d0;
    }
    .vehicle-readiness-card.pendente {
        background: #fffbeb;
        border-color: #fde68a;
    }
    .vehicle-readiness-card.pausado {
        background: #f8fafc;
        border-color: #cbd5e1;
    }
    .vehicle-readiness-card.nao_cadastrado {
        background: #f8fafc;
        border-style: dashed;
    }
    .vehicle-readiness-top {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        align-items: flex-start;
    }
    .vehicle-readiness-name {
        font-size: 0.9rem;
        font-weight: 900;
        color: #0f172a;
    }
    .vehicle-readiness-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 6px;
    }
    .vehicle-status-pill,
    .vehicle-selected-pill {
        border-radius: 999px;
        padding: 4px 8px;
        font-size: 0.62rem;
        font-weight: 900;
        text-transform: uppercase;
        white-space: nowrap;
    }
    .vehicle-status-pill.liberado { background: #dcfce7; color: #166534; }
    .vehicle-status-pill.pendente { background: #fef3c7; color: #92400e; }
    .vehicle-status-pill.pausado { background: #e2e8f0; color: #334155; }
    .vehicle-status-pill.nao_cadastrado { background: #e2e8f0; color: #475569; }
    .vehicle-selected-pill { background: #e0f2fe; color: #075985; }
    .vehicle-readiness-reason {
        color: #475569;
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1.38;
    }
    .vehicle-missing-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .vehicle-missing-list span {
        background: rgba(15, 23, 42, 0.06);
        color: #334155;
        border-radius: 999px;
        padding: 4px 8px;
        font-size: 0.68rem;
        font-weight: 800;
    }
    .fleet-unit-list {
        display: grid;
        gap: 8px;
    }
    .fleet-unit-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 9px 10px;
        background: rgba(255,255,255,0.74);
    }
    .fleet-unit-row.paused { background: #f1f5f9; }
    .fleet-unit-name {
        display: grid;
        gap: 2px;
        min-width: 0;
    }
    .fleet-unit-name strong {
        color: #0f172a;
        font-size: 0.76rem;
        font-weight: 900;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .fleet-unit-name span {
        color: #64748b;
        font-size: 0.66rem;
        font-weight: 800;
    }
    .fleet-pause-btn {
        border: 1px solid #cbd5e1;
        border-radius: 10px;
        background: white;
        color: #334155;
        font-size: 0.68rem;
        font-weight: 900;
        padding: 7px 9px;
        white-space: nowrap;
        cursor: pointer;
    }
    .fleet-pause-btn.resume {
        border-color: #0f766e;
        color: #0f766e;
    }
    .accept-lock-note {
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 12px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #475569;
        font-size: 0.78rem;
        font-weight: 800;
        line-height: 1.35;
        display: flex;
        gap: 8px;
        align-items: flex-start;
    }
    .live-dot {
        width: 9px;
        height: 9px;
        border-radius: 999px;
        display: inline-block;
        background: #94a3b8;
    }
    .live-dot.online { background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,0.12); }
    .live-dot.offline { background: #ef4444; box-shadow: 0 0 0 5px rgba(239,68,68,0.12); }
    .live-dot.muted { background: #94a3b8; }
    .motoboy-toast-stack {
        position: fixed;
        right: 18px;
        bottom: 22px;
        z-index: 12000;
        display: grid;
        gap: 10px;
        width: min(360px, calc(100vw - 36px));
    }
    .motoboy-toast {
        background: #0f172a;
        color: white;
        border-radius: 18px;
        padding: 15px 16px;
        box-shadow: 0 22px 54px rgba(15, 23, 42, 0.28);
        font-size: 0.86rem;
        font-weight: 800;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        border: 1px solid rgba(255,255,255,0.08);
        animation: slideIn 0.22s ease;
    }
    .motoboy-toast i {
        font-size: 1.15rem;
        margin-top: 1px;
        flex: 0 0 auto;
    }
    .motoboy-toast strong {
        display: block;
        font-size: 0.78rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        opacity: 0.82;
        margin-bottom: 3px;
    }
    .motoboy-toast span {
        display: block;
        line-height: 1.35;
    }
    .motoboy-toast.success { background: #047857; }
    .motoboy-toast.error { background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%); }
    .motoboy-toast.info { background: #0f172a; }
    .pin-feedback {
        display: none;
        align-items: flex-start;
        gap: 10px;
        background: #fff1f2;
        border: 1px solid #fecdd3;
        color: #9f1239;
        border-radius: 14px;
        padding: 11px 12px;
        margin: -2px 0 12px;
        font-size: 0.82rem;
        font-weight: 900;
        line-height: 1.35;
    }
    .pin-feedback.show { display: flex; }
    .pin-feedback i {
        font-size: 1rem;
        margin-top: 1px;
        flex: 0 0 auto;
    }
    .pin-input-error {
        border-color: #dc2626 !important;
        background: #fff7f7 !important;
        box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.12) !important;
        animation: pinShake 0.28s ease;
    }
    @keyframes pinShake {
        0%, 100% { transform: translateX(0); }
        20% { transform: translateX(-5px); }
        40% { transform: translateX(5px); }
        60% { transform: translateX(-3px); }
        80% { transform: translateX(3px); }
    }
    .empty-operation-state {
        background: white;
        padding: 40px;
        border-radius: 24px;
        text-align: center;
        border: 1px dashed #e2e8f0;
    }
    .delivery-card-premium.syncing {
        opacity: 0.72;
        pointer-events: none;
    }
    @media (max-width: 860px) {
        .operation-grid { grid-template-columns: 1fr; gap: 20px; }
        .delivery-card-premium { border-radius: 18px; padding: 18px; }
        .status-toggle-card { flex-direction: column; align-items: stretch; }
        .flow-actions { grid-template-columns: 1fr; }
        .flow-actions .btn,
        .flow-actions .btn-ghost,
        .flow-actions .btn-premium { width: 100%; justify-content: center; }
        .readiness-panel-head { flex-direction: column; }
        .vehicle-readiness-grid { grid-template-columns: 1fr; }
    }

/* templates/dash_unified.html */
:root {
        --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        --gradient-success: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
        --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
        box-sizing: border-box;
    }

    .unified-dashboard {
        display: grid;
        grid-template-columns: 280px 1fr;
        min-height: 100vh;
        background: var(--bg);
    }

    /* ========== SIDEBAR ========== */
    .dashboard-sidebar {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
        color: #fff;
        padding: 24px;
        position: fixed;
        width: 280px;
        height: 100vh;
        overflow-y: auto;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sidebar-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 32px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-avatar {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: var(--gradient-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: bold;
        flex-shrink: 0;
        color: #fff;
    }

    .sidebar-user-info h4 {
        font-size: 14px;
        font-weight: 600;
        margin: 0;
        line-height: 1.2;
    }

    .sidebar-user-info small {
        font-size: 12px;
        color: #94a3b8;
        display: block;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 32px;
    }

    .sidebar-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 8px;
        color: #cbd5e1;
        text-decoration: none;
        font-size: 14px;
        transition: var(--transition-smooth);
        border-left: 3px solid transparent;
    }

    .sidebar-link:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
    }

    .sidebar-link.active {
        background: rgba(102, 126, 234, 0.15);
        color: #667eea;
        border-left-color: #667eea;
    }

    .sidebar-section-title {
        font-size: 11px;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: 24px;
        margin-bottom: 12px;
        padding: 0 16px;
    }

    .sidebar-logout {
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sidebar-logout .sidebar-link {
        color: #f87171;
    }

    .sidebar-logout .sidebar-link:hover {
        background: rgba(248, 113, 113, 0.1);
        color: #fca5a5;
    }

    /* ========== MAIN CONTENT ========== */
    .dashboard-main {
        margin-left: 280px;
        padding: 40px;
        overflow-y: auto;
        max-height: 100vh;
    }

    .dashboard-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
    }

    .dashboard-header h1 {
        font-size: 32px;
        font-weight: 700;
        margin: 0;
        color: var(--text);
    }

    .dashboard-header-actions {
        display: flex;
        gap: 12px;
    }

    .btn-icon {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: var(--surface);
        color: var(--text);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        transition: var(--transition-smooth);
    }

    .btn-icon:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    /* ========== CARDS GRID ========== */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
        margin-bottom: 40px;
    }

    .stat-card {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 24px;
        transition: var(--transition-smooth);
        position: relative;
        overflow: hidden;
    }

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--gradient-primary);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

    .stat-card:hover::before {
        opacity: 1;
    }

    .stat-label {
        font-size: 12px;
        font-weight: 600;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
    }

    .stat-value {
        font-size: 32px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 4px;
    }

    .stat-unit {
        font-size: 14px;
        color: var(--muted);
    }

    .stat-change {
        font-size: 12px;
        margin-top: 8px;
        padding: 4px 8px;
        border-radius: 4px;
        display: inline-block;
    }

    .stat-change.positive {
        background: rgba(34, 197, 94, 0.1);
        color: #22c55e;
    }

    .stat-change.negative {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

    /* ========== SECTIONS ========== */
    .dashboard-section {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .section-title::before {
        content: '';
        width: 4px;
        height: 24px;
        background: var(--gradient-primary);
        border-radius: 2px;
    }

    /* ========== VPS MONITOR ========== */
    .vps-monitor {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        background: var(--surface-soft);
        padding: 24px;
        border-radius: 12px;
        border: 1px solid var(--line);
    }

    .monitor-item {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .monitor-label {
        font-size: 12px;
        font-weight: 600;
        color: var(--muted);
        text-transform: uppercase;
    }

    .progress-bar {
        height: 8px;
        background: var(--line);
        border-radius: 4px;
        overflow: hidden;
    }

    .progress-fill {
        height: 100%;
        background: var(--gradient-primary);
        border-radius: 4px;
        transition: width 0.3s ease;
    }

    .progress-value {
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
    }

    .monitor-status {
        font-size: 12px;
        color: var(--muted);
    }

    /* ========== BADGES ========== */
    .badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
    }

    .badge-primary {
        background: rgba(102, 126, 234, 0.15);
        color: #667eea;
    }

    .badge-success {
        background: rgba(34, 197, 94, 0.15);
        color: #22c55e;
    }

    .badge-warning {
        background: rgba(245, 158, 11, 0.15);
        color: #f59e0b;
    }

    .badge-danger {
        background: rgba(239, 68, 68, 0.15);
        color: #ef4444;
    }

    /* ========== PROFILE CARD ========== */
    .profile-summary {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 24px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 24px;
        align-items: center;
    }

    .profile-avatar-large {
        width: 80px;
        height: 80px;
        border-radius: 12px;
        background: var(--gradient-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 40px;
        color: #fff;
    }

    .profile-info h3 {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 4px 0;
        color: var(--text);
    }

    .profile-info p {
        margin: 0;
        font-size: 14px;
        color: var(--muted);
    }

    .profile-actions {
        display: flex;
        gap: 8px;
    }

    .btn {
        padding: 8px 16px;
        border-radius: 6px;
        border: 1px solid var(--line);
        background: transparent;
        color: var(--text);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition-smooth);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .btn:hover {
        background: var(--surface-soft);
    }

    .btn-primary {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .btn-primary:hover {
        opacity: 0.9;
    }

    /* ========== RESPONSIVE ========== */
    @media (max-width: 1024px) {
        .unified-dashboard {
            grid-template-columns: 240px 1fr;
        }

        .dashboard-sidebar {
            width: 240px;
        }

        .dashboard-main {
            margin-left: 240px;
            padding: 24px;
        }

        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .unified-dashboard {
            grid-template-columns: 1fr;
        }

        .dashboard-sidebar {
            position: fixed;
            left: -280px;
            width: 280px;
            height: 100vh;
            z-index: 1000;
            transition: left 0.3s;
        }

        .dashboard-sidebar.active {
            left: 0;
        }

        .dashboard-main {
            margin-left: 0;
            padding: 20px;
        }

        .stats-grid {
            grid-template-columns: 1fr;
        }

        .profile-summary {
            grid-template-columns: auto 1fr;
            gap: 16px;
        }

        .profile-actions {
            grid-column: span 2;
        }

        .vps-monitor {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (max-width: 480px) {
        .dashboard-header {
            flex-direction: column;
            gap: 16px;
            align-items: flex-start;
        }

        .profile-summary {
            flex-direction: column;
            text-align: center;
        }

        .vps-monitor {
            grid-template-columns: 1fr;
        }

        .stat-card {
            padding: 16px;
        }

        .stat-value {
            font-size: 24px;
        }
    }

/* templates/detalhe_produto.html */
.product-detail-glass {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 400px;
        gap: 40px;
        align-items: start;
    }

    .main-image-container {
        position: relative;
        background: var(--surface);
        border-radius: var(--radius-xl);
        overflow: hidden;
        border: 1px solid var(--line);
        aspect-ratio: 1;
        display: grid;
        place-items: center;
        margin-bottom: 24px;
        z-index: 1;
    }

    .main-image-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        cursor: zoom-in;
        transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
    }

    .main-image-container:hover img {
        transform: scale(1.05);
    }

    .price-tag-large {
        font-size: 3.5rem;
        font-weight: 800;
        letter-spacing: -0.06em;
        color: var(--primary);
    }

    .price-original-detail {
        font-size: 1.1rem;
        color: var(--muted-soft);
        text-decoration: line-through;
        font-weight: 600;
        opacity: 0.8;
    }

    @media (max-width: 600px) {
        .price-tag-large {
            font-size: 2.5rem;
        }

        .price-original-detail {
            font-size: 1rem;
        }

        .price-container-detail {
            display: flex;
            flex-direction: row;
            align-items: baseline;
            justify-content: center;
            gap: 12px;
        }
    }

    .sticky-buy-box {
        position: sticky;
        top: 100px;
        z-index: 5;
    }

    .detail-buy-card {
        text-align: left;
        overflow: hidden;
        border-radius: 22px;
        border: 1px solid #dbe5ef;
        box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    }

    .detail-status-row,
    .detail-chip-row {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .detail-buy-head {
        text-align: left;
        padding-bottom: 18px;
        border-bottom: 1px solid #eef2f7;
        margin-bottom: 18px;
    }

    .detail-buy-title {
        font-size: 1.55rem;
        font-weight: 900;
        line-height: 1.15;
        color: #0f172a;
        margin: 10px 0 8px;
        overflow-wrap: anywhere;
    }

    .detail-buy-copy {
        color: #64748b;
        font-size: 0.86rem;
        line-height: 1.5;
        margin: 0;
    }

    .detail-price-panel {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 16px;
    }

    .detail-price-label {
        display: block;
        color: #64748b;
        font-size: 0.66rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 4px;
    }

    .detail-action-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .detail-secondary-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .detail-action-grid .btn,
    .detail-secondary-actions .btn {
        min-height: 50px;
        justify-content: center;
        border-radius: 14px;
        font-weight: 900;
        text-decoration: none;
    }

    .detail-action-grid .btn-primary {
        min-height: 56px;
        font-size: 1rem;
    }

    .detail-trust-panel {
        margin-top: 14px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .detail-trust-item {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 13px;
        padding: 10px;
        min-width: 0;
    }

    .detail-trust-item span {
        display: block;
        color: #64748b;
        font-size: 0.6rem;
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .detail-trust-item strong {
        display: block;
        color: #0f172a;
        font-size: 0.76rem;
        font-weight: 900;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    @media (max-width: 900px) {
        .product-detail-glass {
            grid-template-columns: 1fr;
        }

        .main-image-container {
            position: relative;
            top: 0;
            margin-bottom: 20px;
        }

        .sticky-buy-box {
            position: relative;
            top: 0;
        }

        .detail-secondary-actions,
        .detail-trust-panel {
            grid-template-columns: 1fr;
        }
    }

    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* templates/detalhe_produto.html */
#btnDuvidaWhats:hover {
                            transform: translateY(-2px);
                            box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
                            background: #22c55e;
                        }

/* templates/editar_conta.html */
.edit-account-layout {
        display: grid;
        grid-template-columns: 280px 1fr;
        min-height: 100vh;
        background: var(--bg);
    }

    .account-sidebar {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
        color: #fff;
        padding: 24px;
        position: fixed;
        width: 280px;
        height: 100vh;
        overflow-y: auto;
    }

    .account-main {
        margin-left: 280px;
        padding: 40px;
        max-width: 900px;
    }

    .form-section {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 32px;
        margin-bottom: 24px;
    }

    .form-section h3 {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 24px 0;
        color: var(--text);
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: var(--surface-soft);
        color: var(--text);
        font-size: 14px;
        transition: 0.2s;
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .form-actions {
        display: flex;
        gap: 12px;
        justify-content: flex-end;
    }

    .btn {
        padding: 12px 24px;
        border-radius: 6px;
        border: 1px solid var(--line);
        background: transparent;
        color: var(--text);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
    }

    .btn-primary {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .btn-primary:hover {
        opacity: 0.9;
    }

    .btn-secondary {
        background: var(--surface-soft);
    }

    .btn-secondary:hover {
        background: var(--surface);
    }

    .upload-area {
        border: 2px dashed var(--line);
        border-radius: 8px;
        padding: 24px;
        text-align: center;
        cursor: pointer;
        transition: 0.2s;
    }

    .upload-area:hover {
        border-color: var(--primary);
        background: rgba(102, 126, 234, 0.05);
    }

    .upload-area input {
        display: none;
    }

    .alert {
        padding: 16px;
        border-radius: 6px;
        margin-bottom: 24px;
    }

    .alert-success {
        background: rgba(34, 197, 94, 0.1);
        color: #22c55e;
        border-left: 4px solid #22c55e;
    }

    .alert-error {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
        border-left: 4px solid #ef4444;
    }

    @media (max-width: 1024px) {
        .edit-account-layout {
            grid-template-columns: 240px 1fr;
        }

        .account-sidebar {
            width: 240px;
        }

        .account-main {
            margin-left: 240px;
            padding: 24px;
        }

        .form-row {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {
        .edit-account-layout {
            grid-template-columns: 1fr;
        }

        .account-sidebar {
            display: none;
        }

        .account-main {
            margin-left: 0;
            padding: 20px;
        }

        .form-actions {
            flex-direction: column;
        }

        .form-actions .btn {
            width: 100%;
        }
    }

/* templates/editar_produto.html */
.content-grid {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 32px;
    }

    @media (max-width: 900px) {
        .content-grid {
            grid-template-columns: 1fr;
        }
    }

/* templates/importar_produtos.html */
.import-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
        gap: 28px;
        align-items: start;
    }

    .import-dropzone {
        border: 1px dashed var(--line-strong);
        background: #f8fafc;
        border-radius: 20px;
        padding: 56px 28px;
        text-align: center;
        cursor: pointer;
        transition: 0.2s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .import-dropzone:hover,
    .import-dropzone.dragover {
        border-color: var(--primary);
        background: var(--primary-soft);
    }

    .import-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: var(--primary);
        color: #fff;
        font-size: 1.4rem;
        box-shadow: var(--shadow-sm);
    }

    .import-guide-list {
        display: grid;
        gap: 12px;
    }

    .import-guide-item {
        background: #f8fafc;
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 16px;
    }

    .column-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }

    .column-pills span {
        background: white;
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 6px 10px;
        font-size: 0.72rem;
        font-weight: 800;
        color: #475569;
    }

    .progress-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(12px);
        z-index: 10000;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    .progress-card {
        width: min(440px, 100%);
        background: white;
        padding: 36px;
        border-radius: 24px;
        box-shadow: var(--shadow-lg);
        text-align: center;
    }

    .progress-bar-container {
        height: 8px;
        background: #e2e8f0;
        border-radius: 999px;
        margin: 24px 0 12px;
        overflow: hidden;
    }

    .progress-bar-fill {
        height: 100%;
        width: 0%;
        background: var(--primary);
        transition: width 0.4s ease;
    }

    @media (max-width: 900px) {
        .import-layout { grid-template-columns: 1fr; }
        .import-dropzone { padding: 42px 20px; }
        .import-actions { flex-direction: column-reverse; align-items: stretch !important; }
        .import-actions a,
        .import-actions button { width: 100%; justify-content: center; }
    }

/* templates/index.html */
/* Estilos específicos desta página usando apenas tokens do modern_art.css */
  
  .hero-modern-search {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 80px;
    padding-bottom: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .status-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-strong);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
  }

  .live-dot-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 1.8s infinite ease-in-out;
  }

  @keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(155, 212, 58, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(155, 212, 58, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(155, 212, 58, 0); }
  }

  .live-text {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .search-container-box {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 8px;
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 640px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .search-container-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 25px var(--primary-soft);
  }

  .search-input-field {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 12px 16px;
    color: var(--text);
    background: transparent;
  }

  .search-input-field::placeholder {
    color: var(--text-muted);
  }

  .pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
  }

  .pill-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-strong);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .pill-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    background: var(--surface);
  }

  .secondary-action-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
  }

  .secondary-action-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
  }

  .secondary-action-links a:hover {
    color: var(--primary);
  }

  /* Seção 2: Prova Social */
  .stats-section-container {
    background: var(--bg-strong);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-top: 40px;
    margin-bottom: 60px;
  }

  .stats-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
  }

  .stat-val-huge {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 8px;
  }

  .stat-val-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .stat-label-muted {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  /* Seção 3: Como funciona */
  .section-headline {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 40px;
  }

  .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
  }

  .step-card {
    padding: 28px;
  }

  .step-badge {
    width: 40px;
    height: 40px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 900;
    border-radius: 50%;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
  }

  .step-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
  }

  /* Seção 4 e 5: Lojistas e Entregadores */
  .marketing-section-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
  }

  .tag-benefit-pill {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
  }

  .marketing-text-side h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 16px;
    line-height: 1.2;
  }

  .marketing-bullet-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px;
  }

  .marketing-bullet-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
  }

  .marketing-bullet-list i {
    color: var(--primary);
    font-size: 1.2rem;
  }

  .badge-row-small {
    display: flex;
    gap: 12px;
    margin-top: 20px;
  }

  .badge-small-item {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 100px;
  }

  /* Calculadora */
  .calc-container {
    border: 2px solid var(--primary-soft);
  }

  .calc-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
  }

  .calc-range-group {
    margin-bottom: 20px;
  }

  .calc-slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
  }

  .calc-slider-val {
    color: var(--primary);
    font-weight: 800;
  }

  .calc-slider-bar {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--line-strong);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }

  .calc-slider-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
  }

  .calc-result-box {
    text-align: center;
    background: var(--bg-strong);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
  }

  .calc-result-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  .calc-result-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
  }

  /* Mobile responsiveness resets */
  @media (max-width: 640px) {
    .hero-modern-search {
      padding-top: 40px;
      padding-bottom: 40px;
      width: 100%;
    }
    .hero-modern-search h1 {
      max-width: 100%;
    }
    .hero-modern-search > p {
      font-size: 0.98rem !important;
      margin-bottom: 22px !important;
    }
    .search-container-box {
      flex-direction: column;
      padding: 10px;
      border-radius: 18px;
      max-width: 100%;
    }
    .search-container-box .btn-premium {
      width: 100%;
      justify-content: center;
      min-height: 46px;
    }
    .search-input-field {
      width: 100%;
      min-height: 46px;
      padding: 12px 14px;
      background: var(--bg-strong);
      border-radius: 12px;
    }
    .pills-container {
      justify-content: flex-start;
      flex-wrap: nowrap;
      overflow-x: auto;
      width: 100%;
      padding-bottom: 6px;
      scrollbar-width: none;
    }
    .pills-container::-webkit-scrollbar {
      display: none;
    }
    .secondary-action-links {
      flex-wrap: wrap;
      justify-content: center;
      row-gap: 8px;
    }
    .stats-section-container {
      padding: 24px;
    }
    .marketing-section-row {
      gap: 32px;
    }
  }

/* templates/localizacao.html */
@media (max-width: 900px) {
        .location-page-layout {
            margin-top: 0;
        }

        .location-page-layout .auth-card {
            order: -1;
        }

        .location-page-layout .auth-panel {
            order: 2;
        }
    }

/* templates/login_comerciante.html */
@media (max-width: 900px) {
        .auth-card[style*="padding-right"] {
            padding-right: 32px !important;
            text-align: center;
        }
    }

/* templates/login_motoboy.html */
.login-container-premium {
        max-width: 1100px;
        margin: 60px auto 120px;
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 60px;
        align-items: center;
        padding: 0 24px;
    }

    .login-info-side {
        padding-right: 40px;
    }

    .login-card-premium {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 40px;
        padding: 56px;
        box-shadow: var(--shadow-lg);
    }

    .feature-list-auth {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-top: 48px;
    }

    .feature-item-auth {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    .feature-icon-auth {
        width: 48px;
        height: 48px;
        background: white;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        box-shadow: var(--shadow-sm);
        flex-shrink: 0;
    }

    .feature-text-auth h4 {
        font-size: 1.05rem;
        font-weight: 900;
        color: #0f172a;
        margin: 0 0 4px 0;
    }

    .feature-text-auth p {
        font-size: 0.9rem;
        color: #64748b;
        margin: 0;
        font-weight: 500;
        line-height: 1.5;
    }

    .input-field-premium {
        width: 100%;
        padding: 16px 20px;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        background: white;
        font-size: 1rem;
        font-weight: 600;
        color: #0f172a;
        transition: all 0.2s;
        margin-bottom: 20px;
    }

    .input-field-premium:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px var(--primary-soft);
        outline: none;
    }

    .auth-label-premium {
        font-size: 0.75rem;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
        display: block;
    }

    @media (max-width: 1024px) {
        .login-container-premium { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
        .login-info-side { padding-right: 0; text-align: center; }
        .feature-item-auth { text-align: left; }
    }

/* templates/motoboy_base.html */
:root {
            --primary: #2EB7A9; /* Cor logística */
            --primary-soft: rgba(46, 183, 169, 0.1);
        }

        html, body {
            overflow-x: hidden;
            max-width: 100vw;
            touch-action: pan-y;
        }

        /* Layout Admin Premium */
        .admin-layout {
            display: grid;
            grid-template-columns: 280px 1fr;
            min-height: 100vh;
            background: #f8fafc;
        }

        .admin-sidebar {
            background: #0f172a;
            color: white;
            padding: 32px 24px;
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 0;
            left: 0;
            width: 280px;
            height: 100vh;
            z-index: 1000;
            border-right: 1px solid rgba(255,255,255,0.05);
        }

        .brand-cube {
            width: 48px;
            height: 48px;
            background: white;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
            margin-bottom: 48px;
        }

        .sidebar-section-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: rgba(255,255,255,0.4);
            font-weight: 800;
            margin-bottom: 16px;
            margin-top: 32px;
        }

        .sidebar-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 18px;
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            border-radius: 12px;
            font-size: 0.9rem;
            font-weight: 600;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            margin-bottom: 4px;
        }

        .sidebar-link i { font-size: 1.2rem; }

        .sidebar-link:hover {
            background: rgba(255,255,255,0.05);
            color: white;
        }

        .sidebar-link.active {
            background: var(--primary);
            color: white;
            box-shadow: 0 10px 20px rgba(46, 183, 169, 0.2);
            font-weight: 800;
            transform: translateX(5px);
        }

        .sidebar-nav {
            padding: 0 20px;
            overflow-y: auto;
            max-height: calc(100vh - 120px);
            scrollbar-width: thin;
            scrollbar-color: rgba(255,255,255,0.1) transparent;
        }

        .sidebar-nav::-webkit-scrollbar { width: 4px; }
        .sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

        .admin-main {
            padding: 0;
            overflow-x: hidden;
            max-width: 100vw;
            grid-column: 2;
            margin-left: 0;
        }

        .admin-topbar {
            height: 80px;
            background: white;
            border-bottom: 1px solid var(--line);
            padding: 0 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 900;
        }

        .admin-content-shell {
            padding: 40px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .help-dot {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: inline-grid;
            place-items: center;
            border: 1px solid var(--line);
            color: #64748b;
            font-size: 0.72rem;
            font-weight: 900;
            cursor: help;
            background: #fff;
            flex: 0 0 auto;
            line-height: 1;
        }

        .help-dot.dark {
            background: rgba(255,255,255,0.12);
            border-color: rgba(255,255,255,0.25);
            color: #fff;
        }

        .motoboy-page-intro {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 24px;
            margin-bottom: 28px;
        }

        .motoboy-page-intro h1 {
            font-size: 1.8rem;
            font-weight: 900;
            color: #0f172a;
            letter-spacing: -1px;
            margin: 0 0 8px;
        }

        .motoboy-page-intro p {
            color: #64748b;
            font-weight: 500;
            margin: 0;
            line-height: 1.45;
            max-width: 680px;
        }

        .motoboy-action-strip {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            gap: 12px;
            margin-bottom: 28px;
        }

        .motoboy-action-chip {
            background: white;
            border: 1px solid var(--line);
            border-radius: 18px;
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: #0f172a;
            font-weight: 850;
            min-height: 68px;
            transition: all 0.2s;
        }

        .motoboy-action-chip:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-sm);
            transform: translateY(-2px);
        }

        .motoboy-action-chip i {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            background: var(--primary-soft);
            color: var(--primary);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.05rem;
            flex: 0 0 auto;
        }

        .motoboy-action-chip small {
            display: block;
            margin-top: 2px;
            color: #64748b;
            font-size: 0.72rem;
            font-weight: 700;
            line-height: 1.25;
        }

        .motoboy-soft-panel {
            background: white;
            border: 1px solid var(--line);
            border-radius: 24px;
            padding: 24px;
            box-shadow: var(--shadow-sm);
        }

        .image-expandable,
        [data-expand-image] {
            cursor: zoom-in;
        }

        .media-lightbox {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.82);
            z-index: 12000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
            backdrop-filter: blur(8px);
        }

        .media-lightbox.open { display: flex; }

        .media-lightbox img {
            max-width: min(900px, 94vw);
            max-height: 86vh;
            object-fit: contain;
            border-radius: 24px;
            background: white;
            box-shadow: 0 30px 80px rgba(0,0,0,0.35);
        }

        .media-lightbox button {
            position: fixed;
            top: 22px;
            right: 22px;
            width: 44px;
            height: 44px;
            border-radius: 14px;
            border: 1px solid rgba(255,255,255,0.22);
            background: rgba(255,255,255,0.12);
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
        }

        .mobile-more-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.45);
            z-index: 1090;
            display: none;
        }

        .mobile-more-backdrop.open {
            display: block;
        }

        .mobile-more-sheet {
            position: fixed;
            left: 12px;
            right: 12px;
            bottom: 88px;
            z-index: 1110;
            display: none;
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 18px;
            box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
            padding: 10px;
        }

        .mobile-more-sheet.open {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .mobile-more-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 13px;
            border-radius: 14px;
            background: #f8fafc;
            color: #0f172a;
            text-decoration: none;
            font-weight: 800;
            font-size: 0.82rem;
        }

        .mobile-more-item i {
            color: var(--primary);
            font-size: 1.1rem;
        }

        .mobile-more-item.active {
            background: var(--primary-soft);
            color: var(--primary);
        }

        .mobile-more-item.is-danger {
            color: #dc2626;
            background: #fef2f2;
        }

        button.mobile-nav-link {
            border: 0;
            background: transparent;
            font-family: inherit;
            cursor: pointer;
            padding: 0;
        }

        /* Mobile Adjustments */
        @media (max-width: 1024px) {
            .admin-layout { grid-template-columns: 1fr; }
            .admin-sidebar { display: none; }
            .admin-main { grid-column: 1; }
            .admin-topbar { padding: 0 20px; }
            .admin-content-shell { padding: 24px 20px 100px; }
            .desktop-only { display: none; }
            .motoboy-page-intro { flex-direction: column; }
            .motoboy-page-intro h1 { font-size: 1.45rem; }
            .motoboy-action-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
            .motoboy-action-chip { min-height: 64px; padding: 12px; border-radius: 16px; }
        }

        @media (max-width: 540px) {
            .motoboy-action-strip { grid-template-columns: 1fr; }
            .admin-topbar h2 { font-size: 0.95rem !important; }
            .logout-luxury span { display: none; }
        }

        /* Estilo Global de Modais */
        .ui-modal {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(8px);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

        .ui-modal-card {
            background: white;
            border-radius: 32px;
            padding: 40px;
            width: 100%;
            max-width: 500px;
            position: relative;
            animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 30px 60px rgba(0,0,0,0.2);
        }

        .logout-luxury {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: #fff1f2;
            color: #e11d48;
            border-radius: 12px;
            text-decoration: none;
            font-size: 0.7rem;
            font-weight: 900;
            letter-spacing: 1px;
            transition: all 0.2s;
            border: 1px solid #ffe4e6;
        }

        .logout-luxury:hover {
            background: #e11d48;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 10px 15px rgba(225, 29, 72, 0.2);
        }

        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* templates/motoboy_base.html */
@media (max-width: 1024px) {
            .mobile-bottom-nav { display: flex !important; }
            .mobile-nav-link.active { color: var(--primary) !important; }
        }

/* templates/motoboy_cadastro_inicial.html */
.reg-container {
        max-width: 900px;
        margin: 0 auto;
        padding: 40px 20px 100px;
    }

    .reg-card {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 32px;
        padding: 48px;
        box-shadow: var(--shadow-lg);
    }

    .reg-section { margin-bottom: 44px; }

    .reg-section-title {
        font-size: 1.18rem;
        font-weight: 900;
        color: #0f172a;
        margin-bottom: 22px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .reg-section-title i { color: var(--primary); }

    .input-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .field-wrap {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }

    .field-label {
        font-size: 0.75rem;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .premium-input {
        padding: 16px 20px;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        background: white;
        font-size: 1rem;
        font-weight: 600;
        color: #0f172a;
        transition: all 0.2s;
        width: 100%;
    }

    .premium-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px var(--primary-soft);
        outline: none;
    }

    .fleet-grid-reg {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .fleet-option-reg {
        position: relative;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        padding: 16px;
        cursor: pointer;
        transition: all 0.2s;
        text-align: center;
        min-height: 102px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .fleet-option-reg:has(input:checked) {
        border-color: var(--primary);
        background: var(--primary-soft);
        box-shadow: var(--shadow-sm);
    }

    .fleet-grid-reg.vehicle-required {
        outline: 3px solid rgba(220, 38, 38, 0.18);
        outline-offset: 6px;
        border-radius: 18px;
    }

    .fleet-option-reg input {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        opacity: 0;
        cursor: pointer;
    }

    .fleet-option-reg i {
        font-size: 1.5rem;
        display: block;
        margin-bottom: 8px;
        color: #64748b;
    }

    .fleet-option-reg:has(input:checked) i { color: var(--primary); }

    .plate-panel-reg {
        display: none;
        margin-top: 16px;
        padding: 22px;
        background: #f8fafc;
        border-radius: 20px;
        border: 1px solid #e2e8f0;
        animation: slideDown 0.3s ease;
    }

    .small-help {
        display: inline-grid;
        place-items: center;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: 1px solid #e2e8f0;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 900;
        cursor: help;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 768px) {
        .input-row { grid-template-columns: 1fr; gap: 0; }
        .reg-card { padding: 32px 24px; border-radius: 24px; }
        .reg-container { padding-inline: 16px; }
    }

/* templates/motoboy_carteira.html */
.wallet-hero {
        background: #0f172a;
        border-radius: 40px;
        padding: 56px 40px;
        color: white;
        margin-bottom: 40px;
        position: relative;
        overflow: hidden;
        box-shadow: var(--shadow-lg);
    }

    .wallet-hero::after {
        content: '';
        position: absolute;
        top: 0; right: 0; bottom: 0; left: 0;
        background: radial-gradient(circle at 80% 20%, rgba(46, 183, 169, 0.2) 0%, transparent 60%);
        pointer-events: none;
    }

    .balance-label {
        font-size: 0.85rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        opacity: 0.6;
        display: block;
        margin-bottom: 12px;
    }

    .balance-value-big {
        font-size: 3.5rem;
        font-weight: 900;
        letter-spacing: -2px;
        line-height: 1;
        margin-bottom: 32px;
    }

    .wallet-stats-mini {
        display: flex;
        gap: 40px;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 32px;
    }

    .mini-stat h4 {
        font-size: 0.7rem;
        color: rgba(255,255,255,0.5);
        margin-bottom: 4px;
        text-transform: uppercase;
    }

    .mini-stat span {
        font-size: 1.25rem;
        font-weight: 800;
    }

    .saque-card-premium {
        background: white;
        border-radius: 32px;
        padding: 40px;
        border: 1px solid var(--line);
        box-shadow: var(--shadow-sm);
    }

    .wallet-main-grid {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 32px;
    }

    .wallet-withdraw-button {
        position: absolute;
        right: 40px;
        top: 56px;
        background: var(--primary);
        padding: 18px 40px;
        font-size: 1rem;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(46, 183, 169, 0.3);
    }

    .wallet-withdraw-button:disabled {
        background: #64748b;
        box-shadow: none;
        cursor: not-allowed;
        opacity: 0.86;
    }

    .history-item-premium {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #f1f5f9;
        transition: 0.2s;
    }

    .history-item-premium:last-child { border-bottom: none; }
    .history-item-premium:hover { background: #f8fafc; }

    .status-badge-fin {
        padding: 6px 12px;
        border-radius: 100px;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .status-done { background: #dcfce7; color: #166534; }
    .status-wait { background: #fefce8; color: #854d0e; }

    @media (max-width: 768px) {
        .wallet-hero { padding: 40px 24px; }
        .balance-value-big { font-size: 2.5rem; }
        .wallet-stats-mini { gap: 20px; flex-direction: column; }
        .wallet-main-grid { grid-template-columns: 1fr; }
        .wallet-withdraw-button {
            position: static;
            width: 100%;
            justify-content: center;
            margin-top: 28px;
            padding: 16px 20px;
        }
    }

/* templates/motoboy_disponibilidade.html */
.status-panel-premium {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .status-card-big {
        background: white;
        border-radius: 40px;
        padding: 60px;
        text-align: center;
        border: 1px solid var(--line);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        margin-bottom: 48px;
        position: relative;
        overflow: hidden;
    }

    .status-card-big.online {
        background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
        border-color: #22c55e;
        box-shadow: 0 30px 60px -12px rgba(34, 197, 94, 0.2);
    }

    .status-card-big.offline {
        background: white;
        border-color: var(--line);
        box-shadow: var(--shadow-lg);
    }

    .status-icon-wrap {
        width: 100px;
        height: 100px;
        border-radius: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3rem;
        margin: 0 auto 32px;
        transition: all 0.3s;
    }

    .online .status-icon-wrap {
        background: #22c55e;
        color: white;
        animation: pulse-glow 2s infinite;
    }

    .offline .status-icon-wrap {
        background: #f1f5f9;
        color: #94a3b8;
    }

    @keyframes pulse-glow {
        0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); transform: scale(1); }
        70% { box-shadow: 0 0 0 20px rgba(34, 197, 94, 0); transform: scale(1.05); }
        100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); transform: scale(1); }
    }

    .btn-status-toggle {
        padding: 20px 60px;
        border-radius: 20px;
        font-size: 1.1rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 1px;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
    }

    .online .btn-status-toggle { background: #ef4444; color: white; }
    .offline .btn-status-toggle { background: #22c55e; color: white; }

    .btn-status-toggle:hover { transform: scale(1.05); filter: brightness(1.1); }

    .vehicle-list-premium {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .vehicle-option-card {
        background: white;
        border-radius: 24px;
        padding: 24px;
        border: 1px solid var(--line);
        display: flex;
        align-items: center;
        gap: 20px;
        cursor: pointer;
        transition: all 0.2s;
        text-align: left;
    }

    .vehicle-option-card:hover {
        border-color: var(--primary);
        background: #f8fafc;
    }

    .vehicle-option-card.active {
        border-color: var(--primary);
        background: var(--primary-soft);
        box-shadow: var(--shadow-sm);
    }

    .vehicle-icon-box {
        width: 60px;
        height: 60px;
        background: #f1f5f9;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        flex-shrink: 0;
    }

    .active .vehicle-icon-box { background: white; color: var(--primary); }
    .fleet-unit-list {
        display: grid;
        gap: 8px;
        margin-top: 12px;
    }
    .fleet-unit-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 9px 10px;
        background: #f8fafc;
    }
    .fleet-unit-row.paused { background: #f1f5f9; }
    .fleet-unit-row strong {
        display: block;
        color: #0f172a;
        font-size: 0.78rem;
        font-weight: 900;
    }
    .fleet-unit-row span {
        display: block;
        color: #64748b;
        font-size: 0.68rem;
        font-weight: 800;
    }
    .fleet-pause-btn {
        border: 1px solid #cbd5e1;
        border-radius: 10px;
        background: white;
        color: #334155;
        font-size: 0.68rem;
        font-weight: 900;
        padding: 7px 9px;
        white-space: nowrap;
        cursor: pointer;
    }
    .fleet-pause-btn.resume {
        border-color: var(--primary);
        color: var(--primary);
    }
    .motoboy-toast-stack {
        position: fixed;
        right: 18px;
        bottom: 22px;
        z-index: 12000;
        display: grid;
        gap: 10px;
        width: min(360px, calc(100vw - 36px));
    }
    .motoboy-toast {
        background: #0f172a;
        color: white;
        border-radius: 16px;
        padding: 14px 16px;
        box-shadow: 0 18px 40px rgba(15,23,42,0.22);
        font-size: 0.86rem;
        font-weight: 800;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    .motoboy-toast.success { background: #047857; }
    .motoboy-toast.error { background: #b91c1c; }

    @media (max-width: 768px) {
        .status-card-big { padding: 40px 20px; }
    }

/* templates/motoboy_estatisticas.html */
.stats-dashboard-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 32px;
        margin-bottom: 48px;
    }

    .stat-luxury-card {
        background: white;
        border-radius: 32px;
        padding: 40px;
        border: 1px solid var(--line);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
        overflow: hidden;
    }

    .stat-luxury-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 30px 60px rgba(15,23,42,0.1);
        border-color: var(--courier-primary);
    }

    .stat-luxury-card::before {
        content: '';
        position: absolute;
        top: -50%; left: -50%;
        width: 200%; height: 200%;
        background: radial-gradient(circle at center, var(--courier-soft-teal) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.4s;
        z-index: 0;
    }

    .stat-luxury-card:hover::before {
        opacity: 1;
    }

    .stat-icon-box {
        width: 72px;
        height: 72px;
        background: #f8fafc;
        border-radius: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: #64748b;
        margin-bottom: 24px;
        position: relative;
        z-index: 1;
        transition: all 0.3s;
    }

    .stat-luxury-card:hover .stat-icon-box {
        background: var(--courier-primary);
        color: white;
        transform: scale(1.1) rotate(-5deg);
    }

    .stat-value-ultra {
        font-size: 3rem;
        font-weight: 900;
        color: #0f172a;
        letter-spacing: -2px;
        margin-bottom: 8px;
        position: relative;
        z-index: 1;
    }

    .stat-label-luxury {
        font-size: 0.8rem;
        font-weight: 800;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        position: relative;
        z-index: 1;
    }

    .performance-table-luxury {
        background: white;
        border-radius: 32px;
        border: 1px solid var(--line);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }

    .perf-row {
        display: grid;
        grid-template-columns: 80px 1fr 150px 150px;
        padding: 28px 40px;
        border-bottom: 1px solid #f1f5f9;
        align-items: center;
    }

    .perf-row:last-child { border-bottom: none; }
    .perf-header { background: #f8fafc; border-bottom: 2px solid #e2e8f0; }

    .perf-label-small {
        font-size: 0.75rem;
        font-weight: 900;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .vehicle-icon-mini {
        width: 44px;
        height: 44px;
        background: #f1f5f9;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: #475569;
    }

    @media (max-width: 760px) {
        .stats-dashboard-grid { gap: 16px; }
        .stat-luxury-card { padding: 28px 20px; border-radius: 24px; }
        .stat-value-ultra { font-size: 2rem; letter-spacing: 0; }
        .perf-header { display: none; }
        .perf-row {
            grid-template-columns: 48px 1fr;
            gap: 12px;
            padding: 20px;
        }
        .perf-row > div:nth-child(3),
        .perf-row > div:nth-child(4) {
            grid-column: 2;
            font-size: 0.85rem;
        }
    }

/* templates/motoboy_lojas.html */
.store-grid-premium {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
    }

    .store-card-premium {
        background: white;
        border-radius: 28px;
        padding: 24px;
        border: 1px solid var(--line);
        display: flex;
        flex-direction: column;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .store-card-premium:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

    .store-card-top {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 20px;
    }

    .store-logo-wrap {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        overflow: hidden;
        border: 2px solid #f1f5f9;
        background: #f8fafc;
        flex-shrink: 0;
    }

    .store-logo-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .store-info-main h3 {
        font-size: 1.1rem;
        font-weight: 900;
        color: #0f172a;
        margin: 0;
        letter-spacing: -0.5px;
    }

    .store-location {
        font-size: 0.8rem;
        font-weight: 600;
        color: #64748b;
        display: flex;
        align-items: center;
        gap: 4px;
        margin-top: 4px;
    }

    .store-stats-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px solid #f1f5f9;
    }

    .store-stat-box {
        background: #f8fafc;
        padding: 12px;
        border-radius: 14px;
        text-align: center;
    }

    .stat-box-label {
        font-size: 0.6rem;
        font-weight: 800;
        color: #94a3b8;
        text-transform: uppercase;
        display: block;
        margin-bottom: 4px;
    }

    .stat-box-value {
        font-size: 0.95rem;
        font-weight: 900;
        color: #0f172a;
    }

    .btn-whatsapp-float {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: #22c55e;
        color: white;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 1.2rem;
        transition: all 0.2s;
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    }

    .btn-whatsapp-float:hover {
        transform: scale(1.1);
        background: #16a34a;
    }

/* templates/motoboy_perfil.html */
.profile-master-grid {
        display: grid;
        grid-template-columns: 340px 1fr;
        gap: 40px;
        max-width: 1300px;
        margin: 0 auto;
    }

    .profile-side-card {
        background: white;
        border-radius: 40px;
        border: 1px solid var(--line);
        padding: 40px 32px;
        text-align: center;
        height: fit-content;
        position: sticky;
        top: 112px;
        box-shadow: var(--shadow-lg);
    }

    .profile-avatar-ultra {
        width: 180px;
        height: 180px;
        border-radius: 56px;
        object-fit: cover;
        margin: 0 auto 32px;
        border: 8px solid #f8fafc;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        transition: transform 0.3s;
    }

    .profile-avatar-ultra:hover {
        transform: scale(1.05) rotate(-2deg);
    }

    .profile-main-form {
        background: white;
        border-radius: 40px;
        border: 1px solid var(--line);
        padding: 56px;
        box-shadow: var(--shadow-sm);
    }

    .section-header-ultra {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 40px;
    }

    .section-header-ultra .icon-wrap {
        width: 48px;
        height: 48px;
        background: var(--courier-soft-teal);
        color: var(--courier-primary);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }

    .section-header-ultra h3 {
        font-size: 1.4rem;
        font-weight: 900;
        color: var(--courier-secondary);
        margin: 0;
    }

    .field-grid-ultra {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        margin-bottom: 40px;
    }

    @media (max-width: 1024px) {
        .profile-master-grid { grid-template-columns: 1fr; }
        .profile-side-card { position: static; }
        .field-grid-ultra { grid-template-columns: 1fr; }
        .profile-main-form { padding: 40px 24px; }
    }

/* templates/motoboy_perfil_publico.html */
.pub-profile-shell {
        max-width: 800px;
        margin: 0 auto;
        padding: 40px 20px 100px;
    }

    .pub-profile-header {
        background: #0f172a;
        border-radius: 40px;
        padding: 60px 40px;
        color: white;
        text-align: center;
        position: relative;
        overflow: hidden;
        margin-bottom: 32px;
        box-shadow: var(--shadow-lg);
    }

    .pub-profile-header::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: radial-gradient(circle at 20% 30%, rgba(46, 183, 169, 0.15) 0%, transparent 50%);
        pointer-events: none;
    }

    .pub-avatar-wrap {
        width: 140px;
        height: 140px;
        border-radius: 40px;
        padding: 6px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        margin: 0 auto 24px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .pub-avatar-wrap img {
        width: 100%;
        height: 100%;
        border-radius: 34px;
        object-fit: cover;
    }

    .pub-stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 32px;
    }

    .pub-stat-card {
        background: white;
        border-radius: 28px;
        padding: 32px;
        border: 1px solid var(--line);
        text-align: center;
        box-shadow: var(--shadow-sm);
    }

    .pub-stat-val {
        font-size: 2rem;
        font-weight: 900;
        color: #0f172a;
        letter-spacing: -1px;
    }

    .pub-stat-label {
        font-size: 0.75rem;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-top: 4px;
    }

    .vehicle-tag-pub {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        padding: 8px 16px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 800;
        color: #475569;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .trust-shield-card {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        padding: 24px;
        border-radius: 24px;
        margin-bottom: 40px;
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .shield-icon-big {
        width: 56px;
        height: 56px;
        background: #22c55e;
        color: white;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
    }

    .review-card-pub {
        background: white;
        border-radius: 24px;
        padding: 24px;
        border: 1px solid var(--line);
        margin-bottom: 16px;
    }

    .review-stars {
        color: #eab308;
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .pub-lightbox {
        position: fixed;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: rgba(15, 23, 42, 0.82);
        z-index: 12000;
        backdrop-filter: blur(8px);
    }

    .pub-lightbox.open { display: flex; }

    .pub-lightbox img {
        max-width: min(760px, 94vw);
        max-height: 86vh;
        object-fit: contain;
        border-radius: 24px;
        background: white;
        box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    }

    @media (max-width: 768px) {
        .pub-profile-header { padding: 40px 24px; border-radius: 32px; }
        .pub-avatar-wrap { width: 120px; height: 120px; }
    }

/* templates/motoboy_upload_documentos.html */
.compliance-card-premium {
        max-width: 900px;
        margin: 0 auto;
    }

    .doc-upload-item {
        background: white;
        border-radius: 28px;
        padding: 32px;
        border: 1px solid var(--line);
        margin-bottom: 24px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: grid;
        grid-template-columns: 1fr 280px;
        gap: 32px;
        align-items: center;
    }

    .doc-upload-item:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow-md);
    }

    .doc-info-side h3 {
        font-size: 1.15rem;
        font-weight: 900;
        color: #0f172a;
        margin: 0 0 8px 0;
    }

    .doc-info-side p {
        font-size: 0.9rem;
        color: #64748b;
        margin: 0;
        font-weight: 500;
    }

    .status-pill-modern {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 100px;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: 12px;
    }

    .status-pill-modern.verified { background: #dcfce7; color: #15803d; }
    .status-pill-modern.pending { background: #eff6ff; color: #1d4ed8; }
    .status-pill-modern.rejected { background: #fef2f2; color: #b91c1c; }
    .status-pill-modern.none { background: #f1f5f9; color: #64748b; }

    .upload-action-box {
        background: #f8fafc;
        border: 2px dashed #e2e8f0;
        border-radius: 20px;
        padding: 20px;
        text-align: center;
        transition: all 0.2s;
        cursor: pointer;
        position: relative;
    }

    .upload-action-box:hover {
        border-color: var(--primary);
        background: var(--primary-soft);
    }

    .file-hidden-input {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

    .upload-icon-small {
        font-size: 1.5rem;
        color: #94a3b8;
        display: block;
        margin-bottom: 8px;
    }

    @media (max-width: 900px) {
        .doc-upload-item { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
        .upload-action-box { width: 100%; }
    }

/* templates/notificacoes.html */
.notifications-layout {
        display: grid;
        grid-template-columns: 280px 1fr;
        min-height: 100vh;
        background: var(--bg);
    }

    .notifications-sidebar {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
        color: #fff;
        padding: 24px;
        position: fixed;
        width: 280px;
        height: 100vh;
        overflow-y: auto;
    }

    .notifications-main {
        margin-left: 280px;
        padding: 40px;
        max-width: 1000px;
    }

    .notifications-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .notification-item {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 20px;
        display: grid;
        grid-template-columns: 60px 1fr 100px;
        gap: 16px;
        align-items: center;
        transition: 0.2s;
    }

    .notification-item:hover {
        border-color: var(--primary);
        box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.2);
    }

    .notification-icon {
        width: 60px;
        height: 60px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        background: var(--surface-soft);
    }

    .notification-content h4 {
        margin: 0 0 4px 0;
        font-size: 14px;
        font-weight: 700;
        color: var(--text);
    }

    .notification-content p {
        margin: 0;
        font-size: 13px;
        color: var(--muted);
        line-height: 1.4;
    }

    .notification-time {
        font-size: 12px;
        color: var(--muted);
        text-align: right;
    }

    .notification-item.unread {
        background: rgba(102, 126, 234, 0.05);
        border-color: rgba(102, 126, 234, 0.2);
    }

    .notification-item.success .notification-icon {
        background: rgba(34, 197, 94, 0.15);
        color: #22c55e;
    }

    .notification-item.warning .notification-icon {
        background: rgba(245, 158, 11, 0.15);
        color: #f59e0b;
    }

    .notification-item.error .notification-icon {
        background: rgba(239, 68, 68, 0.15);
        color: #ef4444;
    }

    .notification-item.info .notification-icon {
        background: rgba(59, 130, 246, 0.15);
        color: #3b82f6;
    }

    .filter-tabs {
        display: flex;
        gap: 12px;
        margin-bottom: 24px;
        border-bottom: 1px solid var(--line);
        overflow-x: auto;
        padding-bottom: 16px;
    }

    .filter-tab {
        padding: 8px 16px;
        border-radius: 6px;
        border: 1px solid transparent;
        background: transparent;
        color: var(--muted);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
        white-space: nowrap;
    }

    .filter-tab:hover {
        background: var(--surface-soft);
    }

    .filter-tab.active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .empty-state {
        text-align: center;
        padding: 60px 20px;
        color: var(--muted);
    }

    .empty-state-icon {
        font-size: 64px;
        margin-bottom: 16px;
    }

    .action-buttons {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
    }

    .btn-small {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 4px;
        border: 1px solid var(--line);
        background: transparent;
        color: var(--text);
        cursor: pointer;
        transition: 0.2s;
    }

    .btn-small:hover {
        background: var(--surface-soft);
    }

    @media (max-width: 1024px) {
        .notifications-layout {
            grid-template-columns: 240px 1fr;
        }

        .notifications-sidebar {
            width: 240px;
        }

        .notifications-main {
            margin-left: 240px;
            padding: 24px;
        }

        .notification-item {
            grid-template-columns: 50px 1fr 80px;
        }
    }

    @media (max-width: 768px) {
        .notifications-layout {
            grid-template-columns: 1fr;
        }

        .notifications-sidebar {
            display: none;
        }

        .notifications-main {
            margin-left: 0;
            padding: 20px;
        }

        .notification-item {
            grid-template-columns: 50px 1fr;
            gap: 12px;
        }

        .notification-time {
            grid-column: 2;
            text-align: left;
            margin-top: -8px;
        }

        .action-buttons {
            grid-column: 1 / -1;
            justify-content: flex-start;
        }
    }

/* templates/pedido_confirmar_recebimento.html */
.confirm-delivery-container {
        max-width: 600px;
        margin: 60px auto;
        padding: 0 20px;
    }

    .delivery-card-header {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
        border: 2px solid rgba(34, 197, 94, 0.3);
        border-radius: 16px;
        padding: 24px;
        margin-bottom: 24px;
        text-align: center;
    }

    .delivery-badge {
        display: inline-block;
        background: #22c55e;
        color: #fff;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 12px;
    }

    .delivery-title {
        font-size: 1.4rem;
        font-weight: 800;
        color: #1e293b;
        margin-bottom: 8px;
    }

    .delivery-subtitle {
        font-size: 0.85rem;
        color: #64748b;
        line-height: 1.6;
    }

    .product-summary-card {
        background: var(--bg-strong);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 16px;
        display: flex;
        gap: 12px;
        margin-bottom: 24px;
    }

    .product-summary-card img {
        width: 80px;
        height: 80px;
        border-radius: 8px;
        object-fit: cover;
        background: var(--surface);
    }

    .product-summary-info {
        flex: 1;
    }

    .product-summary-name {
        font-weight: 800;
        font-size: 0.95rem;
        color: #1e293b;
        margin-bottom: 4px;
    }

    .product-summary-store {
        font-size: 0.75rem;
        color: var(--muted);
        margin-bottom: 8px;
    }

    .product-summary-price {
        font-size: 1.2rem;
        font-weight: 900;
        color: var(--primary);
    }

    .delivery-details {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 24px;
    }

    .delivery-detail-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .delivery-detail-item:last-child {
        border-bottom: none;
    }

    .delivery-detail-label {
        font-size: 0.85rem;
        color: var(--muted);
        font-weight: 600;
    }

    .delivery-detail-value {
        font-weight: 800;
        color: #1e293b;
        text-align: right;
    }

    .importance-box {
        background: rgba(34, 197, 94, 0.08);
        border: 1px solid rgba(34, 197, 94, 0.2);
        border-radius: 10px;
        padding: 14px;
        margin-bottom: 24px;
        font-size: 0.8rem;
        color: #1e293b;
        line-height: 1.6;
    }

    .importance-box strong {
        color: #22c55e;
        display: block;
        margin-bottom: 6px;
        font-weight: 800;
    }

    .confirmation-buttons {
        display: flex;
        gap: 12px;
        flex-direction: column;
    }

    .btn-confirm {
        background: #22c55e;
        color: #fff;
        padding: 16px;
        border-radius: 12px;
        font-weight: 800;
        font-size: 1rem;
        border: none;
        cursor: pointer;
        transition: 0.2s;
        text-align: center;
        text-decoration: none;
    }

    .btn-confirm:hover {
        background: #16a34a;
    }

    .btn-problem {
        background: #f87171;
        color: #fff;
        padding: 16px;
        border-radius: 12px;
        font-weight: 800;
        font-size: 1rem;
        border: none;
        cursor: pointer;
        transition: 0.2s;
        text-align: center;
        text-decoration: none;
    }

    .btn-problem:hover {
        background: #ef4444;
    }

    .btn-cancel {
        background: transparent;
        color: var(--muted);
        padding: 16px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 0.95rem;
        border: 1px solid var(--line);
        cursor: pointer;
        transition: 0.2s;
    }

    .btn-cancel:hover {
        border-color: var(--text);
        color: var(--text);
    }

    .timeline-section {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 24px;
    }

    .timeline-title {
        font-weight: 800;
        font-size: 0.85rem;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 12px;
    }

    .timeline-item {
        display: flex;
        gap: 12px;
        margin-bottom: 12px;
    }

    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-dot {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #22c55e;
        flex-shrink: 0;
        margin-top: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.6rem;
        color: #fff;
        font-weight: 900;
    }

    .timeline-dot.pending {
        background: rgba(34, 197, 94, 0.2);
        color: #22c55e;
    }

    .timeline-text {
        font-size: 0.8rem;
        color: #1e293b;
        line-height: 1.5;
    }

    .timeline-text .muted {
        color: var(--muted);
        display: block;
        font-size: 0.75rem;
        margin-top: 2px;
    }

/* templates/perfil_comerciante.html */
.photo-profile-box {
        width: 100%;
        aspect-ratio: 1;
        background: #f1f5f9;
        border-radius: 24px;
        overflow: hidden;
        border: 2px dashed #cbd5e1;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .photo-profile-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .config-section {
        background: white;
        border-radius: 24px;
        border: 1px solid var(--line);
        padding: 40px;
        margin-bottom: 32px;
    }

    .day-config-row {
        display: grid;
        grid-template-columns: 160px 1fr 120px;
        align-items: center;
        gap: 24px;
        padding: 16px 24px;
        background: #f8fafc;
        border: 1px solid var(--line);
        border-radius: 16px;
        transition: all 0.2s;
    }

    .interval-row {
        background: #f0f9ff;
        border: 1px solid #bae6fd;
        padding: 20px;
        border-radius: 16px;
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        gap: 20px;
        align-items: center;
        margin-bottom: 12px;
    }

    .special-day-row {
        background: #fff7ed;
        border: 1px solid #ffedd5;
        padding: 20px;
        border-radius: 16px;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr auto;
        gap: 16px;
        align-items: center;
        margin-bottom: 12px;
    }

    #map {
        height: 350px;
        border-radius: 16px;
        border: 1px solid var(--line);
        margin-top: 16px;
        display: none;
    }

    .merchant-map-modal-card {
        width: min(940px, 96vw);
        max-height: 92vh;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .merchant-map-modal-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        padding: 18px 20px;
        border-bottom: 1px solid var(--line);
    }

    #merchantMapPicker {
        height: min(58vh, 500px);
        min-height: 340px;
        background: #e2e8f0;
    }

    .merchant-map-modal-footer {
        display: grid;
        gap: 12px;
        padding: 16px 20px 20px;
        border-top: 1px solid var(--line);
    }

    .merchant-map-tip {
        border: 1px solid #fed7aa;
        background: #fff7ed;
        color: #9a3412;
        border-radius: 12px;
        padding: 12px;
        font-size: 0.82rem;
        line-height: 1.45;
        font-weight: 850;
    }

    .merchant-map-status {
        color: #475569;
        font-size: 0.82rem;
        line-height: 1.45;
        font-weight: 800;
    }

    .sticky-footer-action {
        position: fixed;
        right: 28px;
        bottom: 28px;
        z-index: 900;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(12px);
        padding: 16px 20px;
        border-radius: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 18px;
        color: white;
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
        width: min(520px, calc(100vw - 32px));
    }

    .profile-page-shell {
        padding-bottom: 140px !important;
    }

    .days-picker {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .day-check-pill {
        cursor: pointer;
    }

    .day-check-pill input {
        display: none;
    }

    .day-check-pill span {
        padding: 6px 12px;
        background: white;
        border: 1px solid var(--line);
        border-radius: 8px;
        font-size: 0.7rem;
        font-weight: 800;
        color: #64748b;
        transition: 0.2s;
    }

    .day-check-pill input:checked + span {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .social-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .section-heading-inline {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    @media (max-width: 900px) {
        .sticky-footer-action { left: 16px; right: 16px; bottom: 88px; flex-direction: column; gap: 12px; width: auto; }
        .day-config-row, .interval-row, .special-day-row { grid-template-columns: 1fr; }
        .config-section { padding: 24px; }
        .social-grid { grid-template-columns: 1fr; }
        .mobile-stack { grid-template-columns: 1fr !important; gap: 18px !important; }
        .merchant-map-modal-card { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
        #merchantMapPicker { height: 62vh; min-height: 340px; }
        .config-section input,
        .config-section select,
        .config-section textarea,
        .config-section .field,
        .config-section .field-select {
            min-width: 0;
            width: 100%;
        }
    }

    @media (max-width: 560px) {
        .page-shell {
            width: min(100% - 24px, 1180px);
            padding-top: 14px !important;
        }

        .config-section {
            padding: 18px !important;
            border-radius: 18px;
            margin-bottom: 18px;
        }

        .photo-profile-box {
            max-width: 240px;
            margin-left: auto;
            margin-right: auto;
            border-radius: 18px;
        }

        .day-config-row,
        .interval-row,
        .special-day-row {
            padding: 14px !important;
            gap: 12px !important;
        }

        .day-config-row > div,
        .interval-row > div,
        .special-day-row > div {
            min-width: 0;
            flex-wrap: wrap;
        }

        .days-picker {
            overflow-x: auto;
            flex-wrap: nowrap;
            padding-bottom: 4px;
            scrollbar-width: none;
        }

        .days-picker::-webkit-scrollbar {
            display: none;
        }

        .sticky-footer-action {
            bottom: 78px;
            padding: 16px;
            border-radius: 16px;
        }

        .sticky-footer-action button {
            width: 100%;
            justify-content: center;
            padding: 14px !important;
            font-size: 0.95rem !important;
        }
    }

/* templates/perfil_comercio.html */
.store-portal-header {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        padding: 80px 0;
        color: #fff;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }

    .store-profile-lockup {
        display: flex;
        gap: 40px;
        align-items: center;
    }
    
    .store-hero-text {
        flex: 1;
        text-align: left;
    }

    .store-large-avatar {
        width: 140px;
        height: 140px;
        border-radius: 32px;
        object-fit: cover;
        border: 4px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--shadow-lg);
    }

    .sticky-cat-nav {
        position: sticky;
        top: 80px;
        z-index: 30;
        background: rgba(248, 250, 252, 0.8);
        backdrop-filter: blur(12px);
        padding: 16px 0;
        margin-top: -30px;
        border-bottom: 1px solid var(--line);
    }

    .cat-scroll {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }
    .cat-scroll::-webkit-scrollbar { display: none; }

    .cat-scroll-shell {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        align-items: center;
    }

    .cat-scroll-arrow {
        width: 34px;
        height: 34px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--surface);
        color: var(--primary);
        display: grid;
        place-items: center;
        cursor: pointer;
        box-shadow: var(--shadow-sm);
    }

    .cat-pill {
        white-space: nowrap;
        padding: 10px 20px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 999px;
        font-weight: 700;
        font-size: 0.85rem;
        color: var(--muted);
        text-decoration: none;
        transition: 0.2s;
    }

    .cat-pill:hover,
    .cat-pill.active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .menu-section {
        padding-top: 80px;
        margin-top: -40px;
    }

    .tags-row {
        display: flex;
        gap: 12px;
        margin-top: 24px;
        flex-wrap: wrap;
    }

    .store-contact-card {
        background: var(--bg-strong);
        text-align: center;
        padding: 60px;
    }

    .responsive-grid-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .responsive-grid-4 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    @media (max-width: 1024px) {
        .responsive-grid-4 { grid-template-columns: repeat(3, 1fr); }
    }

    @media (max-width: 768px) {
        .store-portal-header {
            padding: 40px 0;
        }
        .store-profile-lockup {
            flex-direction: column;
            text-align: center;
            gap: 24px;
        }
        .store-hero-text {
            text-align: center;
        }
        .store-large-avatar {
            width: 100px;
            height: 100px;
        }
        .tags-row {
            justify-content: center;
        }
        .card-stack.action-buttons {
            width: 100% !important;
        }
        .responsive-grid-3 {
            grid-template-columns: 1fr;
        }
        .responsive-grid-4 {
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }
        .store-contact-card {
            padding: 32px 20px;
        }
    }

    @media (max-width: 480px) {
        .responsive-grid-4 {
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        .price-row-mobile {
            flex-direction: column !important;
            align-items: flex-start !important;
            gap: 6px;
        }
        .price-row-mobile .tag {
            display: none; /* Esconde a tag detalhes para n?o encavalar o texto */
        }
        .sticky-cat-nav {
            top: 60px;
        }
        .cat-scroll-arrow {
            width: 32px;
            height: 32px;
        }
    }

    .store-portal-header {
        background: transparent;
        color: var(--text);
        padding: 0;
        border-radius: 0;
    }

    .store-profile-lockup {
        display: grid;
        grid-template-columns: 132px minmax(0, 1fr) 280px;
        gap: 22px;
        align-items: center;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 22px;
        padding: 22px;
        box-shadow: var(--shadow-sm);
    }

    .store-large-avatar {
        width: 132px;
        height: 132px;
        border-radius: 18px;
        border: 1px solid var(--line);
        background: #f8fafc;
        box-shadow: none;
    }

    .store-title {
        color: var(--text);
        font-size: clamp(1.55rem, 3vw, 2.45rem);
        line-height: 1.05;
        margin: 6px 0 0;
        font-weight: 950;
    }

    .store-summary {
        color: var(--muted);
        max-width: 680px;
        line-height: 1.5;
        margin: 10px 0 0;
        font-size: 0.94rem;
    }

    .store-action-panel {
        display: grid;
        gap: 8px;
        background: #f8fafc;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 12px;
    }

    .store-action-panel .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .sticky-cat-nav {
        top: 72px;
        margin-top: 14px;
        padding: 10px 0;
        border-bottom: 0;
        background: rgba(248, 250, 252, 0.92);
    }

    .cat-scroll-shell {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 8px;
        box-shadow: var(--shadow-sm);
    }

    .cat-pill {
        border-radius: 12px;
        padding: 9px 14px;
        font-weight: 850;
    }

    .menu-section {
        padding-top: 62px;
        margin-top: -26px;
    }

    .store-section-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 18px;
    }

    .store-section-head .section-title {
        margin: 4px 0 0;
        text-align: left;
    }

    .store-section-copy {
        color: var(--muted);
        font-size: 0.88rem;
        line-height: 1.45;
        max-width: 420px;
        margin: 0;
    }

    .store-highlight-card {
        padding: 16px;
        border-radius: 16px;
    }

    .store-highlight-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 12px;
    }

    .store-highlight-row {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        padding: 9px;
        border: 1px solid var(--line);
        border-radius: 12px;
        text-decoration: none;
        color: var(--text);
        background: #fff;
    }

    .store-highlight-row + .store-highlight-row {
        margin-top: 8px;
    }

    .store-highlight-row img {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        object-fit: cover;
        background: #f8fafc;
    }

    .store-highlight-name {
        display: block;
        font-size: 0.82rem;
        font-weight: 900;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .store-highlight-meta {
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 750;
        margin-top: 2px;
    }

    .metric-grid.responsive-grid-3 > .surface-card {
        padding: 16px;
        border-radius: 16px;
        background: var(--surface);
        border: 1px solid var(--line);
    }

    .metric-grid.responsive-grid-3 .section-kicker {
        margin-bottom: 12px;
    }

    .metric-grid.responsive-grid-3 .action-row-full {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
        color: var(--text);
        min-width: 0;
    }

    .metric-grid.responsive-grid-3 .action-row-full + .action-row-full {
        margin-top: 8px;
    }

    .metric-grid.responsive-grid-3 .action-row-full > div {
        min-width: 0;
        padding: 0 !important;
    }

    .store-product-card {
        padding: 0;
        overflow: hidden;
        border-radius: 16px;
        min-height: 100%;
        background: var(--surface);
        transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    }

    .store-product-card:hover {
        transform: translateY(-2px);
        border-color: rgba(34, 197, 94, 0.34);
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
    }

    .store-product-link {
        display: flex;
        flex-direction: column;
        min-height: 100%;
        color: inherit;
        text-decoration: none;
    }

    .store-product-media {
        position: relative;
        aspect-ratio: 1;
        background: #f8fafc;
        border-bottom: 1px solid var(--line);
    }

    .store-product-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        cursor: zoom-in;
    }

    .store-badge-layer {
        position: absolute;
        inset: 10px 10px auto 10px;
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .store-mini-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        border-radius: 999px;
        padding: 5px 8px;
        font-size: 0.66rem;
        font-weight: 950;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(226, 232, 240, 0.9);
        color: #334155;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

    .store-mini-badge.coupon {
        background: #f0fdfa;
        color: #0f766e;
        border-color: #99f6e4;
    }

    .store-product-body {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
        padding: 12px;
    }

    .store-product-title {
        color: var(--text);
        font-size: 0.92rem;
        line-height: 1.22;
        min-height: 2.25em;
        margin: 0;
        font-weight: 900;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .store-product-meta {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        min-height: 24px;
    }

    .store-soft-chip {
        border: 1px solid var(--line);
        border-radius: 999px;
        color: var(--muted);
        background: #f8fafc;
        padding: 4px 7px;
        font-size: 0.67rem;
        font-weight: 850;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .store-price-row {
        margin-top: auto;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 8px;
    }

    .store-price-main {
        color: var(--primary);
        font-size: 1.05rem;
        font-weight: 950;
        line-height: 1;
        white-space: nowrap;
    }

    .store-price-old {
        color: var(--muted);
        font-size: 0.74rem;
        text-decoration: line-through;
        font-weight: 800;
        white-space: nowrap;
    }

    .store-detail-button {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        border: 1px solid var(--line);
        color: var(--primary);
        background: #fff;
        flex: 0 0 auto;
    }

    .store-contact-card {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 28px;
        text-align: left;
    }

    @media (max-width: 960px) {
        .store-profile-lockup {
            grid-template-columns: 96px minmax(0, 1fr);
        }

        .store-action-panel {
            grid-column: 1 / -1;
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .store-large-avatar {
            width: 96px;
            height: 96px;
        }
    }

    @media (max-width: 640px) {
        .store-profile-lockup {
            grid-template-columns: 72px minmax(0, 1fr);
            gap: 14px;
            padding: 16px;
            border-radius: 18px;
        }

        .store-large-avatar {
            width: 72px;
            height: 72px;
            border-radius: 14px;
        }

        .store-title {
            font-size: 1.35rem;
        }

        .store-summary {
            font-size: 0.84rem;
        }

        .store-action-panel {
            grid-template-columns: 1fr;
        }

        .store-section-head {
            align-items: flex-start;
            flex-direction: column;
        }

        .responsive-grid-4 {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .store-product-body {
            padding: 10px;
        }
    }

/* templates/perfil_comercio_inativo.html */
body {
            font-family: 'Outfit', sans-serif;
            background-color: #f8fafc;
            color: #0f172a;
            margin: 0;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            overflow-x: hidden;
        }

        .fallback-card {
            background: white;
            border: 1px solid var(--line);
            border-radius: 28px;
            padding: 48px 32px;
            max-width: 500px;
            width: 90%;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.03);
            animation: fadeIn 0.4s ease;
        }

        .avatar-placeholder {
            width: 96px;
            height: 96px;
            border-radius: 20px;
            background: #f1f5f9;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px;
            border: 1px solid var(--line);
            overflow: hidden;
        }

        .btn-home {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--text);
            color: white;
            padding: 14px 28px;
            border-radius: 16px;
            text-decoration: none;
            font-weight: 700;
            font-size: 0.95rem;
            transition: all 0.2s;
            box-shadow: var(--shadow-sm);
        }

        .btn-home:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(15px); }
            to { opacity: 1; transform: translateY(0); }
        }

/* templates/public_base.html */
/* Impede rolagem horizontal e força layout vertical estrito em mobile */
        html, body {
            max-width: 100vw;
            width: 100%;
            overflow-x: hidden;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-overflow-scrolling: touch;
        }

        *, *:before, *:after {
            box-sizing: inherit;
        }

        @media (max-width: 768px) {
            html, body {
                overflow-x: hidden !important;
                position: relative;
            }
            .page-shell, .container, .row, .grid, main, section, div, img, video {
                max-width: 100% !important;
                box-sizing: border-box !important;
            }
        }

        .status-badge-premium {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 12px;
            border-radius: 100px;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-ghost {
            background: transparent;
            border: 1px solid var(--line);
            color: var(--text);
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn-ghost:hover {
            background: #f1f5f9;
            border-color: #cbd5e1;
        }

        /* Admin compacto: no mobile/tablet o menu lateral nunca ocupa a tela. */
        body.is-admin-page .admin-layout {
            display: grid !important;
            grid-template-columns: 260px minmax(0, 1fr) !important;
            width: 100% !important;
            max-width: 100vw !important;
        }

        body.is-admin-page .admin-sidebar {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            height: 100vh !important;
            width: 260px !important;
            max-width: 260px !important;
            min-width: 0 !important;
            flex: 0 0 260px !important;
            overflow-y: auto !important;
            z-index: 1000 !important;
        }

        body.is-admin-page .admin-main {
            grid-column: 2 !important;
            min-width: 0 !important;
            width: 100% !important;
            margin-left: 0 !important;
        }

        @media (max-width: 1180px) {
            body.is-admin-page .admin-layout {
                display: block !important;
                grid-template-columns: 1fr !important;
                padding-bottom: 76px !important;
            }

            body.is-admin-page .admin-sidebar {
                display: none !important;
                visibility: hidden !important;
                width: 0 !important;
                max-width: 0 !important;
                min-width: 0 !important;
                flex-basis: 0 !important;
                padding: 0 !important;
                overflow: hidden !important;
            }

            body.is-admin-page .admin-main {
                grid-column: 1 !important;
                display: block !important;
                width: 100% !important;
                max-width: 100vw !important;
                margin: 0 !important;
                padding-left: 0 !important;
            }

            body.is-admin-page .responsive-container {
                width: 100% !important;
                max-width: 100% !important;
                padding: 20px 14px 88px !important;
                margin: 0 !important;
            }

            body.is-admin-page .mobile-bottom-nav {
                display: flex !important;
            }
        }

        @media (max-width: 1180px) {
            body.is-admin-page .mobile-bottom-nav,
            body.is-admin-page .admin-mobile-fallback-nav {
                position: fixed !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                height: 68px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: space-around !important;
                gap: 4px !important;
                padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
                background: #ffffff !important;
                border-top: 1px solid #e2e8f0 !important;
                box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.10) !important;
                z-index: 2147483000 !important;
            }

            body.is-admin-page .mobile-bottom-nav a,
            body.is-admin-page .mobile-bottom-nav button,
            body.is-admin-page .admin-mobile-fallback-nav a,
            body.is-admin-page .admin-mobile-fallback-nav button {
                min-width: 0 !important;
                flex: 1 1 0 !important;
                height: 52px !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 3px !important;
                color: #64748b !important;
                text-decoration: none !important;
                font-size: 0.66rem !important;
                line-height: 1 !important;
                font-weight: 800 !important;
                border-radius: 12px !important;
                border: 0 !important;
                background: transparent !important;
                font-family: inherit !important;
                cursor: pointer !important;
            }

            body.is-admin-page .mobile-bottom-nav a.active,
            body.is-admin-page .mobile-bottom-nav button.active,
            body.is-admin-page .admin-mobile-fallback-nav a.active,
            body.is-admin-page .admin-mobile-fallback-nav button.active {
                color: #0f766e !important;
                background: rgba(46, 183, 169, 0.10) !important;
            }

            body.is-admin-page .mobile-bottom-nav svg,
            body.is-admin-page .admin-mobile-fallback-nav svg {
                width: 20px !important;
                height: 20px !important;
                stroke: currentColor !important;
                fill: none !important;
                stroke-width: 2 !important;
                stroke-linecap: round !important;
                stroke-linejoin: round !important;
            }

            body.is-admin-page .admin-mobile-more-backdrop {
                position: fixed !important;
                inset: 0 !important;
                display: none !important;
                background: rgba(15, 23, 42, 0.45) !important;
                z-index: 2147482990 !important;
            }

            body.is-admin-page .admin-mobile-more-backdrop.open {
                display: block !important;
            }

            body.is-admin-page .admin-mobile-more-sheet {
                position: fixed !important;
                left: 12px !important;
                right: 12px !important;
                bottom: 82px !important;
                z-index: 2147483001 !important;
                display: none !important;
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 8px !important;
                background: #fff !important;
                border: 1px solid #e2e8f0 !important;
                border-radius: 18px !important;
                box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28) !important;
                padding: 10px !important;
            }

            body.is-admin-page .admin-mobile-more-sheet.open {
                display: grid !important;
            }

            body.is-admin-page .admin-mobile-more-item {
                display: flex !important;
                align-items: center !important;
                gap: 10px !important;
                padding: 13px !important;
                border-radius: 14px !important;
                background: #f8fafc !important;
                color: #0f172a !important;
                text-decoration: none !important;
                font-weight: 800 !important;
                font-size: 0.82rem !important;
            }

            body.is-admin-page .admin-mobile-more-item.active {
                background: rgba(46, 183, 169, 0.10) !important;
                color: #0f766e !important;
            }

            body.is-admin-page .admin-mobile-more-item.is-danger {
                background: #fef2f2 !important;
                color: #dc2626 !important;
            }
        }

        body.admin-mobile-forced .admin-layout {
            display: block !important;
            grid-template-columns: 1fr !important;
            width: 100% !important;
            max-width: 100vw !important;
            padding-bottom: 76px !important;
        }

        body.admin-mobile-forced .admin-sidebar {
            display: none !important;
            visibility: hidden !important;
            width: 0 !important;
            max-width: 0 !important;
            min-width: 0 !important;
            flex: 0 0 0 !important;
            padding: 0 !important;
            overflow: hidden !important;
        }

        body.admin-mobile-forced .admin-main {
            display: block !important;
            width: 100% !important;
            max-width: 100vw !important;
            margin: 0 !important;
            padding-left: 0 !important;
        }

        /* Lightbox Moderno */
        .ui-lightbox {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.9);
            backdrop-filter: blur(8px);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 40px;
            cursor: zoom-out;
            animation: fadeIn 0.3s ease;
        }
        .ui-lightbox img {
            max-width: 100%;
            max-height: 100%;
            border-radius: 16px;
            box-shadow: var(--shadow-lg);
            cursor: default;
            transform: scale(0.9);
            animation: scaleUp 0.3s forwards;
        }
        .lightbox-close {
            position: absolute;
            top: 32px;
            right: 32px;
            background: white;
            color: var(--secondary);
            border: none;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-md);
        }
        @keyframes scaleUp {
            to { transform: scale(1); }
        }

        /* Estilo Global de Modais */
        .ui-modal {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(8px);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

        @media (max-width: 640px) {
            .public-topbar {
                min-height: 64px !important;
                height: auto !important;
            }

            .public-topbar .page-shell {
                width: min(100% - 20px, 1180px) !important;
            }

            .public-topbar .topbar-inner {
                gap: 8px !important;
                min-width: 0;
            }

            .public-topbar .brand-modern {
                gap: 8px;
                min-width: 0;
                flex-shrink: 1;
            }

            .public-topbar .logo-cube {
                width: 36px;
                height: 36px;
                border-radius: 10px;
            }

            .public-topbar .brand-name {
                font-size: 1.05rem;
            }

            .public-topbar .brand-hub {
                display: none;
            }

            .public-topbar .topbar-actions {
                gap: 6px !important;
                justify-content: flex-end;
                min-width: 0;
                flex: 0 1 auto;
                max-width: calc(100% - 52px);
                overflow: hidden;
            }

            .public-topbar .topbar-actions .user-profile-header,
            .public-topbar #headerDownloadBtn {
                display: none !important;
            }

            .public-topbar .topbar-actions > a,
            .public-topbar .topbar-actions > button,
            .public-topbar .topbar-actions > span {
                max-width: 118px;
                padding: 8px 10px !important;
                font-size: 0.75rem !important;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                flex-shrink: 0;
            }
        }

/* templates/public_base.html */
@keyframes slideUp {
            from { transform: translateY(100px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

/* templates/rastreio_pedido.html */
.tracking-hero {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        padding: 60px 0 80px;
        color: #fff;
        text-align: center;
        border-radius: 0 0 40px 40px;
    }
    
    .tracking-status-card {
        background: var(--surface);
        border-radius: var(--radius-xl);
        border: 2px solid var(--primary-soft);
        padding: 32px;
        text-align: center;
        margin-bottom: 24px;
    }
    
    .status-icon-large {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        margin: 0 auto 16px;
        font-size: 2.5rem;
    }
    
    .tracking-timeline {
        background: var(--surface);
        border-radius: var(--radius-xl);
        border: 1px solid var(--line);
        padding: 32px;
        margin-bottom: 24px;
    }
    
    .timeline-step {
        display: flex;
        gap: 16px;
        padding: 16px 0;
        position: relative;
    }
    
    .timeline-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 15px;
        top: 48px;
        bottom: 0;
        width: 2px;
        background: var(--line);
    }
    
    .timeline-step.completed::after {
        background: var(--primary);
    }
    
    .timeline-marker {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--bg-strong);
        border: 2px solid var(--line);
        display: grid;
        place-items: center;
        flex-shrink: 0;
        z-index: 1;
    }
    
    .timeline-step.completed .timeline-marker {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }
    
    .timeline-step.active .timeline-marker {
        background: var(--primary-soft);
        border-color: var(--primary);
        color: var(--primary);
        animation: pulse-marker 2s infinite;
    }
    
    @keyframes pulse-marker {
        0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
        70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
        100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
    }
    
    .timeline-content {
        flex: 1;
    }
    
    .timeline-title {
        font-weight: 800;
        color: var(--text);
        margin-bottom: 4px;
    }
    
    .timeline-step.completed .timeline-title {
        color: var(--primary);
    }
    
    .timeline-desc {
        font-size: 0.85rem;
        color: var(--muted);
    }
    
    .product-preview {
        display: flex;
        gap: 16px;
        align-items: center;
        background: var(--bg-strong);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .product-preview img {
        width: 80px;
        height: 80px;
        border-radius: 10px;
        object-fit: cover;
        border: 1px solid var(--line);
    }
    
    .confirmation-code {
        background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
        border: 2px solid var(--primary);
        border-radius: 16px;
        padding: 24px;
        text-align: center;
        margin: 24px 0;
    }

    .primary-code-card {
        margin-top: -46px;
        margin-bottom: 18px;
        position: sticky;
        top: 86px;
        z-index: 40;
        box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
    }
    
    .code-display {
        font-size: 3.5rem;
        font-weight: 900;
        letter-spacing: 0.4em;
        color: var(--primary);
        font-family: 'Outfit', monospace;
        margin: 16px 0;
        text-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    }

    .track-actions-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 16px;
    }

    .track-helper-strip {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 12px 14px;
        margin-top: 14px;
        text-align: left;
    }

    .track-helper-strip strong {
        display: block;
        color: #0f172a;
        font-size: 0.84rem;
    }

    .track-helper-strip span {
        display: block;
        color: #64748b;
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .track-mini-id {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 1px solid #c7d2fe;
        color: #3730a3;
        background: #eef2ff;
        border-radius: 999px;
        padding: 6px 10px;
        font-size: 0.72rem;
        font-weight: 900;
        text-transform: uppercase;
    }
    
    .instruction-card {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .status-badge-premium {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 16px;
        border-radius: 100px;
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    html, body { overflow-x: hidden; max-width: 100vw; }
    .help-dot {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: inline-grid;
        place-items: center;
        border: 1px solid var(--line);
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 900;
        cursor: help;
        background: #fff;
    }
    @media (max-width: 640px) {
        .tracking-hero { padding: 42px 0 58px; border-radius: 0 0 28px 28px; }
        .tracking-status-card, .tracking-timeline, .surface-card { border-radius: 18px; padding: 20px; }
        .product-preview { align-items: flex-start; }
        .primary-code-card { position: relative; top: auto; margin-top: -34px; padding: 18px; }
        .code-display { font-size: 2.8rem; letter-spacing: 0.22em; padding-left: 0.22em; }
        .track-actions-grid { grid-template-columns: 1fr; }
        .track-helper-strip { align-items: flex-start; flex-direction: column; }
    }

/* templates/rastreio_pedido.html */
@keyframes pulse-border {
                0% { border-color: #f59e0b; }
                50% { border-color: transparent; }
                100% { border-color: #f59e0b; }
            }

/* templates/recuperar_senha.html */
.auth-container {
        max-width: 500px;
        margin: 80px auto;
        padding: 40px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
    }

    .auth-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .auth-header h1 {
        font-size: 28px;
        margin: 0 0 8px 0;
        color: var(--text);
    }

    .auth-header p {
        color: var(--muted);
        margin: 0;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--text);
    }

    .form-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: var(--surface-soft);
        color: var(--text);
        font-size: 14px;
    }

    .form-group input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .btn {
        width: 100%;
        padding: 12px;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
    }

    .btn:hover {
        opacity: 0.9;
    }

    .info-box {
        background: rgba(59, 130, 246, 0.1);
        border-left: 4px solid #3b82f6;
        padding: 16px;
        border-radius: 6px;
        margin-bottom: 24px;
        font-size: 14px;
        color: var(--text);
    }

    .link-section {
        text-align: center;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid var(--line);
    }

    .link-section a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }

    .link-section a:hover {
        text-decoration: underline;
    }

    @media (max-width: 768px) {
        .auth-container {
            margin: 40px 20px;
            padding: 24px;
        }
    }

/* templates/reenviar_confirmacao.html */
.resend-confirm-page {
        min-height: calc(100vh - 140px);
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: clamp(32px, 7vh, 72px) 16px 48px;
    }

    .resend-confirm-shell {
        width: min(100%, 520px);
    }

    .resend-confirm-card {
        width: 100%;
        padding: clamp(24px, 4vw, 36px);
    }

    .resend-confirm-alert {
        padding: 14px 16px;
        border-radius: 10px;
        margin-bottom: 10px;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .resend-confirm-info {
        background: var(--bg-strong);
        padding: 18px;
        border-radius: 12px;
        margin: 22px 0;
        border: 1px solid var(--line);
    }

    .resend-confirm-info-row {
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }

    .resend-confirm-info-row i {
        color: var(--primary);
        font-size: 1.2rem;
        flex: 0 0 auto;
        margin-top: 2px;
    }

    .resend-confirm-info-row p {
        font-size: 0.88rem;
        color: var(--muted);
        line-height: 1.55;
        margin: 0;
    }

    .resend-confirm-footer {
        text-align: center;
        border-top: 1px solid var(--line);
        padding-top: 28px;
        margin-top: 28px;
    }

    @media (max-width: 540px) {
        .resend-confirm-page {
            min-height: auto;
            padding-top: 24px;
        }

        .resend-confirm-card {
            border-radius: 16px;
        }

        .resend-confirm-info-row {
            gap: 10px;
        }
    }

/* templates/registro.html */
.merchant-plan-choice {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 12px;
    }
    .merchant-plan-option {
        position: relative;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
        cursor: pointer;
        transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }
    .merchant-plan-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }
    .merchant-plan-option.is-selected {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(46, 183, 169, .14);
        transform: translateY(-1px);
    }
    .merchant-plan-option strong {
        display: block;
        color: var(--secondary);
        font-size: 0.8rem;
        font-weight: 900;
    }
    .merchant-plan-option span {
        display: block;
        color: var(--primary);
        font-size: 0.98rem;
        font-weight: 950;
        margin-top: 2px;
    }
    .merchant-plan-option small {
        display: block;
        color: var(--text-muted);
        font-size: 0.7rem;
        font-weight: 700;
        margin-top: 2px;
        line-height: 1.35;
    }
    @media (max-width: 560px) {
        .merchant-plan-choice { grid-template-columns: 1fr; }
    }

/* templates/registro_sucesso.html */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .container {
            background: white;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 600px;
            width: 100%;
            overflow: hidden;
            animation: slideUp 0.5s ease-out;
        }

        @keyframes slideUp {
            from {
                transform: translateY(30px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 40px 20px;
            text-align: center;
        }

        .header h1 {
            font-size: 28px;
            margin-bottom: 10px;
        }

        .header p {
            font-size: 14px;
            opacity: 0.9;
        }

        .check-icon {
            font-size: 60px;
            margin-bottom: 20px;
            animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        @keyframes popIn {
            0% {
                transform: scale(0);
            }

            50% {
                transform: scale(1.2);
            }

            100% {
                transform: scale(1);
            }
        }

        .content {
            padding: 40px 30px;
        }

        .welcome-box {
            background: #f8f9fa;
            border-left: 4px solid #667eea;
            padding: 20px;
            margin-bottom: 25px;
            border-radius: 4px;
        }

        .welcome-box h2 {
            color: #333;
            font-size: 18px;
            margin-bottom: 10px;
        }

        .welcome-box p {
            color: #666;
            font-size: 14px;
            line-height: 1.6;
        }

        .info-section {
            margin-bottom: 30px;
        }

        .info-section h3 {
            color: #333;
            font-size: 16px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .info-section ul {
            list-style: none;
            padding: 0;
        }

        .info-section li {
            color: #555;
            font-size: 14px;
            padding: 8px 0;
            padding-left: 28px;
            position: relative;
            line-height: 1.5;
        }

        .info-section li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #667eea;
            font-weight: bold;
            font-size: 16px;
        }

        .timeline {
            background: #f8f9fa;
            padding: 25px;
            border-radius: 8px;
            margin-bottom: 30px;
        }

        .timeline-item {
            display: flex;
            margin-bottom: 20px;
            position: relative;
        }

        .timeline-item:not(:last-child):after {
            content: '';
            position: absolute;
            left: 20px;
            top: 40px;
            width: 2px;
            height: 30px;
            background: #ddd;
        }

        .timeline-dot {
            width: 40px;
            height: 40px;
            background: #667eea;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            flex-shrink: 0;
            font-size: 18px;
        }

        .timeline-content {
            margin-left: 15px;
            padding-top: 5px;
        }

        .timeline-content h4 {
            color: #333;
            font-size: 14px;
            margin-bottom: 3px;
        }

        .timeline-content p {
            color: #666;
            font-size: 13px;
        }

        .timeline-item.completed .timeline-dot {
            background: #4caf50;
        }

        .timeline-item.current .timeline-dot {
            background: #ff9800;
            animation: pulse 2s infinite;
        }

        .timeline-item.pending .timeline-dot {
            background: #bbb;
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.1);
            }
        }

        .button-group {
            display: flex;
            gap: 12px;
            margin-top: 30px;
        }

        .btn {
            flex: 1;
            padding: 12px 24px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-transform: none;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
        }

        .btn-secondary {
            background: #f0f0f0;
            color: #333;
            border: 1px solid #ddd;
        }

        .btn-secondary:hover {
            background: #e8e8e8;
            border-color: #bbb;
        }

        .email-notice {
            background: #e3f2fd;
            border: 1px solid #90caf9;
            color: #1565c0;
            padding: 15px;
            border-radius: 6px;
            margin-bottom: 20px;
            font-size: 13px;
            line-height: 1.6;
        }

        .email-notice strong {
            display: block;
            margin-bottom: 5px;
        }

        .contact-info {
            background: #fff3e0;
            border-left: 4px solid #ff9800;
            padding: 15px;
            border-radius: 4px;
            font-size: 13px;
            color: #e65100;
            margin-top: 20px;
        }

        .contact-info strong {
            display: block;
            margin-bottom: 5px;
        }

        @media (max-width: 600px) {
            .content {
                padding: 25px 20px;
            }

            .button-group {
                flex-direction: column;
            }

            .btn {
                width: 100%;
            }

            .header h1 {
                font-size: 22px;
            }
        }

/* templates/relatorio_importacao.html */
.audit-header {
        background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
        padding: 48px 40px;
        border-radius: 24px;
        color: #fff;
        margin-bottom: 40px;
        position: relative;
        overflow: hidden;
        box-shadow: var(--shadow-lg);
    }

    .audit-header::after {
        content: '✓';
        position: absolute;
        right: -20px;
        top: -20px;
        font-size: 180px;
        color: rgba(255,255,255,0.03);
        transform: rotate(-15deg);
    }

    .metric-grid-premium {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 24px;
        margin-bottom: 40px;
    }

    .metric-card-glass {
        background: var(--surface);
        border: 1px solid var(--line);
        padding: 32px 24px;
        border-radius: 20px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        text-align: center;
    }

    .metric-card-glass:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--primary-soft);
    }

    .metric-value {
        font-size: 2.8rem;
        font-weight: 800;
        letter-spacing: -0.04em;
        line-height: 1;
        margin: 12px 0;
    }

    .metric-label {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--muted);
    }

    .status-badge-lg {
        padding: 6px 16px;
        border-radius: 99px;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .btn-download-premium {
        background: #fff;
        color: #1e1b4b;
        padding: 14px 28px;
        border-radius: 12px;
        font-weight: 800;
        font-size: 0.9rem;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        transition: 0.3s;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .btn-download-premium:hover {
        transform: scale(1.02);
        background: var(--accent);
        color: #fff;
    }

/* templates/resetar_senha.html */
.auth-container {
        max-width: 500px;
        margin: 80px auto;
        padding: 40px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
    }

    .auth-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .auth-header h1 {
        font-size: 28px;
        margin: 0 0 8px 0;
        color: var(--text);
    }

    .auth-header p {
        color: var(--muted);
        margin: 0;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--text);
    }

    .form-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: var(--surface-soft);
        color: var(--text);
        font-size: 14px;
    }

    .form-group input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .btn {
        width: 100%;
        padding: 12px;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
    }

    .btn:hover {
        opacity: 0.9;
    }

    .requirements {
        background: rgba(245, 158, 11, 0.1);
        border-left: 4px solid #f59e0b;
        padding: 16px;
        border-radius: 6px;
        margin-bottom: 24px;
        font-size: 13px;
        color: var(--text);
    }

    .requirements ul {
        margin: 8px 0 0 0;
        padding-left: 20px;
    }

    .requirements li {
        margin: 4px 0;
    }

    .requirement-check {
        display: inline-block;
        width: 18px;
        height: 18px;
        background: #ef4444;
        color: white;
        border-radius: 50%;
        text-align: center;
        line-height: 18px;
        font-size: 12px;
        margin-right: 6px;
    }

    .requirement-check.ok {
        background: #22c55e;
    }

    .link-section {
        text-align: center;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid var(--line);
    }

    .link-section a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }

    .link-section a:hover {
        text-decoration: underline;
    }

    @media (max-width: 768px) {
        .auth-container {
            margin: 40px 20px;
            padding: 24px;
        }
    }

/* templates/components/devtools_guard.html */
.pmb-devtools-guard {
        position: fixed;
        inset: 0;
        z-index: 2147483647;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 22px;
        background:
            radial-gradient(circle at 20% 10%, rgba(220, 38, 38, 0.22), transparent 34%),
            linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.98));
        color: #fff;
        font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    .pmb-devtools-guard.is-visible {
        display: flex;
    }

    .pmb-devtools-card {
        width: min(620px, 94vw);
        border: 1px solid rgba(248, 113, 113, 0.42);
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.94);
        box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
        overflow: hidden;
    }

    .pmb-devtools-header {
        padding: 18px 22px;
        background: rgba(127, 29, 29, 0.48);
        border-bottom: 1px solid rgba(248, 113, 113, 0.34);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .pmb-devtools-kicker {
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #fecaca;
    }

    .pmb-devtools-status {
        font-size: 0.68rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #fff;
        background: #dc2626;
        border-radius: 999px;
        padding: 7px 10px;
        white-space: nowrap;
    }

    .pmb-devtools-body {
        padding: 24px;
    }

    .pmb-devtools-body h2 {
        margin: 0 0 10px;
        font-size: clamp(1.45rem, 4vw, 2.1rem);
        line-height: 1.05;
        font-weight: 950;
        letter-spacing: 0;
        color: #fff;
    }

    .pmb-devtools-body p {
        margin: 0;
        color: #cbd5e1;
        line-height: 1.55;
        font-size: 0.95rem;
    }

    .pmb-devtools-list {
        margin: 18px 0 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 10px;
    }

    .pmb-devtools-list li {
        padding: 12px 14px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #e2e8f0;
        font-size: 0.84rem;
        line-height: 1.4;
        font-weight: 750;
    }

    .pmb-devtools-form {
        margin-top: 20px;
        display: grid;
        gap: 10px;
    }

    .pmb-devtools-form label {
        font-size: 0.72rem;
        color: #fecaca;
        text-transform: uppercase;
        font-weight: 900;
        letter-spacing: 0.08em;
    }

    .pmb-devtools-form input {
        width: 100%;
        min-height: 48px;
        border-radius: 12px;
        border: 1px solid rgba(248, 113, 113, 0.44);
        background: rgba(2, 6, 23, 0.74);
        color: #fff;
        padding: 0 14px;
        outline: none;
        font: inherit;
        box-sizing: border-box;
    }

    .pmb-devtools-form input:focus {
        border-color: #fca5a5;
        box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
    }

    .pmb-devtools-form button {
        min-height: 48px;
        border: 0;
        border-radius: 12px;
        background: #dc2626;
        color: #fff;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        cursor: pointer;
        font: inherit;
    }

    .pmb-devtools-form button:disabled {
        opacity: 0.65;
        cursor: wait;
    }

    .pmb-devtools-message {
        min-height: 18px;
        color: #fecaca;
        font-size: 0.78rem;
        font-weight: 800;
    }

/* templates/components/legal_terms_gate.html */
.legal-terms-gate {
        position: fixed;
        inset: 0;
        z-index: 999999;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(14px);
    }

    .legal-terms-card {
        width: min(860px, 100%);
        max-height: 92vh;
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid var(--line, #e2e8f0);
        border-radius: 20px;
        box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
        overflow: hidden;
    }

    .legal-terms-head {
        padding: 26px 30px 18px;
        border-bottom: 1px solid var(--line, #e2e8f0);
    }

    .legal-terms-kicker {
        color: var(--primary, #2eb7a9);
        font-size: 0.72rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 8px;
    }

    .legal-terms-title {
        margin: 0;
        color: #0f172a;
        font-size: 1.45rem;
        font-weight: 950;
        letter-spacing: 0;
        line-height: 1.15;
    }

    .legal-terms-summary {
        margin: 10px 0 0;
        color: #475569;
        font-size: 0.92rem;
        line-height: 1.45;
        font-weight: 650;
    }

    .legal-terms-alert {
        margin-top: 14px;
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid #fecaca;
        background: #fff1f2;
        color: #991b1b;
        font-size: 0.82rem;
        line-height: 1.45;
        font-weight: 800;
    }

    .legal-terms-body {
        flex: 1;
        overflow-y: auto;
        padding: 24px 30px;
        color: #0f172a;
        line-height: 1.72;
        scrollbar-width: thin;
        scrollbar-color: var(--primary, #2eb7a9) #f1f5f9;
    }

    .legal-terms-section {
        margin-bottom: 20px;
        padding-bottom: 18px;
        border-bottom: 1px solid #eef2f7;
    }

    .legal-terms-section:last-child {
        border-bottom: 0;
        margin-bottom: 0;
    }

    .legal-terms-section h3 {
        margin: 0 0 8px;
        color: var(--primary, #2eb7a9);
        font-size: 0.98rem;
        font-weight: 950;
        letter-spacing: 0;
    }

    .legal-terms-section p {
        margin: 0;
        font-size: 0.92rem;
        color: #334155;
    }

    .legal-terms-footer {
        padding: 18px 30px 26px;
        border-top: 1px solid var(--line, #e2e8f0);
        background: #f8fafc;
    }

    .legal-terms-checks {
        display: grid;
        gap: 10px;
        margin-bottom: 16px;
    }

    .legal-terms-check {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        color: #0f172a;
        font-size: 0.86rem;
        line-height: 1.42;
        font-weight: 700;
        cursor: pointer;
    }

    .legal-terms-check input {
        width: 20px;
        height: 20px;
        min-width: 20px;
        margin-top: 1px;
        accent-color: var(--primary, #2eb7a9);
    }

    .legal-terms-actions {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .legal-terms-btn {
        border: 0;
        border-radius: 12px;
        padding: 15px 18px;
        font-weight: 900;
        cursor: pointer;
        min-height: 48px;
    }

    .legal-terms-accept {
        flex: 1;
        background: var(--primary, #2eb7a9);
        color: #fff;
    }

    .legal-terms-accept:disabled {
        background: #cbd5e1;
        color: #64748b;
        cursor: not-allowed;
    }

    .legal-terms-close {
        background: #fff;
        color: #475569;
        border: 1px solid var(--line, #e2e8f0);
    }

    body.legal-terms-locked {
        overflow: hidden !important;
    }

    @media (max-width: 640px) {
        .legal-terms-gate {
            padding: 8px;
            align-items: stretch;
        }

        .legal-terms-card {
            max-height: 98vh;
            border-radius: 16px;
        }

        .legal-terms-head,
        .legal-terms-body,
        .legal-terms-footer {
            padding-left: 16px;
            padding-right: 16px;
        }

        .legal-terms-title {
            font-size: 1.16rem;
        }

        .legal-terms-body {
            font-size: 1rem;
            line-height: 1.62;
        }

        .legal-terms-actions {
            flex-direction: column;
        }

        .legal-terms-btn {
            width: 100%;
        }
    }

/* templates/consumidor/base.html */
:root {
            --sidebar-width: 280px;
            --topbar-height: 80px;
            --primary: #4f46e5;
            --primary-soft: rgba(79, 70, 229, 0.1);
        }

        body {
            font-family: 'Outfit', sans-serif;
            background-color: #f8fafc;
            color: #0f172a;
            margin: 0;
            display: flex;
            overflow-x: hidden;
        }

        /* Sidebar Modernizada */
        .admin-sidebar {
            width: var(--sidebar-width);
            background: #0f172a;
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            padding: 32px 24px;
            border-right: 1px solid rgba(255,255,255,0.05);
        }

        .brand-cube {
            width: 48px;
            height: 48px;
            background: var(--primary);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 40px;
            box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
        }

        .sidebar-nav {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
        }

        .sidebar-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-radius: 14px;
            color: #94a3b8;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .sidebar-link i {
            font-size: 1.2rem;
            transition: transform 0.2s;
        }

        .sidebar-link:hover {
            background: rgba(255,255,255,0.05);
            color: #fff;
        }

        .sidebar-link:hover i {
            transform: translateX(3px);
        }

        .sidebar-link.active {
            background: var(--primary);
            color: white;
            box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
        }

        .sidebar-section-label {
            font-size: 0.7rem;
            font-weight: 800;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin: 24px 16px 8px;
        }

        /* Main Content Area */
        .admin-main {
            flex: 1;
            margin-left: var(--sidebar-width);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .admin-topbar {
            height: var(--topbar-height);
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--line);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 0 40px;
            position: sticky;
            top: 0;
            z-index: 900;
        }

        /* Mobile Adjustments */
        @media (max-width: 1024px) {
            .admin-sidebar { display: none; }
            .admin-main { margin-left: 0; padding-bottom: 90px; }
            .admin-topbar { padding: 0 20px; }
            .desktop-only { display: none !important; }
        }

        .mobile-bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: #ffffff;
            display: none;
            justify-content: space-around;
            padding: 12px 0;
            z-index: 1100;
            border-top: 1px solid var(--line);
            box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
        }

        @media (max-width: 1024px) {
            .mobile-bottom-nav { display: flex; }
        }

        .mobile-nav-link {
            color: #94a3b8;
            text-decoration: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 0.65rem;
            font-weight: 700;
            gap: 4px;
        }

        .mobile-nav-link i { font-size: 1.4rem; }
        .mobile-nav-link.active { color: var(--primary); }
        .mobile-bottom-nav a[href="/consumidor?q="] { font-size: 0; }
        .mobile-bottom-nav a[href="/consumidor?q="]::after { content: "Busca"; font-size: 0.65rem; }
        button.mobile-nav-link {
            border: 0;
            background: transparent;
            font-family: inherit;
            cursor: pointer;
            padding: 0;
        }

        .mobile-more-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.45);
            z-index: 1090;
            display: none;
        }

        .mobile-more-backdrop.open {
            display: block;
        }

        .mobile-more-sheet {
            position: fixed;
            left: 12px;
            right: 12px;
            bottom: 82px;
            z-index: 1110;
            display: none;
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 18px;
            box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
            padding: 10px;
        }

        .mobile-more-sheet.open {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .mobile-more-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 13px;
            border-radius: 14px;
            background: #f8fafc;
            color: #0f172a;
            text-decoration: none;
            font-weight: 800;
            font-size: 0.82rem;
        }

        .mobile-more-item i {
            color: var(--primary);
            font-size: 1.1rem;
        }

        .mobile-more-item.is-danger {
            color: #dc2626;
            background: #fef2f2;
        }

        .mobile-more-item.active {
            color: var(--primary);
            background: var(--primary-soft);
            border: 1px solid rgba(79, 70, 229, 0.16);
        }

        .content-shell {
            padding: 40px;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
            box-sizing: border-box;
        }

        @media (max-width: 600px) {
            .admin-topbar { height: 68px; padding: 0 10px; gap: 8px; }
            .admin-topbar h2 { font-size: 0.95rem !important; max-width: 40vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
            .content-shell { padding: 16px; }
            .consumer-topbar-right { gap: 8px !important; min-width: 0; flex-shrink: 0; }
            .consumer-topbar-location { display: none !important; }
            .consumer-cart-btn { padding: 8px 10px !important; min-width: 40px; height: 40px; justify-content: center; }
            .consumer-cart-label { display: none; }
            .consumer-avatar { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
            .consumer-mobile-logout {
                display: inline-flex !important;
                width: 40px;
                height: 40px;
                align-items: center;
                justify-content: center;
                border: 1px solid var(--line);
                border-radius: 12px;
                color: #ef4444;
                text-decoration: none;
                background: #fff;
                flex-shrink: 0;
            }
        }

        @media (max-width: 640px) {
            #cartModal {
                align-items: flex-end !important;
                padding: 0 !important;
            }

            #cartModal .cart-modal-card {
                width: 100% !important;
                max-height: 90vh !important;
                border-radius: 24px 24px 0 0 !important;
            }
        }

        .consumer-mobile-logout { display: none; }

        .ui-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.55);
            backdrop-filter: blur(6px);
            z-index: 2200;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .ui-modal.open,
        .ui-modal.is-open {
            display: flex;
        }

        .modal-card {
            background: #fff;
            width: min(420px, 94vw);
            border-radius: 22px;
            padding: 28px;
            border: 1px solid var(--line);
            box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
        }

        .ui-lightbox {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 2300;
            background: rgba(15,23,42,0.92);
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .ui-lightbox.open,
        .ui-lightbox.is-open {
            display: flex;
        }

        .ui-lightbox img {
            max-width: 100%;
            max-height: 90vh;
            border-radius: 16px;
            object-fit: contain;
            background: #fff;
        }

        .lightbox-close {
            position: absolute;
            top: 22px;
            right: 22px;
            width: 42px;
            height: 42px;
            border-radius: 999px;
            border: 0;
            background: #fff;
            color: #0f172a;
            font-size: 1.5rem;
            cursor: pointer;
        }

        #cartModalBody details > summary::-webkit-details-marker {
            display: none;
        }

        #cartModalBody details > summary::marker {
            content: '';
        }

/* templates/consumidor/compras.html */
.purchase-filter-row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 18px;
    }

    .purchase-filter-btn {
        border: 1px solid var(--line);
        background: #fff;
        color: #64748b;
        border-radius: 999px;
        padding: 8px 12px;
        font-size: 0.76rem;
        font-weight: 900;
        cursor: pointer;
    }

    .purchase-filter-btn.active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .purchase-card {
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 14px;
        background: #fff;
    }

    @media (max-width: 640px) {
        .purchase-page-card { padding: 18px !important; }
        .purchase-card { align-items: flex-start; }
        .purchase-main { width: 100%; }
        .purchase-actions { width: 100%; align-items: stretch !important; }
        .purchase-actions a,
        .purchase-actions button { width: 100%; justify-content: center; }
    }

/* templates/consumidor/locais_salvos.html */
.locations-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .locations-title {
        margin: 0 0 8px;
        font-size: 1.7rem;
        font-weight: 900;
        color: #0f172a;
    }

    .locations-subtitle {
        margin: 0;
        color: #64748b;
        font-weight: 650;
        line-height: 1.5;
        max-width: 680px;
    }

    .location-panel {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 24px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    }

    .location-form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .location-field-full {
        grid-column: 1 / -1;
    }

    .location-label {
        display: block;
        margin-bottom: 7px;
        font-size: 0.78rem;
        color: #334155;
        font-weight: 900;
    }

    .location-input {
        width: 100%;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 13px 14px;
        box-sizing: border-box;
        font: inherit;
        font-weight: 650;
        color: #0f172a;
        background: #fff;
    }

    .location-input:focus {
        outline: 0;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    }

    .location-help {
        margin: 10px 0 0;
        border: 1px solid #fed7aa;
        background: #fff7ed;
        color: #9a3412;
        border-radius: 12px;
        padding: 12px;
        font-size: 0.8rem;
        line-height: 1.45;
        font-weight: 800;
    }

    .location-gps-status {
        margin-top: 10px;
        font-size: 0.78rem;
        font-weight: 850;
        color: #64748b;
    }

    .location-gps-status.ok { color: #047857; }
    .location-gps-status.warn { color: #b45309; }
    .location-gps-status.error { color: #dc2626; }

    .locations-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
        gap: 18px;
        margin-top: 22px;
    }

    .location-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 20px;
        position: relative;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    }

    .location-card.is-default {
        border-color: var(--primary);
        background: linear-gradient(180deg, rgba(79, 70, 229, 0.06), #fff 42%);
    }

    .location-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--primary);
        color: #fff;
        border-radius: 999px;
        padding: 5px 10px;
        font-size: 0.68rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 12px;
    }

    .location-card-title {
        margin: 0 0 9px;
        font-size: 1.08rem;
        font-weight: 900;
        color: #0f172a;
    }

    .location-address {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin: 0 0 8px;
        color: #334155;
        font-size: 0.9rem;
        line-height: 1.45;
        font-weight: 700;
    }

    .location-muted {
        color: #64748b;
        font-size: 0.8rem;
        line-height: 1.45;
        font-weight: 650;
        margin: 0 0 6px;
    }

    .location-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        border-top: 1px solid var(--line);
        padding-top: 14px;
        margin-top: 16px;
    }

    .location-actions form {
        margin: 0;
    }

    .location-edit {
        width: 100%;
        margin-top: 12px;
        border-top: 1px dashed var(--line);
        padding-top: 14px;
    }

    .location-edit summary {
        cursor: pointer;
        list-style: none;
        font-weight: 900;
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .location-edit summary::-webkit-details-marker {
        display: none;
    }

    .empty-locations {
        border: 1px dashed var(--line);
        border-radius: 18px;
        padding: 34px 18px;
        text-align: center;
        color: #64748b;
        background: #fff;
    }

    .location-map-card {
        width: min(920px, 96vw);
        max-height: 92vh;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .location-map-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        padding: 18px 20px;
        border-bottom: 1px solid var(--line);
    }

    .location-map-canvas {
        height: min(58vh, 480px);
        min-height: 330px;
        background: #e2e8f0;
    }

    .location-map-footer {
        display: grid;
        gap: 12px;
        padding: 16px 20px 20px;
        border-top: 1px solid var(--line);
    }

    .location-map-tip {
        border: 1px solid #fed7aa;
        background: #fff7ed;
        color: #9a3412;
        border-radius: 12px;
        padding: 12px;
        font-size: 0.82rem;
        line-height: 1.45;
        font-weight: 850;
    }

    .location-map-status {
        color: #475569;
        font-size: 0.82rem;
        line-height: 1.45;
        font-weight: 800;
    }

    @media (max-width: 700px) {
        .location-panel { padding: 18px; border-radius: 16px; }
        .location-form-grid { grid-template-columns: 1fr; }
        .locations-grid { grid-template-columns: 1fr; }
        .locations-title { font-size: 1.45rem; }
        .location-actions .btn { flex: 1; justify-content: center; }
        .location-map-card { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
        .location-map-canvas { height: 62vh; min-height: 340px; }
    }

/* templates/consumidor/perfil.html */
@media (max-width: 700px) {
        .consumer-profile-grid {
            grid-template-columns: 1fr !important;
        }
    }

/* templates/consumidor/plano.html */
.plan-page-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 24px;
        align-items: start;
    }

    .plan-status-card,
    .plan-offer-card,
    .plan-checkout-card,
    .plan-how-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 24px;
    }

    .plan-status-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border-radius: 999px;
        padding: 8px 12px;
        font-size: 0.76rem;
        font-weight: 900;
        border: 1px solid;
    }

    .plan-feature-list {
        list-style: none;
        padding: 0;
        margin: 18px 0 0;
        display: grid;
        gap: 10px;
        color: #475569;
        font-weight: 700;
        font-size: 0.9rem;
    }

    .plan-feature-list i {
        color: var(--primary);
        margin-right: 8px;
    }

    @media (max-width: 860px) {
        .plan-page-grid { grid-template-columns: 1fr; }
        .plan-checkout-grid { grid-template-columns: 1fr !important; }
    }

/* templates/publico/cupom_detalhe.html */
.coupon-card {
            max-width: 400px;
            margin: 40px auto;
            background: white;
            border: 2px dashed #ccc;
            border-radius: 12px;
            padding: 24px;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        .store-name { font-size: 1.4rem; font-weight: bold; color: var(--primary); }
        .cnpj { color: #666; font-size: 0.9rem; margin-bottom: 20px; }
        .price { font-size: 2rem; font-weight: 800; margin: 20px 0; color: #333; }
        .code-box {
            background: #f8f9fa;
            border: 2px solid #333;
            padding: 15px;
            font-size: 1.8rem;
            font-family: monospace;
            font-weight: bold;
            margin: 20px 0;
            letter-spacing: 2px;
        }
        .status-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            text-transform: uppercase;
        }
        .status-ativo { background: #d4edda; color: #155724; }
        .status-usado { background: #f8d7da; color: #721c24; }
        @media print {
            .no-print { display: none; }
            body { background: white; }
            .coupon-card { box-shadow: none; margin: 0; border: 1px solid #000; }
        }

/* Protecao contra vazamento de estilos extraidos de templates especificos.
   Este arquivo e carregado globalmente; regras antigas de body/html vindas de
   bases internas nao podem controlar o layout da home, portais ou paineis. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    display: block;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
}
