/* ========================================
   BARBERHUB MOBILE — Modern Design System 2026
   ======================================== */

/* Color system for modern mobile */
:root {
    --mobile-bg: #fafafa;
    --mobile-surface: #ffffff;
    --mobile-surface-2: #f5f5f5;
    --mobile-surface-3: #efefef;
    --mobile-text-primary: #1a1a1a;
    --mobile-text-secondary: #666666;
    --mobile-text-muted: #999999;
    --mobile-border: #e5e5e5;

    /* Modern accent colors — alinhado ao design system principal */
    --accent-primary: #ff6a1a;
    --accent-primary-light: #ff8a5b;
    --accent-primary-dark: #e55a27;
    --accent-secondary: #6366f1;
    --accent-tertiary: #8b5cf6;

    /* Semantic colors */
    --status-success: #10b981;
    --status-warning: #f59e0b;
    --status-error: #ef4444;
    --status-info: #3b82f6;

    /* Modern spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 32px;

    /* Modern border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Modern shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);

    /* Modern transitions */
    --transition-fast: 150ms cubic-bezier(0.2, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.2, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.2, 0, 0.2, 1);
}

/* ========================================
   1. TYPOGRAPHY & BASE STYLES
   ======================================== */

@media (max-width: 768px) {
    body {
        background: var(--mobile-bg);
        color: var(--mobile-text-primary);
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
        -webkit-font-smoothing: antialiased;
        -webkit-touch-callout: none;
        tap-highlight-color: transparent;
        overscroll-behavior-y: contain;
    }

    h1, h2, h3, h4, h5, h6 {
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.5px;
    }

    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.875rem; }

    p {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--mobile-text-secondary);
    }

    a {
        color: var(--accent-primary);
        text-decoration: none;
        transition: color var(--transition-fast);
    }

    a:active {
        color: var(--accent-primary-dark);
    }

    small {
        font-size: 0.875rem;
        color: var(--mobile-text-muted);
    }
}

/* ========================================
   2. CONTENT LAYOUT
   ======================================== */

@media (max-width: 768px) {
    .content {
        padding: var(--spacing-lg) var(--spacing-lg) 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .page-header {
        padding: var(--spacing-2xl) 0 var(--spacing-xl);
        border-bottom: 1px solid var(--mobile-border);
        margin-bottom: var(--spacing-xl);
    }

    .page-header h1 {
        margin: 0 0 var(--spacing-xs);
        color: var(--mobile-text-primary);
    }

    .page-header p {
        margin: 0;
        font-size: 0.95rem;
        color: var(--mobile-text-secondary);
    }

    .section {
        margin-bottom: var(--spacing-2xl);
    }

    .section-title {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--mobile-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 0 0 var(--spacing-md);
        margin-bottom: var(--spacing-md);
        border-bottom: 1px solid var(--mobile-border);
    }
}

/* ========================================
   3. CARDS & CONTAINERS
   ======================================== */

@media (max-width: 768px) {
    .card, .panel-card {
        background: var(--mobile-surface);
        border: none;
        border-radius: var(--radius-lg);
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
        box-shadow: var(--shadow-sm);
        transition: all var(--transition-base);
    }

    .card:active, .panel-card:active {
        box-shadow: var(--shadow-md);
        transform: scale(0.98);
    }

    .card:hover, .panel-card:hover {
        box-shadow: var(--shadow-md);
    }

    /* Card variants */
    .card.card-interactive {
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
    }

    .card-icon {
        width: 48px;
        height: 48px;
        border-radius: var(--radius-lg);
        background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .card-content {
        flex: 1;
        min-width: 0;
    }

    .card-title {
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 var(--spacing-xs);
        color: var(--mobile-text-primary);
    }

    .card-subtitle {
        font-size: 0.875rem;
        color: var(--mobile-text-secondary);
        margin: 0;
    }

    .card-action {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--mobile-text-muted);
        flex-shrink: 0;
    }
}

/* ========================================
   4. BUTTONS & ACTIONS
   ======================================== */

@media (max-width: 768px) {
    button, .btn, [role="button"] {
        font-family: inherit;
        font-weight: 600;
        border: none;
        cursor: pointer;
        transition: all var(--transition-base);
        touch-action: manipulation;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-sm);
    }

    button:disabled, .btn:disabled, [role="button"]:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Primary button */
    .btn-primary, button.btn-primary {
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-dark));
        color: white;
        padding: var(--spacing-md) var(--spacing-2xl);
        font-size: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }

    .btn-primary:active:not(:disabled) {
        transform: scale(0.96);
        box-shadow: var(--shadow-sm);
    }

    .btn-primary:hover:not(:disabled) {
        box-shadow: var(--shadow-lg);
    }

    /* Secondary button */
    .btn-secondary, button.btn-secondary {
        background: var(--mobile-surface-2);
        color: var(--mobile-text-primary);
        padding: var(--spacing-md) var(--spacing-2xl);
        font-size: 1rem;
        border-radius: var(--radius-md);
        border: 1px solid var(--mobile-border);
    }

    .btn-secondary:active:not(:disabled) {
        background: var(--mobile-surface-3);
    }

    /* Tertiary button */
    .btn-tertiary, button.btn-tertiary {
        background: transparent;
        color: var(--accent-primary);
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
        border-radius: var(--radius-md);
    }

    .btn-tertiary:active:not(:disabled) {
        background: rgba(255, 107, 53, 0.1);
    }

    /* Size variants */
    .btn-sm {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.875rem;
        min-height: 36px;
    }

    .btn-lg {
        width: 100%;
        padding: var(--spacing-lg) var(--spacing-2xl);
        font-size: 1.125rem;
    }

    /* Icon button */
    .btn-icon {
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        color: var(--mobile-text-secondary);
        font-size: 1.25rem;
    }

    .btn-icon:active {
        background: var(--mobile-surface-2);
    }
}

/* ========================================
   5. FORMS & INPUTS
   ======================================== */

@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    textarea,
    select {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
        font-family: inherit;
        border: 1px solid var(--mobile-border);
        border-radius: var(--radius-md);
        background: var(--mobile-surface);
        color: var(--mobile-text-primary);
        transition: all var(--transition-base);
        -webkit-appearance: none;
        appearance: none;
    }

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    input[type="password"]:focus,
    input[type="search"]:focus,
    input[type="number"]:focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: var(--accent-primary);
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
        background: var(--mobile-surface);
    }

    textarea {
        resize: vertical;
        min-height: 120px;
    }

    /* Select dropdown styling */
    select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right var(--spacing-lg) center;
        padding-right: 2.5rem;
    }

    /* Form group */
    .form-group {
        margin-bottom: var(--spacing-lg);
    }

    .form-group label {
        display: block;
        font-weight: 500;
        margin-bottom: var(--spacing-sm);
        color: var(--mobile-text-primary);
        font-size: 0.95rem;
    }

    .form-group small {
        display: block;
        margin-top: var(--spacing-xs);
        color: var(--mobile-text-muted);
    }

    .form-group.has-error input,
    .form-group.has-error textarea {
        border-color: var(--status-error);
    }

    .form-group.has-error small {
        color: var(--status-error);
    }
}

/* ========================================
   6. BOTTOM NAVIGATION — Cliente
   ======================================== */

@media (max-width: 768px) {
    .layout-cliente .cliente-topnav-links {
        display: none;
    }

    /* Cores e fundo definidos em style.css — aqui só refinamos layout */
    .cliente-bottomnav-item {
        font-size: 0.62rem;
        letter-spacing: 0.2px;
    }

    .cliente-bottomnav-label {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0 2px;
    }

    .layout-cliente .content {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px) + var(--spacing-lg));
    }
}

/* ========================================
   7. BOTTOM NAVIGATION — Gestão
   ======================================== */

@media (max-width: 768px) {
    .panel-bottomnav-item {
        font-size: 0.62rem;
        letter-spacing: 0.2px;
    }

    .panel-bottomnav-label {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0 2px;
    }

    .panel-bottomnav-more.active {
        opacity: 1;
    }

    .layout-panel--bottomnav .content {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px) + var(--spacing-lg));
    }
}

/* ========================================
   8. BOTTOM SHEET MODAL
   ======================================== */

@media (max-width: 768px) {
    .modal-bloqueio {
        align-items: flex-end;
        padding: 0;
        background: rgba(7, 7, 7, 0.45);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 1100;
    }

    .modal-bloqueio.confirm-modal,
    .confirm-modal {
        z-index: 1250;
    }

    .product-crop-modal,
    .barber-crop-modal,
    .logo-crop-modal {
        z-index: 1200;
    }

    .modal-bloqueio-box {
        width: 100%;
        max-width: none !important;
        max-height: min(92dvh, calc(100dvh - 16px));
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        padding: 0;
        border: none;
        background: var(--mobile-surface);
        overflow: hidden;
        animation: sheet-slide-up 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.22);
        display: flex;
        flex-direction: column;
    }

    .modal-bloqueio-box::before {
        content: '';
        display: block;
        height: 5px;
        width: 44px;
        background: var(--mobile-surface-2);
        margin: 10px auto 6px;
        border-radius: var(--radius-full);
        flex-shrink: 0;
    }

    .modal-bloqueio-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 4px 16px 12px;
        margin-bottom: 0;
        border-bottom: 1px solid var(--mobile-border);
        flex-shrink: 0;
    }

    .modal-bloqueio-head h2 {
        font-size: 1.0625rem;
        line-height: 1.3;
        color: var(--mobile-text-primary);
    }

    .modal-bloqueio-close {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .modal-bloqueio-body,
    .modal-bloqueio-box > form,
    .confirm-modal-box > :not(.modal-bloqueio-head):not(.confirm-modal-actions) {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 16px 16px;
    }

    .modal-bloqueio-box > form {
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .modal-bloqueio-box .form-row {
        grid-template-columns: 1fr;
    }

    .modal-bloqueio-box .form-group input,
    .modal-bloqueio-box .form-group textarea,
    .modal-bloqueio-box .form-group select {
        font-size: 16px;
        min-height: 48px;
    }

    .modal-bloqueio-foot,
    .modal-bloqueio-box .form-actions,
    .confirm-modal-actions {
        display: flex;
        flex-direction: column-reverse;
        gap: 10px;
        flex-shrink: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        border-top: 1px solid var(--mobile-border);
        background: var(--mobile-surface);
    }

    .modal-bloqueio-foot button,
    .modal-bloqueio-box .form-actions .btn,
    .confirm-modal-actions .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        margin: 0;
    }

    .confirm-modal-message {
        margin: 0 0 8px;
        padding: 0 16px;
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .confirm-modal-hint {
        margin: 0 0 4px;
        padding: 0 16px;
        font-size: 0.8125rem;
    }

    .confirm-modal-actions {
        flex-direction: column-reverse;
    }

    .product-crop-modal .modal-bloqueio-box,
    .barber-crop-modal .modal-bloqueio-box,
    .logo-crop-modal .modal-bloqueio-box {
        max-height: min(94dvh, 100dvh);
    }

    .product-crop-viewport,
    .barber-crop-viewport,
    .logo-crop-viewport {
        height: min(52vh, 360px);
    }

    body.modal-open {
        overflow: hidden;
    }

    @keyframes sheet-slide-up {
        from { transform: translateY(100%); opacity: 0.9; }
        to { transform: translateY(0); opacity: 1; }
    }

    @media (prefers-reduced-motion: reduce) {
        .modal-bloqueio-box {
            animation: none;
        }
    }
}

/* ========================================
   9. ALERTS & NOTIFICATIONS
   ======================================== */

@media (max-width: 768px) {
    .flash {
        margin-bottom: var(--spacing-lg);
        padding: var(--spacing-lg);
        border-radius: var(--radius-md);
        border-left: 4px solid;
        font-weight: 500;
        display: flex;
        align-items: flex-start;
        gap: var(--spacing-md);
        font-size: 0.95rem;
    }

    .flash-success {
        background: rgba(16, 185, 129, 0.08);
        border-left-color: var(--status-success);
        color: #047857;
    }

    .flash-warning {
        background: rgba(245, 158, 11, 0.08);
        border-left-color: var(--status-warning);
        color: #92400e;
    }

    .flash-error {
        background: rgba(239, 68, 68, 0.08);
        border-left-color: var(--status-error);
        color: #991b1b;
    }

    .flash-info {
        background: rgba(59, 130, 246, 0.08);
        border-left-color: var(--status-info);
        color: #1e40af;
    }

    .flash-panel {
        border: none;
    }
}

/* ========================================
   10. TYPOGRAPHY & ACCENTS
   ======================================== */

@media (max-width: 768px) {
    /* Search bar / Input focused state */
    .search-input {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
        border: 2px solid var(--mobile-border);
        border-radius: var(--radius-lg);
        background: var(--mobile-surface);
        transition: all var(--transition-base);
    }

    .search-input:focus {
        outline: none;
        border-color: var(--accent-primary);
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    }

    /* Badge */
    .badge {
        display: inline-block;
        padding: var(--spacing-xs) var(--spacing-sm);
        border-radius: var(--radius-full);
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .badge-primary {
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-dark));
        color: white;
    }

    .badge-secondary {
        background: var(--mobile-surface-2);
        color: var(--mobile-text-primary);
    }

    .badge-success {
        background: rgba(16, 185, 129, 0.15);
        color: #047857;
    }

    .badge-warning {
        background: rgba(245, 158, 11, 0.15);
        color: #92400e;
    }

    /* Chip / Tag */
    .chip {
        display: inline-flex;
        align-items: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) var(--spacing-lg);
        border-radius: var(--radius-full);
        background: var(--mobile-surface-2);
        color: var(--mobile-text-primary);
        font-size: 0.9rem;
        font-weight: 500;
        border: 1px solid var(--mobile-border);
        transition: all var(--transition-base);
    }

    .chip:active {
        background: var(--accent-primary);
        color: white;
        border-color: var(--accent-primary);
    }

    .chip.is-active {
        background: var(--accent-primary);
        color: white;
        border-color: var(--accent-primary);
    }
}

/* ========================================
   11. LISTS & TABLES
   ======================================== */

@media (max-width: 768px) {
    /* List items */
    .list-item, .table-row {
        display: flex;
        align-items: center;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
        border-bottom: 1px solid var(--mobile-border);
        transition: background var(--transition-fast);
    }

    .list-item:last-child, .table-row:last-child {
        border-bottom: none;
    }

    .list-item:active {
        background: var(--mobile-surface-2);
    }

    .list-item.highlighted {
        background: rgba(255, 107, 53, 0.05);
    }

    /* Table styling */
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: var(--spacing-2xl);
    }

    table thead th {
        padding: var(--spacing-md) var(--spacing-lg);
        text-align: left;
        font-weight: 600;
        font-size: 0.875rem;
        background: var(--mobile-surface-2);
        border-bottom: 2px solid var(--mobile-border);
        color: var(--mobile-text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    table tbody td {
        padding: var(--spacing-lg);
        border-bottom: 1px solid var(--mobile-border);
        color: var(--mobile-text-primary);
    }

    table tbody tr {
        transition: background var(--transition-fast);
    }

    table tbody tr:hover {
        background: var(--mobile-surface-2);
    }
}

/* ========================================
   12. EMPTY STATES & LOADING
   ======================================== */

@media (max-width: 768px) {
    .empty-state {
        text-align: center;
        padding: calc(var(--spacing-3xl) * 1.5) var(--spacing-lg);
    }

    .empty-state-icon {
        font-size: 3.5rem;
        margin-bottom: var(--spacing-lg);
        opacity: 0.3;
    }

    .empty-state-title {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: var(--spacing-sm);
        color: var(--mobile-text-primary);
    }

    .empty-state-text {
        color: var(--mobile-text-secondary);
        margin-bottom: var(--spacing-2xl);
    }

    /* Skeleton loader */
    .skeleton {
        background: linear-gradient(
            90deg,
            var(--mobile-surface-2) 0%,
            var(--mobile-surface-3) 50%,
            var(--mobile-surface-2) 100%
        );
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s infinite;
        border-radius: var(--radius-md);
    }

    @keyframes skeleton-loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    .skeleton-line {
        height: 12px;
        border-radius: var(--radius-sm);
        margin-bottom: var(--spacing-sm);
    }

    .skeleton-circle {
        width: 48px;
        height: 48px;
        border-radius: 50%;
    }
}

/* ========================================
   13. SCROLLBAR & UTILITIES
   ======================================== */

@media (max-width: 768px) {
    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.25);
    }

    /* Utility classes */
    .text-center { text-align: center; }
    .text-right { text-align: right; }
    .text-left { text-align: left; }

    .text-primary { color: var(--accent-primary); }
    .text-secondary { color: var(--mobile-text-secondary); }
    .text-muted { color: var(--mobile-text-muted); }

    .text-sm { font-size: 0.875rem; }
    .text-lg { font-size: 1.125rem; }
    .text-xl { font-size: 1.25rem; }

    .mt-1 { margin-top: var(--spacing-sm); }
    .mt-2 { margin-top: var(--spacing-md); }
    .mt-3 { margin-top: var(--spacing-lg); }
    .mt-4 { margin-top: var(--spacing-xl); }

    .mb-1 { margin-bottom: var(--spacing-sm); }
    .mb-2 { margin-bottom: var(--spacing-md); }
    .mb-3 { margin-bottom: var(--spacing-lg); }
    .mb-4 { margin-bottom: var(--spacing-xl); }

    .p-1 { padding: var(--spacing-sm); }
    .p-2 { padding: var(--spacing-md); }
    .p-3 { padding: var(--spacing-lg); }
    .p-4 { padding: var(--spacing-xl); }

    .rounded { border-radius: var(--radius-md); }
    .rounded-lg { border-radius: var(--radius-lg); }

    .gap-1 { gap: var(--spacing-sm); }
    .gap-2 { gap: var(--spacing-md); }
    .gap-3 { gap: var(--spacing-lg); }
}

/* ========================================
   14. ANIMATIONS & TRANSITIONS
   ======================================== */

@media (max-width: 768px) {
    @media (prefers-reduced-motion: reduce) {
        * {
            animation: none !important;
            transition: none !important;
        }
    }

    /* Fade in animation */
    @keyframes fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Slide up animation */
    @keyframes slide-up {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Pulse animation */
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }

    .animate-fade-in { animation: fade-in 300ms ease-out; }
    .animate-slide-up { animation: slide-up 400ms ease-out; }
    .animate-pulse { animation: pulse 2s ease-in-out infinite; }
}

/* ========================================
   15. SAFE AREA & RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .app-topnav {
        padding-top: env(safe-area-inset-top, 0px);
        height: calc(64px + env(safe-area-inset-top, 0px));
    }

    .safe-area-top { padding-top: env(safe-area-inset-top, 0px); }
    .safe-area-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }
    .safe-area-left { padding-left: env(safe-area-inset-left, 0px); }
    .safe-area-right { padding-right: env(safe-area-inset-right, 0px); }
}

/* ========================================
   16. SEARCH FIELDS — Cliente Explore
   ======================================== */

@media (max-width: 768px) {
    /* Main search container */
    .cliente-explore-search {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
        padding: var(--spacing-2xl);
        background: var(--mobile-surface);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        margin-bottom: var(--spacing-2xl);
    }

    /* Search label */
    .cliente-explore-search-label {
        display: block;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--mobile-text-primary);
        text-transform: none;
        letter-spacing: 0;
        margin-bottom: var(--spacing-sm);
    }

    /* Search grid layout */
    .cliente-explore-search-grid {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: stretch;
    }

    /* Individual search field */
    .cliente-explore-field {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
        padding: var(--spacing-md) var(--spacing-lg);
        border: 2px solid var(--mobile-border);
        border-radius: var(--radius-md);
        background: var(--mobile-surface);
        transition: all var(--transition-base);
        position: relative;
        min-height: 48px;
    }

    /* Hover state */
    .cliente-explore-field:hover {
        border-color: var(--accent-primary-light);
        box-shadow: var(--shadow-sm);
    }

    /* Focus within (when input is focused) */
    .cliente-explore-field:focus-within {
        outline: none;
        border-color: var(--accent-primary);
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
        background: var(--mobile-surface);
    }

    /* Icon styling */
    .cliente-explore-field .icon {
        width: 24px;
        height: 24px;
        color: var(--accent-primary);
        font-size: 1.25rem;
        flex-shrink: 0;
        transition: color var(--transition-fast);
    }

    .cliente-explore-field:focus-within .icon {
        color: var(--accent-primary);
        transform: scale(1.1);
    }

    /* Input field styling */
    .cliente-explore-field input {
        flex: 1;
        min-width: 0;
        border: none;
        outline: none;
        background: transparent;
        color: var(--mobile-text-primary);
        font-size: 1.05rem;
        font-weight: 500;
        font-family: inherit;
        padding: 0;
        letter-spacing: 0;
    }

    .cliente-explore-field input::placeholder {
        color: var(--mobile-text-muted);
        font-weight: 400;
        font-size: 1rem;
    }

    /* Clear button */
    .cliente-explore-clear {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        min-width: 28px;
        flex-shrink: 0;
        background: rgba(0, 0, 0, 0.05);
        border: none;
        border-radius: var(--radius-sm);
        color: var(--mobile-text-secondary);
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        transition: all var(--transition-fast);
        padding: 0;
    }

    .cliente-explore-clear:active {
        background: rgba(0, 0, 0, 0.1);
        transform: scale(0.9);
    }

    .cliente-explore-clear:hover {
        background: rgba(255, 107, 53, 0.15);
        color: var(--accent-primary);
    }

    /* Search button */
    .cliente-explore-submit {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-2xl);
        font-size: 1.05rem;
        font-weight: 700;
        letter-spacing: 0.3px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-md);
    }

    /* Hint text */
    .cliente-explore-hint {
        font-size: 0.85rem;
        color: var(--mobile-text-secondary);
        margin-top: var(--spacing-sm);
        line-height: 1.5;
        display: block;
    }

    /* Active filters */
    .cliente-active-filters {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-2xl);
        background: rgba(255, 107, 53, 0.05);
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255, 107, 53, 0.1);
    }

    .cliente-active-filters-label {
        font-weight: 600;
        color: var(--mobile-text-secondary);
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    /* Filter chip */
    .cliente-filter-chip {
        display: inline-flex;
        align-items: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) var(--spacing-lg);
        background: var(--mobile-surface);
        border: 1px solid var(--mobile-border);
        border-radius: var(--radius-full);
        color: var(--mobile-text-primary);
        font-size: 0.9rem;
        font-weight: 500;
        text-decoration: none;
        transition: all var(--transition-base);
        cursor: pointer;
    }

    .cliente-filter-chip:active {
        background: rgba(255, 107, 53, 0.1);
        border-color: var(--accent-primary);
        color: var(--accent-primary);
    }

    .cliente-filter-chip:hover {
        border-color: var(--accent-primary);
    }

    .cliente-filter-chip span {
        margin-left: var(--spacing-xs);
        font-weight: 700;
    }

    /* Clear all filters */
    .cliente-filter-clear {
        font-size: 0.9rem;
        color: var(--accent-primary);
        font-weight: 600;
        text-decoration: none;
        transition: color var(--transition-fast);
        padding: var(--spacing-sm) 0;
        margin-left: auto;
    }

    .cliente-filter-clear:active {
        color: var(--accent-primary-dark);
    }

    /* Search field variants */
    .cliente-explore-field--search .icon { color: var(--accent-primary); }
    .cliente-explore-field--local .icon { color: var(--accent-primary); }

    /* Sort form (secondary search controls) */
    .cliente-sort-form {
        display: flex;
        align-items: center;
        gap: var(--spacing-lg);
    }

    .cliente-sort-form label {
        font-weight: 600;
        color: var(--mobile-text-secondary);
        font-size: 0.9rem;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .cliente-sort-form select {
        padding: var(--spacing-md) var(--spacing-lg);
        border: 1px solid var(--mobile-border);
        border-radius: var(--radius-md);
        background: var(--mobile-surface);
        color: var(--mobile-text-primary);
        font-size: 0.95rem;
        font-weight: 500;
        min-height: 40px;
        cursor: pointer;
        transition: all var(--transition-base);
    }

    .cliente-sort-form select:hover {
        border-color: var(--accent-primary-light);
    }

    .cliente-sort-form select:focus {
        outline: none;
        border-color: var(--accent-primary);
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    }
}

/* ========================================
   17. APP SHELL — Cliente + Gestão (mobile app-like)
   ======================================== */

@media (max-width: 768px) {
    /* Top bar com título da página */
    .app-topnav-start {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        flex: 1;
        margin-right: auto;
    }

    .app-topnav-center {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: auto;
        padding: 0 8px;
    }

    .app-topnav-title {
        display: block;
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
        letter-spacing: -0.02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: min(220px, 52vw);
    }

    .layout-cliente .cliente-topnav-brand-text {
        display: none;
    }

    .layout-cliente .app-topnav-title {
        max-width: min(260px, 58vw);
    }

    .layout-panel .topnav-menu-toggle {
        flex-shrink: 0;
    }

    .layout-panel .app-topnav-center {
        justify-content: flex-start;
        margin-left: 4px;
    }

    .layout-panel .app-topnav-title {
        max-width: min(200px, 46vw);
    }

    /* Padding correto abaixo da top bar fixa */
    .layout-panel .content {
        padding-top: calc(var(--topnav-h, 64px) + env(safe-area-inset-top, 0px) + 12px) !important;
    }

    .layout-cliente .content {
        padding-top: calc(var(--topnav-h, 64px) + env(safe-area-inset-top, 0px) + 8px) !important;
    }

    /* Page header compacto — título vai para a top bar */
    .page-header--app {
        padding: 0 0 var(--spacing-lg);
        margin-bottom: var(--spacing-md);
        border-bottom: none;
    }

    .page-header--app > div:first-child h1 {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .page-header--app .page-subtitle {
        font-size: 0.9rem;
        margin-top: 0;
    }

    .page-header--app.page-header--with-actions {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .page-header--app .page-header-actions {
        width: 100%;
    }

    .page-header--app .page-header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Hero do painel mais compacto no mobile */
    .layout-panel .panel-hero {
        padding: 14px 16px;
        margin-bottom: 12px;
        border-radius: var(--radius-lg);
    }

    .layout-panel .panel-hero-main {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .layout-panel .panel-hero-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .layout-panel .panel-hero-main > div > p,
    .layout-panel .panel-hero-tags,
    .layout-panel .panel-hero-side {
        display: none;
    }

    /* Dashboard: manter só o número de agendamentos de hoje */
    .layout-panel .panel-hero--dashboard {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .layout-panel .panel-hero--dashboard .panel-hero-side--today {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        min-width: 84px;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(255, 106, 26, 0.1);
        color: var(--mobile-text-primary);
        text-align: right;
    }

    .layout-panel .panel-hero--dashboard .panel-hero-side--today small {
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--mobile-text-muted);
    }

    .layout-panel .panel-hero--dashboard .panel-hero-side--today strong {
        font-size: 1.55rem;
        line-height: 1;
        color: var(--accent-primary);
    }

    .layout-panel .panel-hero--dashboard .panel-hero-side--today span {
        display: none;
    }

    .layout-panel .stats-grid--dashboard .stat-box:not(.stat-box--today),
    .layout-panel .stats-grid--panel,
    .layout-panel .stats-grid:not(.stats-grid--dashboard) {
        display: none;
    }

    .layout-panel .stats-grid--dashboard {
        display: none;
    }

    /* Painel mobile limpo: sem eyebrow/contadores extras */
    .layout-panel .panel-eyebrow,
    .layout-panel .card-meta,
    .layout-panel .agenda-card-meta,
    .layout-panel .panel-card-subtitle,
    .layout-panel .page-header--app .page-subtitle {
        display: none;
    }

    .layout-panel .card-header {
        padding-bottom: 10px;
    }

    .layout-panel .card-header h2 {
        margin: 0;
        font-size: 1.05rem;
    }

    .layout-panel .dashboard-quick-actions {
        display: none;
    }

    .layout-panel .dashboard-section-heading .panel-eyebrow {
        display: none;
    }

    .panel-mobile-actions {
        display: flex;
        gap: 8px;
        margin-bottom: 12px;
    }

    .panel-mobile-actions .btn {
        flex: 1;
        justify-content: center;
        min-height: 44px;
    }

    .panel-filter-trigger {
        position: relative;
    }

    .panel-filter-badge {
        display: inline-grid;
        place-items: center;
        min-width: 18px;
        height: 18px;
        margin-left: 6px;
        padding: 0 5px;
        border-radius: 999px;
        background: var(--accent-primary);
        color: #fff;
        font-size: 0.68rem;
        font-weight: 800;
    }

    .agenda-filters-inline {
        display: none !important;
    }

    .panel-active-filters {
        margin-bottom: 12px;
    }

    .modal-agenda-filtros-form .form-group {
        margin-bottom: 12px;
    }

    .modal-agenda-filtros-form .btn-block {
        width: 100%;
        justify-content: center;
    }

    .layout-panel .panel-hero-title h2 {
        font-size: 1.05rem;
        margin: 0;
    }

    .layout-panel .panel-hero .panel-eyebrow {
        display: none;
    }

    /* Toolbar sticky e empilhada */
    .layout-panel .toolbar {
        position: sticky;
        top: calc(var(--topnav-h, 64px) + env(safe-area-inset-top, 0px));
        z-index: 25;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin: 0 calc(-1 * var(--spacing-lg)) var(--spacing-lg);
        padding: var(--spacing-md) var(--spacing-lg);
        background: rgba(250, 250, 250, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--mobile-border);
        box-shadow: var(--shadow-sm);
    }

    .layout-panel .toolbar-search {
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
        width: 100%;
    }

    .layout-panel .toolbar-search .form-group {
        min-width: 0;
        width: 100%;
    }

    .layout-panel .toolbar > .btn-primary[data-modal-open],
    .layout-panel .toolbar--has-fab > .btn-primary[data-modal-open] {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .layout-panel .panel-view-toggle {
        display: none;
    }

    /* FAB para ações principais */
    .app-fab {
        position: fixed;
        right: 16px;
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        z-index: 35;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 56px;
        height: 56px;
        padding: 0 18px;
        border: none;
        border-radius: var(--radius-full);
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-dark));
        color: #fff;
        font-size: 0.95rem;
        font-weight: 700;
        box-shadow: 0 8px 24px rgba(255, 107, 53, 0.45);
        cursor: pointer;
        transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    }

    .app-fab:active {
        transform: scale(0.94);
    }

    .app-fab .icon {
        flex-shrink: 0;
    }

    .app-fab-label {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Cards de listagem mais táteis */
    .layout-panel [data-panel-view="cards"] .panel-card,
    .layout-cliente .cliente-shop-card,
    .layout-cliente .appointment-card {
        border-radius: var(--radius-lg);
    }

    .layout-cliente .cliente-shop-card {
        overflow: hidden;
    }

    .layout-cliente .cliente-shop-actions .btn {
        min-height: 44px;
    }

    /* Filtros horizontais com scroll */
    .filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 calc(-1 * var(--spacing-lg)) var(--spacing-lg);
        padding: 0 var(--spacing-lg) var(--spacing-sm);
    }

    .filter-chips::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        flex-shrink: 0;
    }
}

@media (min-width: 769px) {
    .app-topnav-title,
    .app-topnav-center {
        display: none;
    }

    .layout-cliente .cliente-topnav-brand-text {
        display: inline;
    }

    .page-header--app > div:first-child h1 {
        position: static;
        width: auto;
        height: auto;
        margin: 0 0 var(--spacing-xs);
        overflow: visible;
        clip: auto;
        white-space: normal;
    }
}

/* ========================================
   18. CLIENTE EXPLORE SEARCH
   ======================================== */

@media (max-width: 768px) {
    .cliente-market-hero-wrap {
        margin-bottom: 12px;
    }

    .cliente-market-hero-wrap .cliente-market-hero {
        min-height: 0;
        padding: 18px 18px 46px;
        margin-bottom: 0;
    }

    .cliente-market-hero-wrap .cliente-market-hero h1 {
        font-size: 1.45rem;
    }

    .cliente-market-hero-wrap .cliente-market-hero p {
        font-size: .9rem;
    }

    /* Botões de convidado: largura total para não cortar o texto */
    .cliente-market-guest-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .cliente-market-guest-actions .btn {
        flex: 0 0 auto;
        width: 100%;
        min-height: 46px;
        padding-inline: 16px;
        white-space: normal;
        text-align: center;
    }

    .cliente-explore-search-panel .cliente-explore-search {
        padding: 14px;
        border-radius: var(--radius-lg);
    }

    .cliente-explore-search-panel {
        width: calc(100% - 16px);
        margin: -30px auto 0;
    }

    .cliente-explore-search-head {
        margin-bottom: 10px;
    }

    .cliente-explore-search-head > .icon {
        display: none;
    }

    .cliente-explore-search-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .cliente-explore-field--tipo select {
        min-height: 24px;
        font-size: 1rem;
    }

    .cliente-explore-field-wrap {
        width: 100%;
    }

    .cliente-explore-field-label {
        font-size: .72rem;
    }

    .cliente-explore-submit {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .cliente-shop-cover {
        height: 150px;
    }

    .cliente-shop-actions {
        grid-template-columns: 1fr;
    }

    .cliente-shop-actions .btn {
        min-height: 44px;
    }

    .cliente-explore-suggest {
        max-height: min(50vh, 320px);
        border-radius: var(--radius-md);
    }

    .cliente-explore-suggest-item {
        min-height: 48px;
        padding: 12px;
    }

    .cliente-explore-quick,
    .cliente-explore-recent-searches {
        padding: 0 2px;
    }

    .cliente-explore-quick-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .cliente-explore-quick-chips::-webkit-scrollbar {
        display: none;
    }

    .cliente-explore-quick-chip {
        flex-shrink: 0;
    }

    .cliente-market-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cliente-sort-form {
        width: 100%;
        justify-content: space-between;
    }

    .cliente-sort-form select {
        flex: 1;
        min-height: 44px;
    }

    /* Explore com navegação de aplicativo */
    body.cliente-explore-search-open {
        overflow: hidden;
    }

    .cliente-market-hero-wrap .cliente-market-hero {
        padding-bottom: 18px;
    }

    .cliente-explore-search-panel {
        position: fixed;
        inset: 0;
        z-index: 100;
        display: block;
        width: auto;
        margin: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .cliente-explore-search-panel.is-open {
        visibility: visible;
        pointer-events: auto;
    }

    .cliente-explore-search-backdrop {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        border: 0;
        background: rgba(7, 7, 7, .58);
        opacity: 0;
        transition: opacity .2s ease;
    }

    .cliente-explore-search-panel.is-open .cliente-explore-search-backdrop {
        opacity: 1;
    }

    .cliente-explore-search-sheet {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        max-height: min(90dvh, 760px);
        padding: 10px 14px calc(18px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        border-radius: 24px 24px 0 0;
        background: var(--mobile-surface);
        box-shadow: 0 -20px 60px rgba(0, 0, 0, .24);
        transform: translateY(105%);
        transition: transform .25s ease;
    }

    .cliente-explore-search-panel.is-open .cliente-explore-search-sheet {
        transform: translateY(0);
    }

    .cliente-explore-search-sheet::before {
        content: '';
        width: 38px;
        height: 4px;
        margin: 0 auto 8px;
        border-radius: 999px;
        background: #d6d9de;
        flex: 0 0 auto;
    }

    .cliente-explore-search-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 2px 2px 10px;
    }

    .cliente-explore-search-mobile-head > div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .cliente-explore-search-mobile-head span {
        color: var(--mobile-text-muted);
        font-size: .72rem;
        font-weight: 700;
    }

    .cliente-explore-search-mobile-head strong {
        color: var(--mobile-text-primary);
        font-size: 1.15rem;
        letter-spacing: -.02em;
    }

    .cliente-explore-search-close {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
        border: 0;
        border-radius: 50%;
        background: var(--mobile-surface-2);
        color: var(--mobile-text-primary);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .layout-cliente .cliente-explore-search-panel .cliente-explore-search {
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .cliente-explore-search-panel .cliente-explore-search-head,
    .cliente-explore-search-panel .cliente-explore-hint {
        display: none;
    }

    .cliente-explore-search-panel .cliente-explore-recent-searches {
        margin-top: 4px;
        padding-top: 12px;
        border-top: 1px solid var(--mobile-border);
    }

    .cliente-type-catalog {
        display: block;
        margin: 18px 0 22px;
    }

    .cliente-type-catalog-head {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }

    .cliente-type-catalog-head span {
        display: block;
        margin-bottom: 2px;
        color: var(--accent-primary);
        font-size: .7rem;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .cliente-type-catalog-head h2 {
        margin: 0;
        color: var(--mobile-text-primary);
        font-size: 1.18rem;
        letter-spacing: -.025em;
    }

    .cliente-type-catalog-head a {
        color: var(--accent-primary);
        font-size: .78rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .cliente-type-catalog-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 9px;
    }

    .cliente-type-card {
        display: flex;
        min-width: 0;
        min-height: 96px;
        padding: 10px 5px 8px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        border: 1px solid var(--mobile-border);
        border-radius: 16px;
        background: var(--mobile-surface);
        box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
        color: var(--mobile-text-primary);
        text-align: center;
        text-decoration: none;
    }

    .cliente-type-card:active {
        transform: scale(.97);
    }

    .cliente-type-card.is-active {
        border-color: rgba(255, 106, 26, .45);
        background: #fff7ed;
        color: #9a3412;
        box-shadow: 0 0 0 2px rgba(255, 106, 26, .10);
    }

    .cliente-type-card-icon {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: var(--mobile-surface-2);
        font-size: 1.28rem;
    }

    .cliente-type-card.is-active .cliente-type-card-icon {
        background: rgba(255, 106, 26, .13);
    }

    .cliente-type-card strong {
        display: -webkit-box;
        overflow: hidden;
        color: inherit;
        font-size: .68rem;
        line-height: 1.2;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .cliente-type-card small {
        display: none;
    }

    .cliente-type-tabs {
        position: sticky;
        top: var(--mobile-topbar-offset);
        z-index: 20;
        display: flex;
        gap: 8px;
        margin: 0 calc(-1 * var(--mobile-shell-x)) 14px;
        padding: 10px var(--mobile-shell-x);
        overflow-x: auto;
        border-block: 1px solid var(--mobile-border);
        background: rgba(248, 249, 251, .94);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        scrollbar-width: none;
    }

    .cliente-type-tabs::-webkit-scrollbar {
        display: none;
    }

    .cliente-type-tab {
        flex: 0 0 auto;
        padding: 9px 14px;
        border: 1px solid var(--mobile-border);
        border-radius: 999px;
        background: var(--mobile-surface);
        color: var(--mobile-text-secondary);
        font-size: .76rem;
        font-weight: 800;
        text-decoration: none;
        white-space: nowrap;
    }

    .cliente-type-tab.is-active {
        border-color: var(--accent-primary);
        background: var(--accent-primary);
        color: #fff;
        box-shadow: 0 6px 16px rgba(255, 106, 26, .2);
    }
}

/* ========================================
   19. MOBILE STANDARDIZATION — shell unificado
   ======================================== */

@media (max-width: 768px) {
    :root {
        --mobile-shell-x: 16px;
        --mobile-shell-top: 12px;
        --mobile-bottomnav-offset: calc(70px + env(safe-area-inset-bottom, 0px) + 16px);
        --mobile-topbar-offset: calc(var(--topnav-h, 64px) + env(safe-area-inset-top, 0px));
    }

    body {
        font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    .layout-cliente .content,
    .layout-panel .content {
        padding-left: var(--mobile-shell-x) !important;
        padding-right: var(--mobile-shell-x) !important;
    }

    .layout-cliente .content {
        padding-top: calc(var(--mobile-topbar-offset) + var(--mobile-shell-top)) !important;
        padding-bottom: var(--mobile-bottomnav-offset) !important;
    }

    .layout-panel .content {
        padding-top: calc(var(--mobile-topbar-offset) + var(--mobile-shell-top)) !important;
        padding-bottom: var(--mobile-bottomnav-offset) !important;
    }

    .layout-panel--bottomnav .content {
        padding-bottom: var(--mobile-bottomnav-offset) !important;
    }

    /* Tipografia de seção */
    .cliente-market-meta h2,
    .cliente-recent-head h2,
    .appointments-section-head h2,
    .panel-card .card-header h2 {
        font-size: 1.125rem;
        letter-spacing: -0.02em;
    }

    .cliente-market-meta p,
    .cliente-recent-head p,
    .page-header--app .page-subtitle,
    .page-subtitle {
        font-size: 0.875rem;
        color: var(--mobile-text-secondary);
        line-height: 1.5;
    }

    .cliente-explore-quick-label,
    .cliente-active-filters-label,
    .cliente-sort-form label {
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--mobile-text-muted);
        text-transform: none;
        letter-spacing: 0;
    }

    /* Hero cliente — título principal fica na top bar */
    .layout-cliente .page-header--app + .cliente-market .cliente-market-hero-copy h1 {
        display: none;
    }

    .layout-cliente .cliente-market-hero-copy h1 {
        font-size: 1.35rem;
    }

    .layout-cliente .cliente-market-hero-copy p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Busca explore — tema claro consistente (corrige override escuro do style.css) */
    .layout-cliente .cliente-explore-search-panel .cliente-explore-search {
        background: var(--mobile-surface);
        border: 1px solid var(--mobile-border);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: var(--shadow-sm);
        margin-bottom: 0;
        padding: 14px;
        gap: 10px;
    }

    .layout-cliente .cliente-explore-search-panel .cliente-explore-search-label,
    .layout-cliente .cliente-explore-search-panel .cliente-explore-hint {
        color: var(--mobile-text-secondary);
        text-transform: none;
        letter-spacing: 0;
        font-weight: 600;
    }

    .layout-cliente .cliente-explore-search-panel .cliente-explore-field {
        border: 2px solid var(--mobile-border);
        background: var(--mobile-surface);
    }

    .layout-cliente .cliente-explore-search-panel .cliente-explore-field input {
        color: var(--mobile-text-primary);
        font-size: 1rem;
    }

    .layout-cliente .cliente-explore-search-panel .cliente-explore-field input::placeholder {
        color: var(--mobile-text-muted);
        opacity: 1;
    }

    .layout-cliente .cliente-explore-search-panel .cliente-explore-field .icon {
        color: var(--accent-primary);
    }

    .layout-cliente .cliente-explore-search-panel .cliente-explore-clear {
        background: var(--mobile-surface-2);
        color: var(--mobile-text-secondary);
    }

    .layout-cliente .cliente-explore-search-panel .cliente-explore-clear:hover {
        background: rgba(255, 106, 26, 0.12);
        color: var(--accent-primary);
    }

    .layout-cliente .cliente-explore-search-panel .cliente-explore-quick-chip {
        border: 1px solid var(--mobile-border);
        background: var(--mobile-surface);
        color: var(--mobile-text-primary);
    }

    .layout-cliente .cliente-explore-search-panel .cliente-explore-quick-chip:hover {
        border-color: var(--accent-primary-light);
        background: #fff7ed;
        color: #9a3412;
    }

    .layout-cliente .cliente-explore-search-panel .cliente-explore-quick-chip--muted {
        background: var(--mobile-surface-2);
    }

    /* Marketplace — cards centralizados no mobile */
    .layout-cliente .cliente-shop-grid,
    .layout-cliente .cliente-recent-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        overflow-x: visible;
        grid-auto-flow: unset;
        grid-auto-columns: unset;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .layout-cliente .cliente-shop-grid .cliente-shop-card,
    .layout-cliente .cliente-recent-grid .cliente-shop-card {
        width: 100%;
        max-width: 420px;
        scroll-snap-align: unset;
    }

    /* Cards */
    .card,
    .panel-card,
    .cliente-shop-card,
    .appointment-card {
        border: 1px solid var(--mobile-border);
        box-shadow: var(--shadow-sm);
    }

    .panel-card:active,
    .card:active {
        transform: none;
    }

    .cliente-shop-card[data-card-href],
    .cliente-shop-card.cliente-shop-card--recent {
        cursor: default;
    }

    /* Agenda cliente */
    .layout-cliente .appointments-overview {
        padding: 16px;
        gap: 14px;
    }

    .layout-cliente .appointments-overview h2 {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .layout-cliente .appointments-overview .btn {
        width: 100%;
        justify-content: center;
    }

    .appointments-empty,
    .empty-state {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
        border: 1px dashed var(--mobile-border);
        background: var(--mobile-surface);
    }

    .appointments-empty strong,
    .empty-state strong {
        font-size: 0.98rem;
        color: var(--mobile-text-primary);
    }

    .appointments-empty p,
    .empty-state p {
        font-size: 0.875rem;
        color: var(--mobile-text-secondary);
    }

    /* Top bar */
    .app-topnav {
        height: calc(var(--topnav-h, 64px) + env(safe-area-inset-top, 0px));
    }

    .layout-cliente .app-topnav {
        height: calc(var(--topnav-h, 64px) + env(safe-area-inset-top, 0px));
    }
}

/* ========================================
   20. NOTIFICAÇÕES — mobile app-like
   ======================================== */

@media (max-width: 768px) {
    .topnav-notifications-backdrop,
    .topnav-notifications-backdrop--layer {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1400;
        background: rgba(7, 7, 7, 0.45);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        opacity: 0;
        transition: opacity 0.25s ease;
        pointer-events: none;
        touch-action: none;
    }

    .topnav-notifications-backdrop:not([hidden]),
    .topnav-notifications-backdrop--layer:not([hidden]) {
        opacity: 1;
        pointer-events: auto;
    }

    .topnav-notifications-panel,
    .topnav-notifications-panel--layer {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        max-height: min(88vh, calc(100dvh - 12px));
        border: none;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.22);
        transform: translateY(105%);
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1410;
        display: flex;
        flex-direction: column;
        background: #fff;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .topnav-notifications-panel.is-open,
    .topnav-notifications-panel--layer.is-open {
        transform: translateY(0);
    }

    .topnav-notifications-panel[hidden],
    .topnav-notifications-panel--layer[hidden] {
        display: none !important;
    }

    .topnav-notifications-sheet-handle {
        display: block;
        width: 44px;
        height: 5px;
        margin: 10px auto 2px;
        border-radius: 999px;
        background: #d4d4d8;
        flex-shrink: 0;
    }

    .topnav-notifications-head {
        position: relative;
        padding: 8px 16px 12px;
        flex-shrink: 0;
    }

    .topnav-notifications-head strong {
        font-size: 1rem;
        padding-right: 36px;
    }

    .topnav-notifications-subtitle {
        font-size: 0.8125rem;
        margin-top: 4px;
    }

    .topnav-notifications-close {
        display: grid;
        place-items: center;
        position: absolute;
        top: 6px;
        right: 10px;
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 999px;
        background: #f1f5f9;
        color: #64748b;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
    }

    .topnav-notifications-close:active {
        background: #e2e8f0;
        transform: scale(0.94);
    }

    .topnav-notifications-browser {
        margin-top: 8px;
        min-height: 36px;
    }

    .topnav-notifications-toolbar {
        flex-shrink: 0;
        padding: 10px 12px 12px;
        gap: 12px;
    }

    .topnav-notifications-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding-bottom: 2px;
    }

    .topnav-notifications-tabs::-webkit-scrollbar {
        display: none;
    }

    .topnav-notifications-tabs button {
        flex-shrink: 0;
        min-height: 36px;
        padding: 8px 14px;
        font-size: 0.8125rem;
    }

    .topnav-notifications-actions {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding-bottom: 2px;
    }

    .topnav-notifications-actions::-webkit-scrollbar {
        display: none;
    }

    .topnav-notifications-action {
        flex-shrink: 0;
        min-height: 36px;
        padding: 8px 12px;
        border: 1px solid var(--mobile-border);
        border-radius: 999px;
        background: var(--mobile-surface-2);
        font-size: 0.75rem;
        text-decoration: none;
    }

    .topnav-notifications-action:active {
        background: #fff7ed;
        border-color: rgba(255, 106, 26, 0.25);
        color: var(--accent-primary);
    }

    .topnav-notifications-action-danger:active {
        background: #fef2f2;
        border-color: #fecaca;
        color: #dc2626;
    }

    .topnav-notifications-list {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .topnav-notification-item {
        align-items: stretch;
    }

    .topnav-notification-link {
        padding: 14px 8px 14px 16px;
    }

    .topnav-notification-link strong {
        font-size: 0.9375rem;
    }

    .topnav-notification-link span {
        font-size: 0.8125rem;
    }

    .topnav-notification-actions {
        flex-direction: column;
        justify-content: center;
        padding-right: 12px;
        gap: 6px;
    }

    .topnav-notification-action {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .topnav-notifications-empty {
        padding: 32px 20px;
        font-size: 0.875rem;
    }

    .topnav-notifications-badge {
        top: 4px;
        right: 4px;
        min-width: 18px;
        height: 18px;
        font-size: 0.6875rem;
    }

    /* Popups in-app — banner abaixo da top bar */
    .app-notification-popup-stack {
        top: calc(var(--mobile-topbar-offset, 64px) + 8px) !important;
        bottom: auto !important;
        left: var(--mobile-shell-x, 12px) !important;
        right: var(--mobile-shell-x, 12px) !important;
        width: auto !important;
        z-index: 1390 !important;
        gap: 8px;
        max-height: none;
        overflow: visible;
        pointer-events: none;
    }

    body.notifications-panel-open .app-notification-popup-stack {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .app-notification-popup {
        border-radius: 16px;
        padding: 12px 12px 14px;
        gap: 10px;
        align-items: center;
        border-color: rgba(255, 106, 26, 0.22);
        box-shadow:
            0 10px 32px rgba(15, 23, 42, 0.16),
            0 0 0 1px rgba(255, 106, 26, 0.08);
        transform: translateY(-14px) scale(0.98);
        touch-action: pan-y;
    }

    .app-notification-popup.is-visible {
        transform: translateY(0) scale(1);
    }

    .app-notification-popup.is-leaving {
        transform: translateY(-10px) scale(0.98);
    }

    .app-notification-popup-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 1.05rem;
    }

    .app-notification-popup-label {
        font-size: 0.625rem;
    }

    .app-notification-popup-title {
        font-size: 0.9375rem;
        line-height: 1.35;
    }

    .app-notification-popup-message {
        font-size: 0.8125rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .app-notification-popup-close {
        width: 40px;
        height: 40px;
        min-width: 40px;
        display: grid;
        place-items: center;
        font-size: 1.35rem;
        flex-shrink: 0;
    }

    .app-notification-popup-close:active {
        background: #fff1e6;
        color: #c2410c;
    }

    .app-notification-popup-progress {
        height: 2px;
        background: var(--accent-primary, #ff6a1a);
    }

    body.notifications-panel-open {
        overflow: hidden;
        touch-action: none;
    }

    body.notifications-panel-open .layout-main,
    body.notifications-panel-open .content {
        touch-action: none;
    }
}

/* ========================================
   21. POPUPS MOBILE — toasts de feedback
   ======================================== */

@media (max-width: 768px) {
    .app-toast-stack {
        top: auto !important;
        right: var(--mobile-shell-x, 12px) !important;
        left: var(--mobile-shell-x, 12px) !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        z-index: 1090;
        gap: 8px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .layout-cliente .app-toast-stack,
    .layout-panel--bottomnav .app-toast-stack {
        bottom: var(--mobile-bottomnav-offset, 88px) !important;
    }

    .app-toast {
        align-items: center;
        padding: 12px 12px 14px;
        border-radius: 14px;
        box-shadow: 0 10px 32px rgba(15, 23, 42, 0.16);
        transform: translateY(12px) scale(0.98);
        touch-action: pan-y;
    }

    .app-toast.is-visible {
        transform: translateY(0) scale(1);
    }

    .app-toast.is-leaving {
        transform: translateY(8px) scale(0.98);
    }

    .app-toast-icon {
        width: 38px;
        height: 38px;
    }

    .app-toast-title {
        font-size: 0.8125rem;
    }

    .app-toast-message {
        font-size: 0.8125rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .app-toast-close {
        width: 40px;
        height: 40px;
        min-width: 40px;
        display: grid;
        place-items: center;
        font-size: 1.35rem;
        flex-shrink: 0;
    }

    .app-toast-close:active {
        background: #f1f5f9;
    }

    .app-toast-progress {
        height: 2px;
    }

    body.modal-open .app-toast-stack,
    body.modal-open .app-notification-popup-stack,
    body.notifications-panel-open .app-toast-stack,
    body.notifications-panel-open .app-notification-popup-stack {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
}

/* Explore bottom sheet: prevalece sobre a padronização global. */
@media (max-width: 768px) {
    .layout-cliente .cliente-explore-search-panel .cliente-explore-search {
        padding: 0;
        border: 0;
        box-shadow: none;
    }
}

/* Cards de catálogo do painel: conteúdo completo e ações fáceis de tocar. */
@media (max-width: 768px) {
    /* Remove o padding duplicado do card externo das páginas de listagem. */
    .layout-panel .panel-card {
        padding: 0;
    }

    .layout-panel .panel-card > .card-header {
        padding: 14px 14px 10px;
    }

    .layout-panel .panel-card > .card-body {
        padding: 12px 14px 14px;
    }

    /* O seletor de visualização fica oculto no mobile: cards são sempre exibidos.
       Precisa vencer body[data-panel-view="lista"] de style.css. */
    body[data-panel-view] .layout-panel .panel-view--list,
    body:not([data-panel-view]) .layout-panel .panel-view--list {
        display: none !important;
    }

    body[data-panel-view] .layout-panel .panel-view--cards,
    body:not([data-panel-view]) .layout-panel .panel-view--cards {
        display: block !important;
    }

    .layout-panel .service-catalog-grid,
    .layout-panel .product-catalog-grid,
    .layout-panel .barber-team-grid,
    .layout-panel .cliente-team-grid,
    .layout-panel .promo-catalog-grid,
    .layout-panel .panel-agenda-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .layout-panel .service-catalog-card,
    .layout-panel .product-catalog-card,
    .layout-panel .barber-team-card,
    .layout-panel .cliente-team-card,
    .layout-panel .promo-catalog-card,
    .layout-panel .panel-agenda-card {
        width: 100%;
        min-width: 0;
        padding: 14px;
        overflow: visible;
        gap: 12px;
        border-radius: 16px;
    }

    .layout-panel .service-catalog-main,
    .layout-panel .product-catalog-main,
    .layout-panel .barber-team-main,
    .layout-panel .cliente-team-main,
    .layout-panel .panel-agenda-card-main {
        min-width: 0;
    }

    .layout-panel .service-catalog-main h3,
    .layout-panel .service-catalog-main p,
    .layout-panel .product-catalog-main h3,
    .layout-panel .product-catalog-main p,
    .layout-panel .barber-team-title h3,
    .layout-panel .cliente-team-main h3,
    .layout-panel .promo-catalog-card h3,
    .layout-panel .promo-catalog-card p,
    .layout-panel .panel-agenda-card-main h3 {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
    }

    /* Serviço: preço, duração, promoção e badges podem quebrar sem cortar. */
    .layout-panel .service-catalog-top {
        min-width: 0;
    }

    .layout-panel .service-catalog-badges {
        min-width: 0;
        justify-content: flex-end;
    }

    .layout-panel .service-promo-badge,
    .layout-panel .service-catalog-badges .badge {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .layout-panel .service-catalog-pricing,
    .layout-panel .product-catalog-meta {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .layout-panel .service-price-wrap,
    .layout-panel .service-catalog-pricing > *,
    .layout-panel .product-catalog-meta > * {
        min-width: 0;
    }

    .layout-panel .service-catalog-duration {
        min-height: 28px;
        padding: 5px 8px;
        border-radius: 999px;
        background: var(--mobile-surface-2);
        white-space: normal;
    }

    .layout-panel .service-promo-meta {
        align-items: flex-start;
        min-width: 0;
    }

    .layout-panel .service-promo-meta .icon {
        margin-top: 1px;
        flex: 0 0 auto;
    }

    .layout-panel .service-promo-meta span {
        min-width: 0;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    /* Metadados longos de equipe, clientes e agenda. */
    .layout-panel .barber-team-title {
        min-width: 0;
        flex-wrap: wrap;
    }

    .layout-panel .barber-team-title h3 {
        min-width: 0;
        flex: 1 1 140px;
    }

    .layout-panel .barber-team-meta span,
    .layout-panel .cliente-team-meta span,
    .layout-panel .cliente-team-stats span,
    .layout-panel .panel-agenda-card-meta span {
        display: flex;
        align-items: flex-start;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
    }

    .layout-panel .barber-team-meta .icon,
    .layout-panel .cliente-team-meta .icon,
    .layout-panel .panel-agenda-card-meta .icon {
        margin-top: 1px;
        flex: 0 0 auto;
    }

    /* Ações em grade, com largura previsível e alvo de toque adequado. */
    .layout-panel .service-catalog-actions,
    .layout-panel .product-catalog-actions,
    .layout-panel .barber-team-actions,
    .layout-panel .cliente-team-actions,
    .layout-panel .promo-catalog-card-actions,
    .layout-panel .panel-agenda-card-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .layout-panel .service-catalog-actions > *,
    .layout-panel .product-catalog-actions > *,
    .layout-panel .barber-team-actions > *,
    .layout-panel .cliente-team-actions > *,
    .layout-panel .promo-catalog-card-actions > *,
    .layout-panel .panel-agenda-card-actions > * {
        min-width: 0;
        width: 100%;
        margin: 0;
    }

    .layout-panel .service-catalog-actions > :only-child,
    .layout-panel .product-catalog-actions > :only-child,
    .layout-panel .barber-team-actions > :only-child,
    .layout-panel .cliente-team-actions > :only-child,
    .layout-panel .promo-catalog-card-actions > :only-child,
    .layout-panel .panel-agenda-card-actions > :only-child {
        grid-column: 1 / -1;
    }

    .layout-panel .service-catalog-actions .btn,
    .layout-panel .product-catalog-actions .btn,
    .layout-panel .barber-team-actions .btn,
    .layout-panel .cliente-team-actions .btn,
    .layout-panel .promo-catalog-card-actions .btn,
    .layout-panel .panel-agenda-card-actions .btn {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 8px 10px;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    /* Agenda: informações primeiro; status, preço e ações ocupam uma linha própria. */
    .layout-panel .panel-agenda-card {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .layout-panel .panel-agenda-card-date {
        min-width: 0;
        min-height: 68px;
        padding: 7px 5px;
    }

    .layout-panel .panel-agenda-card-side {
        grid-column: 1 / -1;
        min-width: 0;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px 12px;
        padding-top: 10px;
        border-top: 1px dashed var(--mobile-border);
    }

    .layout-panel .panel-agenda-card-actions {
        flex: 1 0 100%;
    }

    /* Configurações de horário seguem o mesmo padrão espaçoso. */
    .layout-panel .checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .layout-panel .schedule-config-actions .btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }
}
