
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Oswald:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
        body { font-family: 'Inter', sans-serif; }
        #login-screen {
            background: radial-gradient(ellipse at center, #1f1b36 0%, #0A0A0A 100%);
        }
        #login-screen.hidden { display: none !important; }
        #app-container.hidden { display: none !important; }
        
        .custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
        .custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
        .custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
        .custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
        
        .no-scrollbar::-webkit-scrollbar { display: none; }
        .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
        
        .kanban-column { flex: 1 1 0; min-width: 220px; width: auto; min-height: 0; transition: all 0.2s ease; }
        .kanban-column.drag-over { background-color: #f1f5f9; border-color: #94a3b8; outline: 2px dashed #cbd5e1; outline-offset: -4px; border-radius: 0.5rem;}
        /* Só aplica flex quando a aba está ativa — senão sobrescreve .hidden e o funil cobre a dashboard. */
        #tab-kanban:not(.hidden) {
            display: flex;
            flex-direction: column;
        }
        #tab-kanban .kanban-board {
            flex: 1 1 auto;
            min-height: 0;
        }
        #tab-kanban .kanban-column > [id^="col-"] {
            flex: 1 1 auto;
            min-height: 0;
        }
        
        .tab-content { transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; }
        .glass-panel { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(226, 232, 240, 0.8); }
        .glass-sidebar {
            --sidebar-bg: #f3edff;
            --sidebar-tile: #e4d8ff;
            --sidebar-text: #3f3356;
            --sidebar-muted: #7c6f96;
            --sidebar-icon: #5b4a78;
            background: var(--sidebar-bg);
            border: 1px solid rgba(110, 66, 255, 0.06);
            box-shadow: 0 10px 30px rgba(88, 60, 160, 0.06);
        }
        #app-container:not(.hidden) {
            background: #f7f5fc;
        }
        #app-sidebar {
            margin: 0.75rem 0 0.75rem 0.75rem;
            border-radius: 1.75rem;
            height: calc(100% - 1.5rem);
            align-self: center;
            overflow: hidden;
            width: 17.5rem;
            transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
        }
        #app-sidebar .sidebar-collapse-btn {
            display: none;
        }
        @media (min-width: 768px) {
            #app-sidebar .sidebar-collapse-btn {
                display: inline-flex;
            }
            #app-sidebar.is-collapsed {
                width: 5.25rem;
            }
            #app-sidebar.is-collapsed .sidebar-profile-card {
                padding: 0.85rem 0.5rem;
            }
            #app-sidebar.is-collapsed .sidebar-profile-card .sidebar-profile-meta,
            #app-sidebar.is-collapsed .sidebar-profile-card .sidebar-profile-footer,
            #app-sidebar.is-collapsed .sidebar-profile-card > .flex > i {
                display: none !important;
            }
            #app-sidebar.is-collapsed .sidebar-profile-card > .flex {
                justify-content: center;
            }
            #app-sidebar.is-collapsed .sidebar-nav-scroll {
                padding-left: 0.45rem;
                padding-right: 0.45rem;
            }
            #app-sidebar.is-collapsed .nav-section-label,
            #app-sidebar.is-collapsed .nav-segment-sublabel,
            #app-sidebar.is-collapsed #nav-segment-admin-preview-wrap,
            #app-sidebar.is-collapsed .nav-item-label,
            #app-sidebar.is-collapsed .nav-segment-chevron,
            #app-sidebar.is-collapsed .sidebar-logout-label,
            #app-sidebar.is-collapsed #nav-badge-chat,
            #app-sidebar.is-collapsed #nav-ai-badge {
                display: none !important;
            }
            #app-sidebar.is-collapsed .nav-item,
            #app-sidebar.is-collapsed .nav-segment-trigger {
                justify-content: center;
                gap: 0;
                padding: 0.55rem;
                margin: 0.2rem 0;
            }
            #app-sidebar.is-collapsed .nav-item-icon {
                width: 2.5rem;
                height: 2.5rem;
            }
            #app-sidebar.is-collapsed .nav-item-icon svg {
                width: 1.35rem !important;
                height: 1.35rem !important;
                stroke-width: 1.6;
            }
            /* Segmento aberto continua acessível (só ícones) quando o menu está recolhido */
            #app-sidebar.is-collapsed .nav-segment-group.is-open .nav-segment-children {
                display: grid !important;
                grid-template-rows: 1fr;
            }
            #app-sidebar.is-collapsed .nav-segment-group:not(.is-open) .nav-segment-children {
                display: none !important;
            }
            #app-sidebar.is-collapsed .nav-segment-children-inner {
                overflow: visible;
                padding-left: 0;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 0.05rem;
            }
            #app-sidebar.is-collapsed .nav-segment-children .nav-item {
                justify-content: center;
                padding: 0.45rem;
                margin: 0.1rem 0;
                width: auto;
            }
            #app-sidebar.is-collapsed .nav-segment-children .nav-item-icon {
                width: 2.25rem;
                height: 2.25rem;
            }
            #app-sidebar.is-collapsed .nav-segment-children .nav-item-icon svg {
                width: 1.2rem !important;
                height: 1.2rem !important;
                stroke-width: 1.65;
            }
            #app-sidebar.is-collapsed .sidebar-logout-btn {
                justify-content: center;
                gap: 0;
                padding: 0.65rem;
            }
            #app-sidebar.is-collapsed .sidebar-collapse-btn .sidebar-collapse-icon-expand {
                display: none;
            }
            #app-sidebar:not(.is-collapsed) .sidebar-collapse-btn .sidebar-collapse-icon-collapse {
                display: none;
            }
            #app-sidebar.is-collapsed .sidebar-collapse-btn .sidebar-logout-label {
                display: none !important;
            }
            #app-sidebar:not(.is-collapsed) .sidebar-collapse-btn .sidebar-logout-label {
                display: inline;
            }
        }
        .sidebar-brand {
            border-bottom: 1px solid rgba(110, 66, 255, 0.08);
            background: transparent;
        }
        .sidebar-nav-scroll {
            scrollbar-color: rgba(110, 66, 255, 0.22) transparent;
        }
        .nav-section + .nav-section { margin-top: 0.35rem; }
        .nav-section-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.85rem 0.85rem 0.4rem;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #9a8bb8;
        }
        .nav-section-label::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, rgba(154, 139, 184, 0.35), transparent);
        }
        .nav-section-label--admin { color: #059669; }
        .nav-section-label--admin::after {
            background: linear-gradient(90deg, rgba(5, 150, 105, 0.3), transparent);
        }
        .nav-section-label--segment { color: #6E42FF; }
        .nav-section-label--segment::after {
            background: linear-gradient(90deg, rgba(110, 66, 255, 0.28), transparent);
        }
        .nav-segment-sublabel {
            padding: 0 0.85rem;
            margin-top: -0.125rem;
            margin-bottom: 0.375rem;
            font-size: 0.625rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            color: #8b7aad;
            line-height: 1.2;
        }
        .nav-segment-group { margin: 0.125rem 0; }
        .nav-segment-trigger {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.65rem 0.8rem;
            border-radius: 1rem;
            border: 1px solid transparent;
            color: var(--sidebar-text, #3f3356);
            font-size: 0.8125rem;
            font-weight: 600;
            line-height: 1.25;
            text-align: left;
            transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
        }
        .nav-segment-trigger:hover {
            color: #2d2440;
            background: rgba(255, 255, 255, 0.55);
        }
        .nav-segment-group.is-open > .nav-segment-trigger {
            color: #2d2440;
            background: var(--sidebar-tile, #e4d8ff);
        }
        .nav-segment-group.has-active-child > .nav-segment-trigger {
            color: #2d2440;
            background: rgba(228, 216, 255, 0.7);
        }
        .nav-segment-trigger .nav-item-icon {
            color: #6E42FF;
            background: rgba(255, 255, 255, 0.7);
        }
        .nav-segment-chevron {
            width: 1rem;
            height: 1rem;
            flex-shrink: 0;
            color: #9a8bb8;
            transition: transform 0.2s ease, color 0.15s ease;
        }
        .nav-segment-group.is-open .nav-segment-chevron {
            transform: rotate(90deg);
            color: #6E42FF;
        }
        .nav-segment-children {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.22s ease;
        }
        .nav-segment-group.is-open .nav-segment-children {
            grid-template-rows: 1fr;
        }
        .nav-segment-children-inner {
            overflow: hidden;
            padding-left: 0.375rem;
        }
        .nav-segment-children .nav-item {
            padding: 0.5rem 0.75rem 0.5rem 0.5rem;
            font-size: 0.75rem;
        }
        .nav-segment-children .nav-item-icon {
            width: 1.75rem;
            height: 1.75rem;
            border-radius: 0.6rem;
        }
        .nav-segment-children .nav-item-icon i,
        .nav-segment-children .nav-item-icon svg {
            width: 1.05rem !important;
            height: 1.05rem !important;
        }
        .nav-item-nested-group {
            display: flex;
            flex-direction: column;
            margin: 0 0 0.2rem 0.85rem;
            padding-left: 0.55rem;
            border-left: 2px solid rgba(0, 180, 132, 0.22);
        }
        .nav-item--nested {
            padding: 0.42rem 0.65rem 0.42rem 0.4rem !important;
            font-size: 0.7rem !important;
            margin: 0.08rem 0 !important;
        }
        .nav-item--nested .nav-item-icon {
            width: 1.4rem !important;
            height: 1.4rem !important;
            border-radius: 0.55rem !important;
        }
        .nav-item--nested .nav-item-icon i,
        .nav-item--nested .nav-item-icon svg {
            width: 0.95rem !important;
            height: 0.95rem !important;
        }
        .nav-item {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.65rem 0.8rem;
            margin: 0.15rem 0;
            border-radius: 1rem;
            border: 1px solid transparent;
            color: var(--sidebar-muted, #7c6f96);
            font-size: 0.8125rem;
            font-weight: 500;
            line-height: 1.25;
            text-align: left;
            transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
        }
        .nav-item:hover {
            color: var(--sidebar-text, #3f3356);
            background: rgba(255, 255, 255, 0.55);
        }
        .nav-item.is-active {
            color: #2d2440;
            background: var(--sidebar-tile, #e4d8ff);
            border-color: transparent;
            box-shadow: none;
            font-weight: 600;
        }
        .nav-item.is-active .nav-item-icon {
            color: #6E42FF;
            background: rgba(255, 255, 255, 0.85);
        }
        .nav-item--admin.is-active {
            background: #d1fae5;
            border-color: transparent;
            box-shadow: none;
            color: #065f46;
        }
        .nav-item--admin.is-active .nav-item-icon {
            color: #059669;
            background: rgba(255, 255, 255, 0.85);
        }
        .nav-item-icon {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 0.65rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: var(--sidebar-icon, #5b4a78);
            background: rgba(255, 255, 255, 0.45);
            transition: color 0.15s ease, background 0.15s ease;
        }
        .nav-item-icon i,
        .nav-item-icon svg {
            width: 1.25rem !important;
            height: 1.25rem !important;
            display: block;
            flex-shrink: 0;
            stroke-width: 1.65;
            stroke-linecap: round;
            stroke-linejoin: round;
            shape-rendering: geometricPrecision;
        }
        #app-sidebar .nav-item-icon svg,
        #app-sidebar .sidebar-logout-btn svg,
        #app-sidebar .sidebar-collapse-btn svg {
            shape-rendering: geometricPrecision;
            overflow: visible;
            transform: translateZ(0);
        }
        .nav-item-label { min-width: 0; flex: 1; }
        .sidebar-user {
            border-top: 1px solid rgba(110, 66, 255, 0.08);
            background: transparent;
        }
        .sidebar-user:hover { background: rgba(255, 255, 255, 0.4); }
        .sidebar-profile-card {
            border-bottom: 1px solid rgba(110, 66, 255, 0.08);
            background: transparent;
            pointer-events: none;
        }
        .sidebar-logout-btn {
            color: var(--sidebar-muted, #7c6f96);
        }
        .sidebar-logout-btn:hover {
            color: #dc2626;
            background: rgba(254, 226, 226, 0.7);
        }
        .header-profile-chip {
            transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
        }
        .header-profile-chip:hover {
            border-color: rgba(110, 66, 255, 0.35);
            box-shadow: 0 4px 14px rgba(110, 66, 255, 0.12);
            background: var(--flux-brand-muted, #faf8ff);
        }

        #btn-voltar-admin {
            background: linear-gradient(135deg, #6E42FF, #7c3aed);
            border: 1px solid rgba(110, 66, 255, 0.35);
            color: #fff;
            box-shadow: 0 2px 8px rgba(110, 66, 255, 0.25);
        }
        #btn-voltar-admin:hover {
            background: linear-gradient(135deg, #5a36e6, #6d28d9);
            border-color: rgba(110, 66, 255, 0.5);
        }
        #btn-dev-access-badge {
            background: linear-gradient(135deg, #2F6BFF, #1d4ed8);
            border: 1px solid rgba(47, 107, 255, 0.4);
            color: #fff;
            box-shadow: 0 2px 8px rgba(47, 107, 255, 0.28);
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            cursor: pointer;
        }
        #btn-dev-access-badge:hover {
            filter: brightness(1.06);
        }
        #app-main-column {
            padding-top: 3.5rem;
        }
        @media (min-width: 768px) {
            #app-main-column {
                padding-top: 4rem;
            }
        }

        .admin-client-item {
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            background: #fff;
            min-height: 190px;
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
        }
        .admin-client-item:hover { transform: translateY(-2px); border-color: rgba(110, 66, 255, 0.35); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08); }
        .admin-client-item--active {
            background: linear-gradient(145deg, rgba(110, 66, 255, 0.09), #fff 65%);
            border-color: #6E42FF;
            box-shadow: 0 14px 32px rgba(110, 66, 255, 0.14);
        }
        .admin-usage-card:hover { border-color: rgba(110, 66, 255, 0.35); transform: translateY(-1px); }
        .admin-usage-card--active { border-color: #6E42FF; box-shadow: 0 8px 24px rgba(110, 66, 255, 0.12); }
        .barber-day-row { border-color: var(--flux-border, #e2e8f0); background: var(--flux-bg-surface, #fff); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
        .barber-day-row:not(.is-off):hover { border-color: #d8ccff; box-shadow: 0 1px 0 rgba(110, 66, 255, 0.06); }
        .barber-day-row.is-off { background: var(--flux-bg-surface-muted, #f8fafc); border-style: dashed; }
        .barber-day-row.is-off .barber-day-blocks { display: none; }
        .barber-time-block {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.75rem;
            border-radius: 0.75rem;
            background: var(--flux-bg-surface-muted, #f8fafc);
            border: 1px solid var(--flux-border, #e2e8f0);
        }
        .barber-time-block input[type="time"] {
            border: 1px solid var(--flux-border, #e2e8f0);
            border-radius: 0.5rem;
            padding: 0.4rem 0.55rem;
            font-size: 0.8125rem;
            color: var(--flux-text-secondary, #334155);
            background: var(--flux-bg-surface, #fff);
        }
        .barber-week-pills {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 0.28rem;
            margin-top: 0.7rem;
        }
        .barber-week-pill {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 0;
            font-size: 10px;
            font-weight: 800;
            padding: 0.38rem 0.1rem;
            border-radius: 8px;
            letter-spacing: 0.02em;
            cursor: default;
        }
        .barber-week-pill--on {
            background: #f5f0ff;
            color: #6E42FF;
            border: 1px solid #ddd6fe;
        }
        .barber-week-pill--off {
            background: #f1f5f9;
            color: #94a3b8;
            border: 1px solid #e2e8f0;
        }
        .barber-avatar {
            width: 3rem;
            height: 3rem;
            border-radius: 0.875rem;
            background: linear-gradient(135deg, #6E42FF 0%, #8b5cf6 100%);
            color: #fff;
            font-weight: 800;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 14px rgba(110, 66, 255, 0.25);
            flex-shrink: 0;
        }
        .barber-team-head {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            justify-content: space-between;
            gap: 0.85rem 1rem;
        }
        .barber-team-add {
            display: none;
            border: 0;
            border-radius: 12px;
            background: #16A34A;
            color: #fff;
            font-size: 0.8rem;
            font-weight: 800;
            padding: 0.55rem 0.95rem;
            min-height: 2.5rem;
            cursor: pointer;
        }
        .barber-team-kpis {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.5rem;
        }
        @media (min-width: 640px) {
            .barber-team-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
        }
        #barber-team-summary,
        #barber-comm-totals {
            display: contents;
        }
        .barber-team-stat {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            padding: 0.75rem 0.85rem;
        }
        .barber-team-stat p {
            margin: 0;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .barber-team-stat strong {
            display: block;
            margin-top: 0.15rem;
            font-size: 1.15rem;
            font-weight: 800;
            color: #0f172a;
            letter-spacing: -0.03em;
            line-height: 1.15;
        }
        .barber-team-stat strong.is-green { color: #16A34A; }
        .barber-house-comm {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
        }
        .barber-house-comm summary {
            list-style: none;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 0.75rem;
            padding: 0.9rem 1rem;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 800;
            color: #0f172a;
        }
        .barber-house-comm summary::-webkit-details-marker { display: none; }
        .barber-house-comm summary::after {
            content: '';
            width: 0.45rem;
            height: 0.45rem;
            margin-left: auto;
            border-right: 2px solid #94a3b8;
            border-bottom: 2px solid #94a3b8;
            transform: rotate(45deg);
            flex-shrink: 0;
        }
        .barber-house-comm[open] summary::after {
            transform: rotate(225deg);
            margin-top: 0.25rem;
        }
        .barber-house-comm__vals {
            font-size: 0.75rem;
            font-weight: 700;
            color: #64748b;
        }
        .barber-house-comm__body {
            padding: 0 1rem 1rem;
        }
        .barber-house-comm__hint {
            margin: 0 0 0.75rem;
            font-size: 0.75rem;
            color: #64748b;
        }
        .barber-house-comm__grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.65rem;
        }
        @media (min-width: 768px) {
            .barber-house-comm__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
        }
        .barber-house-comm__grid label {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .barber-house-comm__grid input {
            display: block;
            width: 100%;
            margin-top: 0.3rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            padding: 0.5rem 0.65rem;
            font-size: 0.875rem;
            font-weight: 700;
            color: #0f172a;
        }
        .barber-house-comm__save {
            margin-top: 0.85rem;
            padding: 0.55rem 0.95rem;
            border-radius: 0.75rem;
            background: #6E42FF;
            color: #fff;
            font-size: 0.75rem;
            font-weight: 800;
        }
        .barber-team-page {
            display: flex;
            flex-direction: column;
        }
        .barber-team-head { order: 1; }
        .barber-team-kpis { order: 2; }
        .barber-team-layout { order: 3; }
        .barber-house-comm { order: 4; }
        @media (min-width: 1024px) {
            .barber-house-comm { order: 3; }
            .barber-team-layout { order: 4; }
        }
        .barber-card {
            border: 1px solid var(--flux-border, #e2e8f0);
            border-radius: 1.15rem;
            background: var(--flux-bg-surface, #fff);
            overflow: hidden;
            transition: box-shadow 0.2s ease, border-color 0.2s ease;
        }
        .barber-card:hover {
            border-color: #d8ccff;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
        }
        .barber-card--inactive { opacity: 0.72; background: var(--flux-bg-surface-muted, #f8fafc); }
        .barber-card.is-editing {
            border-color: rgba(110, 66, 255, 0.35);
            box-shadow: 0 0 0 3px rgba(110, 66, 255, 0.12);
        }
        .barber-card__accent {
            height: 3px;
            background: linear-gradient(90deg, #6E42FF, #a78bfa, #6E42FF);
        }
        .barber-card--inactive .barber-card__accent { background: #cbd5e1; }
        .barber-card__body { padding: 0.95rem 1rem 1rem; }
        .barber-card__identity {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .barber-card__who { min-width: 0; flex: 1; }
        .barber-card__name-row {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            min-width: 0;
        }
        .barber-card__name-row h3 {
            margin: 0;
            font-size: 1.02rem;
            font-weight: 800;
            color: #0f172a;
            letter-spacing: -0.02em;
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .barber-card__badge {
            flex: 0 0 auto;
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            padding: 0.18rem 0.45rem;
            border-radius: 999px;
        }
        .barber-card__badge.is-on { color: #15803d; background: #ecfdf5; }
        .barber-card__badge.is-off { color: #64748b; background: #f1f5f9; }
        .barber-card__phone {
            margin: 0.2rem 0 0;
            font-size: 0.78rem;
            color: #64748b;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .barber-card__facts {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            margin-top: 0.7rem;
        }
        .barber-card__chip {
            display: inline-flex;
            align-items: center;
            gap: 0.28rem;
            font-size: 0.72rem;
            font-weight: 700;
            color: #475569;
            background: #f8fafc;
            border: 1px solid #eef2f6;
            border-radius: 999px;
            padding: 0.28rem 0.55rem;
        }
        .barber-card__chip.is-warn { color: #b45309; background: #fffbeb; border-color: #fde68a; }
        .barber-card__chip.is-ok { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
        .barber-card__pay {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            width: 100%;
            margin-top: 0.75rem;
            padding: 0.7rem 0.8rem;
            border: 0;
            border-radius: 12px;
            background: #f8fafc;
            text-align: left;
            cursor: pointer;
        }
        .barber-card__pay small {
            display: block;
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .barber-card__pay strong {
            display: block;
            margin-top: 0.1rem;
            font-size: 1rem;
            font-weight: 800;
            color: #0f172a;
            letter-spacing: -0.03em;
        }
        .barber-card__pay-go {
            flex: 0 0 auto;
            font-size: 0.72rem;
            font-weight: 800;
            color: #16A34A;
        }
        .barber-card__actions {
            display: grid;
            grid-template-columns: 1fr 1.15fr 1fr;
            gap: 0.4rem;
            padding-top: 0.85rem;
            margin-top: 0.85rem;
            border-top: 1px solid var(--flux-border-subtle, #f1f5f9);
        }
        .barber-btn-outline,
        .barber-btn-primary {
            justify-content: center;
            min-height: 2.4rem;
        }
        .barber-btn-outline {
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.5rem 0.875rem;
            border-radius: 0.75rem;
            border: 1px solid var(--flux-border, #e2e8f0);
            color: var(--flux-text-muted, #475569);
            background: var(--flux-bg-surface, #fff);
            transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
        }
        .barber-btn-outline:hover {
            border-color: #d8ccff;
            color: #6E42FF;
            background: #faf8ff;
        }
        .barber-btn-primary {
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.5rem 0.875rem;
            border-radius: 0.75rem;
            color: #fff;
            background: #6E42FF;
            box-shadow: 0 2px 8px rgba(110, 66, 255, 0.25);
            transition: background 0.15s ease;
        }
        .barber-btn-primary:hover { background: #5a36e6; }
        .barber-field-label {
            display: block;
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: #94a3b8;
            margin-bottom: 0.35rem;
        }
        .barber-schedule-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.35rem 1rem;
        }
        @media (max-width: 640px) {
            .barber-schedule-grid { grid-template-columns: 1fr; }
        }
        .barber-week-cal {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 0.375rem;
        }
        .barber-agenda-days {
            display: flex;
            gap: 0.4rem;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            padding: 0.1rem 0.15rem 0.35rem;
        }
        .barber-agenda-days::-webkit-scrollbar { display: none; }
        .barber-agenda-days .barber-week-cal-day {
            min-width: 3.15rem;
            min-height: 3.55rem;
            flex-shrink: 0;
        }
        .barber-agenda-chips {
            display: flex;
            gap: 0.4rem;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            padding-bottom: 0.15rem;
        }
        .barber-agenda-chips::-webkit-scrollbar { display: none; }
        .barber-agenda-chip {
            flex-shrink: 0;
            border: 1px solid #e2e8f0;
            background: #fff;
            color: #475569;
            font-size: 0.75rem;
            font-weight: 700;
            border-radius: 999px;
            padding: 0.4rem 0.8rem;
        }
        .barber-agenda-chip.is-on {
            border-color: #6E42FF;
            background: #f0ebff;
            color: #4c1d95;
        }
        .barber-agenda-board {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.75rem;
        }
        @media (min-width: 768px) {
            .barber-agenda-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }
        @media (min-width: 1280px) {
            .barber-agenda-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        }
        .dash-barber-day-col__body { max-height: 18rem; }
        @media (max-width: 640px) {
            .barber-week-cal { grid-template-columns: repeat(7, minmax(2.5rem, 1fr)); }
            .dash-barber-day-col { min-height: 0; }
            .dash-barber-day-col__body { max-height: none; }
        }
        .barber-week-cal-day {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.125rem;
            min-height: 4.25rem;
            padding: 0.375rem 0.25rem;
            border-radius: 0.75rem;
            border: 1px solid var(--flux-border, #e2e8f0);
            background: var(--flux-bg-surface, #fff);
            cursor: pointer;
            transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.22s ease;
        }
        .barber-week-cal-day span {
            transition: color 0.22s ease;
        }
        .barber-week-cal-day:active:not(:disabled) {
            transform: scale(0.96);
        }
        .barber-week-cal-day--selected {
            border-color: #6E42FF;
            background: #f0ebff;
            box-shadow: 0 0 0 2px rgba(110, 66, 255, 0.2);
            transform: scale(1.05);
        }
        .barber-agenda-board {
            transition: opacity 0.16s ease, transform 0.16s ease;
        }
        .barber-agenda-board--swap {
            opacity: 0;
            transform: translateY(8px);
        }
        .barber-agenda-board--enter {
            animation: barber-agenda-day-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
        }
        @keyframes barber-agenda-day-in {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: none; }
        }
        @media (prefers-reduced-motion: reduce) {
            .barber-week-cal-day,
            .barber-week-cal-day span,
            .barber-agenda-board {
                transition: none !important;
            }
            .barber-agenda-board--enter { animation: none !important; }
        }
        .barber-week-cal-day:hover {
            border-color: #c4b5fd;
            background: #faf8ff;
        }
        .barber-week-cal-day--selected {
            border-color: #6E42FF;
            background: #f0ebff;
            box-shadow: 0 0 0 2px rgba(110, 66, 255, 0.2);
            transform: scale(1.05);
        }
        .barber-week-cal-day--today:not(.barber-week-cal-day--selected) {
            border-color: #fcd34d;
            background: #fffbeb;
        }
        .barber-week-cal-day--past {
            opacity: 0.45;
            cursor: default;
        }
        .barber-week-cal-day--past:hover {
            border-color: var(--flux-border, #e2e8f0);
            background: var(--flux-bg-surface, #fff);
        }
        .barber-appt-sheet {
            display: flex;
            flex-direction: column;
        }
        .barber-appt-sheet-head {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.9rem 1rem;
            border-bottom: 1px solid #f1f5f9;
            background: linear-gradient(180deg, #f8fafc, #fff);
        }
        .barber-appt-sheet-icon {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.85rem;
            background: #6E42FF;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 8px 16px rgba(110, 66, 255, 0.22);
        }
        .barber-appt-sheet-body {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            padding: 0.95rem 1rem 1.1rem;
        }
        .barber-appt-mode {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.3rem;
            padding: 0.28rem;
            border-radius: 14px;
            background: #f1f5f9;
        }
        .barber-appt-mode-btn {
            min-height: 2.35rem;
            border: 0;
            border-radius: 11px;
            background: transparent;
            color: #64748b;
            font-size: 0.78rem;
            font-weight: 700;
            cursor: pointer;
        }
        .barber-appt-mode-btn.is-on {
            background: #fff;
            color: #0f172a;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
        }
        .barber-appt-procs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.4rem;
        }
        .barber-appt-proc {
            position: relative;
            cursor: pointer;
        }
        .barber-appt-proc input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }
        .barber-appt-proc span {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            min-height: 2.45rem;
            padding: 0.4rem 0.5rem;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            background: #fff;
            color: #475569;
            font-size: 0.72rem;
            font-weight: 700;
            line-height: 1.2;
            text-align: center;
        }
        .barber-appt-proc input:checked + span {
            border-color: transparent;
            background: #6E42FF;
            color: #fff;
        }
        .barber-appt-duration {
            display: none !important;
        }
        .barber-appt-sheet-foot {
            flex-shrink: 0;
            padding: 0.75rem 1rem 0.95rem;
            background: #fff;
            border-top: 1px solid #eef2f5;
        }
        .barber-appt-add-walkin,
        .barber-appt-use-sub {
            display: inline-flex;
            margin-top: 0.4rem;
            border: 0;
            background: transparent;
            color: #16A34A;
            font-size: 0.78rem;
            font-weight: 800;
            padding: 0;
            cursor: pointer;
        }
        .barber-people-tabs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.3rem;
            margin-bottom: 0.85rem;
            padding: 0.28rem;
            border-radius: 14px;
            background: #f1f5f9;
        }
        .barber-people-tab {
            min-height: 2.35rem;
            border: 0;
            border-radius: 11px;
            background: transparent;
            color: #64748b;
            font-size: 0.78rem;
            font-weight: 800;
            cursor: pointer;
        }
        .barber-people-tab.is-on {
            background: #fff;
            color: #0f172a;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
        }
        .barber-walkin-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.9rem 1rem;
            border-radius: 18px;
            background: #fff;
            border: 1px solid #e8eef3;
        }
        .barber-walkin-card h3 {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 800;
            color: #0f172a;
        }
        .barber-walkin-card p {
            margin: 0.15rem 0 0;
            font-size: 0.72rem;
            color: #64748b;
        }
        .barber-walkin-card__btn {
            flex-shrink: 0;
            min-height: 2.2rem;
            padding: 0.4rem 0.75rem;
            border: 0;
            border-radius: 12px;
            background: #16A34A;
            color: #fff;
            font-size: 0.75rem;
            font-weight: 800;
            cursor: pointer;
        }
        .barber-appt-amount-hint {
            margin: 0;
            font-size: 11px;
            color: #64748b;
            line-height: 1.35;
        }
        .barber-appt-date-strip {
            margin: 0 0 0.15rem;
        }
        .barber-appt-date-strip .barber-week-cal-day {
            min-width: 3.05rem;
            min-height: 3.4rem;
        }
        .barber-appt-slots-grid.hidden,
        .barber-appt-slots-empty.hidden { display: none !important; }
        .barber-appt-date-native-wrap {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0 0 0 0);
        }
        .barber-appt-date-block { position: relative; }
        .barber-appt-slots-empty {
            padding: 0.85rem 0.9rem;
            border-radius: 14px;
            border: 1px dashed #dbe4ee;
            background: #f8fafc;
            text-align: left;
        }
        .barber-appt-slots-empty p {
            margin: 0;
            font-size: 0.82rem;
            font-weight: 700;
            color: #475569;
        }
        .barber-appt-slots-empty span {
            display: block;
            margin-top: 0.15rem;
            font-size: 0.72rem;
            color: #94a3b8;
            line-height: 1.35;
        }
        .barber-appt-slots-empty.is-warn {
            border-color: #fde68a;
            background: #fffbeb;
        }
        .barber-appt-slots-empty.is-warn p { color: #92400e; }
        .barber-appt-slots-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0.4rem;
            margin-top: 0.35rem;
        }
        .barber-slot-btn {
            min-height: 2.45rem;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            background: #fff;
            color: #334155;
            font-size: 0.82rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            cursor: pointer;
        }
        .barber-slot-btn.is-on {
            border-color: transparent;
            background: #6E42FF;
            color: #fff;
            box-shadow: 0 6px 14px rgba(110, 66, 255, 0.25);
        }
        .barber-appt-slot-hint {
            margin: 0.4rem 0 0;
            font-size: 11px;
            color: #94a3b8;
        }
        .barber-appt-save {
            width: 100%;
            min-height: 3rem;
            border: 0;
            border-radius: 14px;
            background: #059669;
            color: #fff;
            font-size: 0.92rem;
            font-weight: 800;
            box-shadow: 0 10px 20px rgba(5, 150, 105, 0.22);
            cursor: pointer;
        }
        .barber-appt-schedule { display: flex; flex-direction: column; gap: 0.75rem; }
        .dash-barber-day-col {
            border: 1px solid var(--flux-border, #e2e8f0);
            border-radius: 1rem;
            background: var(--flux-bg-surface, #fff);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            min-height: 12rem;
        }
        .dash-barber-day-col__head {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.875rem 1rem;
            border-bottom: 1px solid var(--flux-border-subtle, #f1f5f9);
            background: linear-gradient(180deg, var(--flux-brand-muted, #faf8ff) 0%, var(--flux-bg-surface, #fff) 100%);
        }
        .dash-barber-day-col__avatar {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 0.65rem;
            background: linear-gradient(135deg, #6E42FF, #4f46e5);
            color: #fff;
            font-size: 0.75rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .dash-barber-day-col__body {
            padding: 0.5rem;
            flex: 1;
            max-height: 22rem;
            overflow-y: auto;
        }
        .dash-barber-slot {
            display: flex;
            align-items: flex-start;
            gap: 0.625rem;
            padding: 0.5rem 0.625rem;
            border-radius: 0.65rem;
            margin-bottom: 0.25rem;
        }
        .dash-barber-slot--busy {
            background: var(--flux-brand-muted, #f0ebff);
            border: 1px solid rgba(110, 66, 255, 0.25);
        }
        .dash-barber-slot--free {
            background: var(--flux-bg-surface-muted, #f8fafc);
            border: 1px dashed var(--flux-border, #e2e8f0);
        }
        .dash-barber-slot__time {
            font-size: 0.6875rem;
            font-weight: 800;
            color: var(--flux-text-muted, #475569);
            min-width: 2.75rem;
            flex-shrink: 0;
            padding-top: 0.125rem;
        }
        .dash-barber-slot--busy .dash-barber-slot__time { color: #6E42FF; }
        .sub-client-card {
            border: 1px solid var(--flux-border, #e2e8f0);
            border-radius: 1rem;
            background: var(--flux-bg-surface, #fff);
            overflow: hidden;
            height: fit-content;
            min-height: 0;
            align-self: start;
            transition: box-shadow 0.2s ease, border-color 0.2s ease;
        }
        .sub-client-card:hover {
            border-color: #cbd5e1;
            box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
        }
        .barber-stock-card {
            border: 1px solid var(--flux-border, #e2e8f0);
            border-radius: 1rem;
            background: var(--flux-bg-surface, #fff);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .barber-stock-card__media {
            background: #f8fafc;
            aspect-ratio: 4 / 3;
        }
        .barber-stock-card__img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .barber-stock-card__img--empty {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            height: 100%;
        }
        .barber-stock-card__body { padding: 0.9rem 1rem 1rem; }
        .barber-stock-badge {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            border-radius: 999px;
            padding: 0.2rem 0.5rem;
            white-space: nowrap;
        }
        .barber-stock-badge--ok { background: #ecfdf5; color: #047857; }
        .barber-stock-badge--low { background: #fffbeb; color: #b45309; }
        .barber-stock-badge--out { background: #fff1f2; color: #e11d48; }
        .barber-stock-qty {
            display: inline-flex;
            align-items: center;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            overflow: hidden;
            background: #fff;
        }
        .barber-stock-qty__btn {
            width: 2rem;
            height: 2rem;
            font-size: 1rem;
            font-weight: 700;
            color: #334155;
        }
        .barber-stock-qty__btn:disabled { opacity: 0.35; }
        .barber-stock-qty__input {
            width: 2.75rem;
            height: 2rem;
            text-align: center;
            border: 0;
            border-left: 1px solid #e2e8f0;
            border-right: 1px solid #e2e8f0;
            font-size: 0.8125rem;
            font-weight: 700;
        }
        .barber-catalog-head {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            justify-content: space-between;
            gap: 0.85rem 1rem;
        }
        .barber-catalog-tabs {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 0.35rem;
            padding: 0.3rem;
            border-radius: 16px;
            background: #fff;
            border: 1px solid #e2e8f0;
        }
        .barber-catalog-tab {
            min-height: 2.4rem;
            border: 0;
            border-radius: 12px;
            background: transparent;
            color: #64748b;
            font-size: 0.82rem;
            font-weight: 800;
        }
        .barber-catalog-tab.is-on {
            background: #16A34A;
            color: #fff;
        }
        .barber-stock-bonus {
            margin-top: 0.75rem;
            padding-top: 0.75rem;
            border-top: 1px solid #f1f5f9;
            display: grid;
            grid-template-columns: 4.5rem 1fr auto;
            gap: 0.45rem;
            align-items: end;
        }
        .barber-stock-bonus__label {
            display: block;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #94a3b8;
            margin-bottom: 0.2rem;
        }
        .barber-stock-bonus input {
            width: 100%;
            border: 1px solid #e2e8f0;
            border-radius: 0.7rem;
            padding: 0.45rem 0.5rem;
            font-size: 0.8rem;
            font-weight: 700;
            background: #f8fafc;
        }
        .barber-stock-bonus input:focus {
            outline: none;
            border-color: #16A34A;
            box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
        }
        .barber-stock-bonus__preview {
            text-align: right;
            min-width: 4.5rem;
        }
        .barber-stock-bonus__preview span {
            display: block;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .barber-stock-bonus__preview strong {
            font-size: 0.85rem;
            color: #047857;
        }
        .barber-billing-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.85rem 0;
            border-bottom: 1px solid #f1f5f9;
        }
        .barber-billing-row:last-child { border-bottom: 0; }
        .barber-bonus-head {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            justify-content: space-between;
            gap: 0.85rem 1rem;
        }
        .barber-stock-tools {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5rem;
        }
        .barber-stock-tools .relative { flex: 1 1 12rem; min-width: 0; }
        .barber-stock-seller {
            display: none;
            width: 100%;
            border: 1px solid #e2e8f0;
            border-radius: 0.9rem;
            background: #fff;
            padding: 0.7rem 0.85rem;
            font-size: 0.875rem;
            font-weight: 700;
            color: #0f172a;
        }
        .barber-stock-card__main {
            display: flex;
            flex-direction: column;
        }
        .barber-stock-card__cat {
            margin: 0;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .barber-stock-card__desc { margin-top: 0.5rem; }
        .barber-stock-more {
            border-top: 1px solid #f1f5f9;
            padding: 0 1rem 1rem;
        }
        .barber-stock-more summary { display: none; }
        .barber-stock-more__body { padding-top: 0.75rem; }
        .barber-scale-board { display: grid; gap: 0.85rem; }
        .barber-scale-hero {
            display: grid;
            gap: 0.75rem;
            padding: 1.05rem 1.1rem;
            border-radius: 1.25rem;
            background: #fff;
            border: 1px solid #e2e8f0;
        }
        .barber-scale-hero__top {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            justify-content: space-between;
            gap: 0.6rem 1rem;
        }
        .barber-scale-hero h3 {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 800;
            color: #14532d;
        }
        .barber-scale-hero p { margin: 0.2rem 0 0; font-size: 0.8rem; color: #64748b; }
        .barber-scale-kpis {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0.5rem;
        }
        .barber-scale-kpis div {
            padding: 0.7rem 0.65rem;
            border-radius: 12px;
            background: #f8fafc;
        }
        .barber-scale-kpis span {
            display: block;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .barber-scale-kpis strong {
            display: block;
            margin-top: 0.2rem;
            font-size: 1.05rem;
            font-weight: 800;
            color: #0f172a;
        }
        .barber-scale-tiers, .barber-scale-people, .barber-scale-sales {
            padding: 1rem;
            border-radius: 1.15rem;
            background: #fff;
            border: 1px solid #e2e8f0;
        }
        .barber-scale-tiers p, .barber-scale-people p, .barber-scale-sales p {
            margin: 0 0 0.7rem;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #64748b;
        }
        .barber-scale-tier {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 0.35rem 0.75rem;
            align-items: center;
            padding: 0.55rem 0.65rem;
            border-radius: 10px;
            color: #475569;
            font-size: 0.82rem;
            font-weight: 700;
        }
        .barber-scale-tier.is-on {
            background: #ecfdf3;
            color: #14532d;
        }
        .barber-scale-row {
            display: flex;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.45rem 0;
            border-top: 1px solid #f1f5f9;
            font-size: 0.84rem;
        }
        .barber-scale-row:first-of-type { border-top: 0; }
        .barber-bonus-house {
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            background: #fff;
            padding: 0;
        }
        .barber-bonus-house summary {
            list-style: none;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 0.75rem;
            padding: 0.9rem 1rem;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 800;
            color: #0f172a;
        }
        .barber-bonus-house summary::-webkit-details-marker { display: none; }
        .barber-bonus-house summary::after {
            content: '';
            width: 0.45rem;
            height: 0.45rem;
            margin-left: auto;
            border-right: 2px solid #94a3b8;
            border-bottom: 2px solid #94a3b8;
            transform: rotate(45deg);
            flex-shrink: 0;
        }
        .barber-bonus-house[open] summary::after {
            transform: rotate(225deg);
            margin-top: 0.25rem;
        }
        .barber-bonus-house__vals {
            font-size: 0.75rem;
            font-weight: 700;
            color: #64748b;
        }
        .barber-bonus-house__body { padding: 0 1rem 1rem; }
        .barber-bonus-house__row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
        }
        .barber-bonus-house__label {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .barber-bonus-house__input {
            width: 5.25rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            padding: 0.5rem 0.65rem;
            font-size: 0.875rem;
            font-weight: 700;
            color: #0f172a;
            text-align: center;
        }
        .barber-bonus-house__input:focus,
        .barber-bonus-field input:focus {
            outline: none;
            border-color: #6E42FF;
            box-shadow: 0 0 0 3px rgba(110, 66, 255, 0.15);
        }
        .barber-bonus-house__hint {
            margin: 0.45rem 0 0;
            font-size: 0.75rem;
            color: #64748b;
            line-height: 1.4;
        }
        .barber-bonus-search {
            position: relative;
        }
        .barber-bonus-search input {
            width: 100%;
            border: 1px solid #e2e8f0;
            border-radius: 0.9rem;
            background: #fff;
            padding: 0.7rem 0.9rem 0.7rem 2.5rem;
            font-size: 0.875rem;
            color: #0f172a;
        }
        .barber-bonus-search input:focus {
            outline: none;
            border-color: #6E42FF;
            box-shadow: 0 0 0 3px rgba(110, 66, 255, 0.15);
        }
        .barber-bonus-search::before {
            content: '';
            position: absolute;
            left: 0.9rem;
            top: 50%;
            width: 0.85rem;
            height: 0.85rem;
            transform: translateY(-50%);
            border: 1.7px solid #94a3b8;
            border-radius: 999px;
            pointer-events: none;
        }
        .barber-bonus-search::after {
            content: '';
            position: absolute;
            left: 1.55rem;
            top: 62%;
            width: 0.38rem;
            height: 1.7px;
            background: #94a3b8;
            transform: rotate(45deg);
            pointer-events: none;
        }
        .barber-bonus-row[hidden] { display: none !important; }
        .barber-bonus-row {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 0.65rem 0.8rem;
            padding: 0.75rem 0.85rem;
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            background: #fff;
        }
        .barber-bonus-row__media {
            width: 3.35rem;
            height: 3.35rem;
            border-radius: 0.75rem;
            overflow: hidden;
            background: #f8fafc;
            flex-shrink: 0;
        }
        .barber-bonus-row__media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .barber-bonus-row__empty {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
        }
        .barber-bonus-row__info { min-width: 0; }
        .barber-bonus-row__cat {
            margin: 0;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .barber-bonus-row__name {
            margin: 0.1rem 0 0;
            font-size: 0.9rem;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.25;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .barber-bonus-row__meta {
            margin: 0.15rem 0 0;
            font-size: 0.75rem;
            color: #64748b;
        }
        .barber-bonus-row__controls {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: minmax(4.5rem, 1fr) minmax(5.5rem, 1fr) minmax(6.4rem, 1.15fr);
            gap: 0.45rem;
            align-items: stretch;
        }
        .barber-bonus-field {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
            min-width: 0;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .barber-bonus-field input {
            width: 100%;
            border: 1px solid #e2e8f0;
            border-radius: 0.7rem;
            padding: 0.5rem 0.55rem;
            font-size: 0.875rem;
            font-weight: 600;
            color: #0f172a;
            background: #fff;
        }
        .barber-bonus-row__preview {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-end;
            min-width: 0;
            padding: 0.4rem 0.65rem;
            border-radius: 0.7rem;
            background: #ecfdf3;
            text-align: right;
        }
        .barber-bonus-row__preview p:first-child {
            margin: 0;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #059669;
        }
        .barber-bonus-row__preview [data-bonus-preview] {
            margin: 0.05rem 0 0;
            font-size: 0.9rem;
            font-weight: 800;
            color: #047857;
            letter-spacing: -0.02em;
            line-height: 1.15;
        }
        @media (min-width: 768px) {
            .barber-bonus-row {
                grid-template-columns: auto minmax(12rem, 1.5fr) 5.25rem 6.5rem minmax(7.2rem, auto);
                align-items: center;
            }
            .barber-bonus-row__controls { display: contents; }
            .barber-bonus-row__preview {
                background: transparent;
                padding: 0;
            }
            .barber-bonus-row__preview p:first-child { color: #94a3b8; }
        }
        .barber-svc-head {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            justify-content: space-between;
            gap: 0.85rem 1rem;
        }
        .barber-svc-row {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            padding: 0.9rem 1rem 0.85rem;
        }
        .barber-svc-row__top {
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }
        .barber-svc-name {
            flex: 1;
            min-width: 0;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            padding: 0.55rem 0.75rem;
            font-size: 0.9rem;
            font-weight: 700;
            color: #0f172a;
        }
        .barber-svc-name:focus {
            outline: none;
            border-color: #16A34A;
            box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
        }
        .barber-svc-row__actions {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            flex-shrink: 0;
        }
        .barber-svc-icon {
            width: 2rem;
            height: 2rem;
            display: grid;
            place-items: center;
            border-radius: 0.65rem;
            border: 1px solid #e2e8f0;
            background: #f8fafc;
            color: #64748b;
        }
        .barber-svc-icon:disabled { opacity: 0.35; }
        .barber-svc-icon--danger { color: #e11d48; }
        .barber-svc-row__fields {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.65rem;
            margin-top: 0.7rem;
        }
        .barber-svc-field {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            background: #f8fafc;
            padding: 0.35rem 0.65rem;
        }
        .barber-svc-field span {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #94a3b8;
            white-space: nowrap;
        }
        .barber-svc-field input {
            flex: 1;
            min-width: 0;
            border: 0;
            background: transparent;
            font-size: 0.875rem;
            font-weight: 700;
            color: #0f172a;
        }
        .barber-svc-field input:focus { outline: none; }
        .barber-svc-field em {
            font-style: normal;
            font-size: 11px;
            font-weight: 700;
            color: #94a3b8;
        }
        .barber-svc-empty {
            text-align: center;
            font-size: 0.875rem;
            color: #64748b;
            padding: 2rem 1rem;
            border-radius: 1rem;
            border: 1px dashed #cbd5e1;
            background: #fff;
        }
        .barber-svc-empty--error {
            border-color: #fecaca;
            background: #fef2f2;
            color: #b91c1c;
        }
        .barber-svc-add {
            width: 100%;
            border: 1px dashed #cbd5e1;
            background: #fff;
            color: #334155;
            font-weight: 700;
            font-size: 0.875rem;
            border-radius: 1rem;
            padding: 0.85rem;
        }
        .sub-client-card--active-edit {
            border-color: #94a3b8;
            box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.12);
        }
        .sub-client-card__accent {
            height: 2px;
            background: #e2e8f0;
        }
        .sub-client-card__accent--paid { background: #34d399; }
        .sub-client-card__accent--pending { background: #cbd5e1; }
        .sub-client-card__accent--overdue { background: #f43f5e; }
        .sub-client-card__body {
            display: block;
            height: auto;
            min-height: 0;
            padding: 1rem 1.125rem 1.125rem;
        }
        .sub-client-card__header,
        .sub-client-card__identity {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            min-width: 0;
        }
        .sub-client-card__who { min-width: 0; flex: 1; }
        .sub-client-card__name-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.4rem;
            min-width: 0;
        }
        .sub-client-card__title {
            font-weight: 800;
            font-size: 1.02rem;
            color: #0f172a;
            line-height: 1.2;
            margin: 0;
            letter-spacing: -0.02em;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 100%;
        }
        .sub-client-card__badges {
            display: flex;
            flex-wrap: wrap;
            gap: 0.375rem;
            margin-top: 0.375rem;
        }
        .sub-client-card__plan {
            font-size: 0.78rem;
            color: #64748b;
            margin: 0.2rem 0 0;
            line-height: 1.35;
        }
        .sub-client-card__plan strong { color: #334155; font-weight: 800; }
        .sub-client-card__meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 0.75rem;
        }
        .sub-client-card__meta-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.6875rem;
            font-weight: 600;
            padding: 0.35rem 0.65rem;
            border-radius: 0.5rem;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            color: #64748b;
        }
        .sub-client-avatar {
            width: 2.7rem;
            height: 2.7rem;
            border-radius: 0.85rem;
            background: linear-gradient(135deg, #6E42FF 0%, #8b5cf6 100%);
            border: 0;
            color: #fff;
            font-size: 0.78rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(110, 66, 255, 0.22);
        }
        .sub-badge {
            display: inline-flex;
            align-items: center;
            font-size: 0.625rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            padding: 0.2rem 0.5rem;
            border-radius: 9999px;
            border: 1px solid #e2e8f0;
            background: #f8fafc;
            color: #64748b;
        }
        .sub-badge--overdue {
            border-color: #fecdd3;
            background: #fff1f2;
            color: #be123c;
        }
        .sub-badge--pending {
            border-color: #fde68a;
            background: #fffbeb;
            color: #92400e;
        }
        .sub-badge--wrap {
            white-space: normal;
            line-height: 1.25;
            max-width: 12.5rem;
            border-radius: 8px;
            text-align: left;
            text-transform: none;
            letter-spacing: 0;
        }
        .sub-badge--paid {
            border-color: #bbf7d0;
            background: #f0fdf4;
            color: #166534;
        }
        .sub-badge--warn {
            border-color: #fed7aa;
            background: #fff7ed;
            color: #c2410c;
        }
        .sub-client-card__card-alert {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 0.75rem;
            padding: 0.5rem 0.75rem;
            border-radius: 0.625rem;
            background: #fff7ed;
            border: 1px solid #fed7aa;
            color: #9a3412;
            font-size: 11px;
            font-weight: 600;
            line-height: 1.35;
        }
        .sub-client-card__card-alert--warn {
            background: #fffbeb;
            border-color: #fde68a;
            color: #92400e;
        }
        .sub-client-card__saldo {
            margin-top: 0.875rem;
            padding: 0.75rem 0.875rem;
            border-radius: 0.65rem;
            background: #faf9ff;
            border: 1px solid #ece8ff;
        }
        .sub-saldo-controls {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
        }
        .sub-saldo-btn {
            width: 1.5rem;
            height: 1.5rem;
            border-radius: 0.375rem;
            border: 1px solid #e2e8f0;
            background: #fff;
            color: #64748b;
            font-size: 0.875rem;
            font-weight: 700;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
        }
        .sub-saldo-btn:hover {
            background: #f5f2ff;
            border-color: #d8ccff;
            color: #6E42FF;
        }
        .sub-saldo-count {
            min-width: 2.5rem;
            text-align: center;
            font-size: 0.875rem;
            font-weight: 800;
            color: #334155;
        }
        .sub-client-card__saldo .sub-saldo-bar { margin-top: 0.5rem; }
        .sub-saldo-types {
            display: grid;
            gap: 0.5rem;
            margin-top: 0.625rem;
        }
        .sub-saldo-type {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding-top: 0.5rem;
            border-top: 1px solid #e8efeb;
        }
        .sub-saldo-type__name {
            color: #475569;
            font-size: 0.75rem;
            font-weight: 700;
        }
        .sub-saldo-type .sub-saldo-count { min-width: 2.25rem; }
        .sub-client-card__actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem;
            margin-top: 0.875rem;
            position: relative;
            z-index: 2;
        }
        .sub-client-card__actions .sub-btn-primary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            padding: 0.55rem 0.75rem;
            border-radius: 0.65rem;
            font-size: 0.6875rem;
            font-weight: 700;
            color: #fff;
            cursor: pointer;
            position: relative;
            z-index: 1;
            border: none;
            transition: background 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
        }
        .pedra90-theme #tab-barber-subscriptions .sub-client-card__actions .sub-btn-primary {
            background: #246344 !important;
            color: #fff !important;
        }
        .sub-client-card__actions .sub-btn-primary:active:not(:disabled):not([aria-disabled="true"]) {
            transform: scale(0.98);
        }
        .sub-client-card__actions .sub-btn-primary--card { background: #6E42FF; }
        .sub-client-card__actions .sub-btn-primary--card:hover { background: #5a36e6; }
        .sub-client-card__actions .sub-btn-primary--pix-auto { background: #16A34A; }
        .sub-client-card__actions .sub-btn-primary--pix-auto:hover { background: #15803D; }
        .sub-client-card__actions .sub-btn-primary--pix-auto:disabled,
        .sub-client-card__actions .sub-btn-primary--pix-auto[aria-disabled="true"] {
            opacity: 0.45;
            cursor: not-allowed;
            pointer-events: none;
        }
        .sub-client-card__actions .sub-btn-primary--card-auto { background: #475569; }
        .sub-client-card__actions .sub-btn-primary--card-auto:hover { background: #334155; }
        .sub-client-card__actions .sub-btn-primary--card-auto:disabled,
        .sub-client-card__actions .sub-btn-primary--card-auto[aria-disabled="true"] {
            opacity: 0.45;
            cursor: not-allowed;
            pointer-events: none;
        }
        .sub-client-card__actions .sub-btn-primary--card-charge { background: #6E42FF; }
        .sub-client-card__actions .sub-btn-primary--card-charge:hover { background: #5a36e6; }
        .sub-client-card__actions .sub-btn-primary.is-loading { opacity: 0.7; pointer-events: none; }
        .sub-client-card__actions .sub-btn-outline {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            padding: 0.55rem 0.75rem;
            border-radius: 0.65rem;
            font-size: 0.6875rem;
            font-weight: 700;
            color: #475569;
            background: #fff;
            border: 1px solid #e2e8f0;
            transition: background 0.15s ease, border-color 0.15s ease;
        }
        .sub-client-card__actions .sub-btn-outline:hover {
            background: #f8fafc;
            border-color: #cbd5e1;
        }
        .sub-send-box {
            display: grid;
            gap: 0.45rem;
            margin-top: 0.75rem;
            position: relative;
            z-index: 3;
        }
        .sub-send-toggle {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.3rem;
            padding: 0.2rem;
            border-radius: 12px;
            background: #f1f5f4;
        }
        .sub-send-opt {
            min-height: 2.3rem;
            border: 0;
            border-radius: 10px;
            background: transparent;
            color: #475569;
            font-size: 0.78rem;
            font-weight: 700;
            cursor: pointer;
            touch-action: manipulation;
            -webkit-tap-highlight-color: rgba(22, 163, 74, 0.16);
        }
        .sub-send-opt.is-on {
            background: #fff;
            color: #14532d;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
        }
        .sub-btn-primary--send {
            width: 100%;
            min-height: 2.6rem;
            border: 0;
            border-radius: 12px;
            background: #16A34A;
            color: #fff;
            font-size: 0.84rem;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            cursor: pointer;
            touch-action: manipulation;
            position: relative;
            z-index: 4;
            -webkit-tap-highlight-color: rgba(22, 163, 74, 0.18);
        }
        .sub-btn-primary--send i,
        .sub-btn-primary--send svg,
        .sub-send-opt i,
        .sub-send-opt svg,
        .sub-client-card__actions i,
        .sub-client-card__actions svg,
        .sub-client-card__actions-secondary i,
        .sub-client-card__actions-secondary svg {
            pointer-events: none;
        }
        #modal-barber-confirm.is-open {
            display: flex !important;
        }
        .sub-client-card__more {
            display: block;
            height: auto;
            min-height: 0;
        }
        .sub-client-card__more--desktop { margin-top: 0.625rem; }
        .sub-client-card__more--desktop .sub-client-card__actions-secondary {
            margin-top: 0;
        }
        .sub-client-card__actions-secondary {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem 0.5rem;
            margin-top: 0.625rem;
            padding-top: 0.625rem;
            border-top: 1px solid #f1f5f9;
        }
        .sub-client-card__actions-secondary button {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.6875rem;
            font-weight: 600;
            color: #64748b;
            padding: 0.25rem 0.5rem;
            border-radius: 0.4rem;
            transition: color 0.15s ease, background 0.15s ease;
        }
        .sub-client-card__actions-secondary button:hover {
            color: #334155;
            background: #f1f5f9;
        }
        .sub-client-card__payment-hint {
            font-size: 0.625rem;
            color: #94a3b8;
            margin-top: 0.5rem;
            line-height: 1.35;
        }
        .sub-saldo-bar {
            height: 6px;
            border-radius: 9999px;
            background: #f1f5f9;
            overflow: hidden;
        }
        .sub-saldo-bar__fill {
            height: 100%;
            border-radius: 9999px;
            background: linear-gradient(90deg, #8b79ff, #6E42FF);
            transition: width 0.3s ease;
        }
        .sub-form-icon {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.75rem;
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            color: #64748b;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .sub-metric-card {
            border-radius: 1rem;
            padding: 1rem 1.125rem;
            display: flex;
            align-items: center;
            gap: 0.875rem;
            border: 1px solid #e2e8f0;
            background: #fff;
            min-width: 0;
            overflow: hidden;
        }
        .sub-metric-card__body {
            min-width: 0;
            flex: 1 1 auto;
        }
        .sub-metric-card__value {
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        .sub-metric-card__icon {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            background: #f1f5f9;
            color: #64748b;
        }
        .sub-metric-card__icon--plans {
            background: #f5f2ff;
            color: #6E42FF;
        }
        .sub-metric-card__icon--clients {
            background: #ecfdf5;
            color: #059669;
        }
        .sub-metric-card__icon--payments {
            background: #f8fafc;
            color: #64748b;
        }
        .sub-metric-card__icon--payments-warn {
            background: #fff1f2;
            color: #e11d48;
        }
        .barber-plan-card {
            border: 1px solid #e2e8f0;
            border-radius: 1.25rem;
            background: #fff;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            height: 100%;
            transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
        }
        .barber-plan-card:hover {
            border-color: #d8ccff;
            box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
            transform: translateY(-2px);
        }
        .barber-plan-card--featured {
            border-color: #c4b5fd;
            box-shadow: 0 8px 28px rgba(110, 66, 255, 0.12);
        }
        .barber-plan-card--featured:hover {
            box-shadow: 0 16px 40px rgba(110, 66, 255, 0.16);
        }
        .barber-plan-card--inactive {
            opacity: 0.72;
            filter: grayscale(0.15);
        }
        .barber-plan-card--inactive:hover {
            transform: none;
        }
        .barber-plan-card__accent {
            height: 4px;
            flex-shrink: 0;
        }
        .barber-plan-card__accent--basic { background: linear-gradient(90deg, #64748b, #94a3b8); }
        .barber-plan-card__accent--plus { background: linear-gradient(90deg, #6E42FF, #a78bfa); }
        .barber-plan-card__accent--unlimited { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
        .barber-plan-card__body {
            padding: 1.25rem 1.35rem 1.35rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .barber-plan-card__price {
            font-size: 1.75rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1.1;
            color: #6E42FF;
        }
        .barber-plan-card--unlimited .barber-plan-card__price {
            color: #d97706;
        }
        .barber-proc-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            padding: 0.3rem 0.65rem;
            border-radius: 9999px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            color: #475569;
        }
        .barber-proc-chip--corte { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
        .barber-proc-chip--barba { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
        .barber-proc-chip--sobrancelha { background: #faf5ff; border-color: #e9d5ff; color: #7e22ce; }
        .barber-plan-qty-pill {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 11px;
            font-weight: 700;
            padding: 0.45rem 0.75rem;
            border-radius: 0.65rem;
            background: linear-gradient(135deg, #f8fafc, #f1f5f9);
            border: 1px solid #e2e8f0;
            color: #334155;
        }
        .barber-plan-card--unlimited .barber-plan-qty-pill {
            background: linear-gradient(135deg, #fffbeb, #fef3c7);
            border-color: #fde68a;
            color: #92400e;
        }
        .barber-plan-card__desc {
            margin-top: 0.85rem;
            font-size: 0.75rem;
            line-height: 1.45;
            color: #64748b;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .barber-plans-head {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            justify-content: space-between;
            gap: 0.85rem 1rem;
        }
        .barber-plans-new-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            border: 0;
            border-radius: 0.75rem;
            background: #6E42FF;
            color: #fff;
            font-size: 0.875rem;
            font-weight: 700;
            padding: 0.65rem 1.05rem;
            min-height: 2.6rem;
            box-shadow: 0 8px 18px rgba(110, 66, 255, 0.22);
            cursor: pointer;
        }
        .barber-plans-new-btn:hover { background: #5a36e6; }
        .barber-plans-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        @media (min-width: 768px) {
            .barber-plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }
        @media (min-width: 1280px) {
            .barber-plans-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        }
        .barber-plans-empty {
            grid-column: 1 / -1;
            border: 2px dashed #e2e8f0;
            border-radius: 1.25rem;
            background: #fff;
            padding: 2.5rem 1.5rem;
            text-align: center;
        }
        .barber-plans-scrim {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 70;
            border: 0;
            background: rgba(15, 23, 42, 0.42);
            cursor: pointer;
        }
        .barber-plans-scrim.is-on { display: block; }
        #barber-plan-form-card.barber-plans-sheet {
            display: none;
        }
        #barber-plan-form-card.barber-plans-sheet.is-open {
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            z-index: 71;
            width: min(28rem, 100vw);
            max-height: 100vh;
            margin: 0;
            border-radius: 0;
            border: 0;
            border-left: 1px solid #e2e8f0;
            box-shadow: -18px 0 44px rgba(15, 23, 42, 0.14);
            background: #fff;
            overflow: hidden;
        }
        .barber-plans-sheet__head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 1rem 1.15rem;
            border-bottom: 1px solid #f1f5f9;
            background: linear-gradient(90deg, #faf8ff, #fff 55%, #f0fdf4);
            flex-shrink: 0;
        }
        .barber-plans-sheet__body {
            flex: 1 1 auto;
            overflow-y: auto;
            padding: 1.15rem 1.15rem 0.5rem;
        }
        .barber-plans-sheet__foot {
            flex-shrink: 0;
            padding: 0.9rem 1.15rem 1.15rem;
            border-top: 1px solid #f1f5f9;
            background: #fff;
        }
        .barber-plans-sheet-close {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            border: 0;
            border-radius: 999px;
            background: #f1f5f9;
            color: #475569;
            font-size: 1.25rem;
            line-height: 1;
            flex-shrink: 0;
            cursor: pointer;
        }
        .barber-plans-sheet-close:hover { background: #e2e8f0; color: #0f172a; }
        @media (max-width: 640px) {
            #barber-plan-form-card.barber-plans-sheet.is-open {
                top: auto;
                left: 0;
                right: 0;
                width: 100%;
                max-height: 90vh;
                border-left: 0;
                border-radius: 1.25rem 1.25rem 0 0;
                box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.16);
            }
        }
        #tab-barber-plans.has-sheet { overflow: hidden; }
        .barber-store-page { max-width: 56rem; }
        .barber-store-head {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            justify-content: space-between;
            gap: 0.85rem 1rem;
        }
        .barber-store-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
        .barber-store-link {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            min-height: 2.5rem;
            padding: 0.55rem 0.95rem;
            border-radius: 0.75rem;
            font-size: 0.8125rem;
            font-weight: 700;
            text-decoration: none;
        }
        .barber-store-link--primary { background: #6E42FF; color: #fff; box-shadow: 0 8px 18px rgba(110, 66, 255, 0.2); }
        .barber-store-link--ghost { background: #fff; color: #475569; border: 1px solid #e2e8f0; }
        .barber-store-card {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 1.25rem;
            overflow: hidden;
        }
        .barber-store-card__head {
            padding: 1rem 1.15rem;
            border-bottom: 1px solid #f1f5f9;
            background: #f8fafc;
        }
        .barber-store-card__head p { margin: 0; }
        .barber-store-card__body { padding: 1.15rem; }
        .barber-store-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.85rem;
        }
        @media (min-width: 768px) {
            .barber-store-grid { grid-template-columns: 1fr 1fr; }
        }
        .barber-store-grid .full { grid-column: 1 / -1; }
        .barber-store-item {
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            padding: 0.9rem;
            background: #fff;
            display: grid;
            gap: 0.55rem;
        }
        .barber-store-item__top { display: flex; gap: 0.5rem; align-items: center; }
        .barber-store-item__top input, .barber-store-item input, .barber-store-item textarea {
            width: 100%;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            padding: 0.55rem 0.7rem;
            font-size: 0.8125rem;
        }
        .barber-store-item__grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0.5rem;
        }
        @media (max-width: 640px) {
            .barber-store-item__grid { grid-template-columns: 1fr; }
        }
        .barber-store-item__grid label {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #94a3b8;
            display: grid;
            gap: 0.25rem;
        }
        .barber-store-icon {
            width: 2rem; height: 2rem; border: 0; border-radius: 999px;
            background: #f1f5f9; color: #64748b; font-size: 1.1rem; cursor: pointer; flex-shrink: 0;
        }
        .barber-store-check {
            display: flex; align-items: center; gap: 0.45rem;
            font-size: 0.8125rem; color: #334155;
        }
        .barber-store-item__idx { margin: 0; font-size: 10px; color: #94a3b8; }
        .barber-store-empty-list { margin: 0; font-size: 0.8125rem; color: #64748b; }
        .barber-store-add {
            border: 1px dashed #d8ccff;
            background: #faf8ff;
            color: #6E42FF;
            font-weight: 700;
            font-size: 0.8125rem;
            border-radius: 0.85rem;
            min-height: 2.5rem;
            width: 100%;
            cursor: pointer;
        }
        .barber-store-save {
            width: 100%;
            min-height: 2.85rem;
            border: 0;
            border-radius: 0.85rem;
            background: #6E42FF;
            color: #fff;
            font-weight: 800;
            box-shadow: 0 8px 18px rgba(110, 66, 255, 0.22);
            cursor: pointer;
        }
        #barber-store-services, #barber-store-products { display: grid; gap: 0.75rem; }
        .admin-feature-card {
            border: 1px solid #e2e8f0;
            border-radius: 0.875rem;
            overflow: hidden;
            background: #fff;
        }
        .admin-feature-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.625rem 0.875rem;
            border-top: 1px solid #f1f5f9;
        }
        .admin-feature-row:first-child { border-top: 0; }
        .admin-feature-row:hover { background: #f8fafc; }
        
        #toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
        .toast { padding: 12px 20px; border-radius: 8px; color: white; font-size: 14px; font-weight: 500; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); animation: slideIn 0.3s ease forwards; opacity: 0; transform: translateX(100%); }
        .toast.success { background-color: #10b981; }
        .toast.error { background-color: #ef4444; }
        .toast.info { background-color: #3b82f6; }
        .toast.warning { background-color: #f59e0b; }
        .toast.fadeOut { animation: fadeOut 0.3s ease forwards; }
        
        @keyframes slideIn { to { opacity: 1; transform: translateX(0); } }
        @keyframes fadeOut { to { opacity: 0; transform: translateX(100%); } }

        #lead-panel-backdrop { transition: opacity 0.25s ease; }
        #lead-panel { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
        #lead-panel.open { transform: translateX(0); }
        .kanban-card-active { border-color: #6E42FF !important; box-shadow: 0 0 0 2px rgba(110, 66, 255, 0.25); }
        .kanban-card .card-actions { opacity: 0; transition: opacity 0.15s; }
        .kanban-card:hover .card-actions { opacity: 1; }
        .kanban-card .card-delete { opacity: 0; transition: opacity 0.15s; }
        .kanban-card:hover .card-delete { opacity: 1; }
        .kanban-tag-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.125rem 0.5rem;
            border-radius: 4px;
            font-size: 9px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            line-height: 1.3;
            max-width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .kanban-tag-chip.is-on { box-shadow: inset 0 0 0 1px currentColor; }
        .lead-tag-toggle {
            border-radius: 4px;
            font-size: 10px;
            font-weight: 700;
            padding: 0.25rem 0.5rem;
            transition: opacity 0.15s ease, transform 0.15s ease;
        }
        .lead-tag-toggle:not(.is-on) { opacity: 0.72; }
        .lead-tag-toggle.is-on { opacity: 1; transform: scale(1.02); }
        .kanban-tags-color-dot {
            width: 1.25rem;
            height: 1.25rem;
            border-radius: 9999px;
            border: 2px solid transparent;
            cursor: pointer;
            transition: transform 0.12s ease, border-color 0.12s ease;
        }
        .kanban-tags-color-dot.is-selected {
            border-color: #0f172a;
            transform: scale(1.08);
        }

        #flow-editor-screen { font-family: 'Inter', sans-serif; }
        .fe-canvas {
            background-color: #f1f5f9;
            background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
            background-size: 22px 22px;
            cursor: grab;
        }
        .fe-canvas.fe-canvas-panning,
        .fe-canvas.fe-canvas-panning * {
            cursor: grabbing !important;
        }
        .fe-canvas .fe-flow-node { cursor: grab; }
        .fe-canvas-inner {
            position: relative;
            min-width: 1200px;
            min-height: 700px;
            will-change: transform;
        }
        .fe-canvas-edges {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }
        .fe-canvas-nodes {
            position: absolute;
            inset: 0;
            z-index: 2;
        }
        .fe-flow-node {
            position: absolute;
            width: 208px;
            min-height: 72px;
            border-radius: 12px;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
            cursor: grab;
            user-select: none;
            transition: box-shadow 0.15s, border-color 0.15s;
        }
        .fe-flow-node:active { cursor: grabbing; }
        .fe-flow-node.selected {
            border-color: #6E42FF;
            box-shadow: 0 0 0 2px rgba(110, 66, 255, 0.28), 0 8px 28px rgba(110, 66, 255, 0.12);
        }
        .fe-flow-node--trigger {
            border-color: #d8ccff;
            background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
            box-shadow: 0 4px 20px rgba(110, 66, 255, 0.1);
        }
        .fe-flow-node--trigger-wide {
            width: 280px;
            min-height: 100px;
        }
        .fe-flow-node-url {
            font-family: ui-monospace, monospace;
            font-size: 10px;
            line-height: 1.35;
            word-break: break-all;
            margin-top: 4px;
        }
        .fe-trigger-copy-btn {
            margin-top: 8px;
            width: 100%;
            font-size: 10px;
            font-weight: 700;
            padding: 6px 10px;
            border-radius: 8px;
            border: none;
            background: #6E42FF;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            cursor: pointer;
        }
        .fe-trigger-copy-btn:hover { background: #5a36e6; }
        .fe-flow-node-accent {
            height: 4px;
            border-radius: 10px 10px 0 0;
        }
        .fe-flow-node-inner {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 12px 12px 12px 14px;
        }
        .fe-flow-node-icon {
            width: 36px;
            height: 36px;
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .fe-flow-node-text { min-width: 0; flex: 1; }
        .fe-flow-node-title {
            display: block;
            font-size: 13px;
            font-weight: 700;
            color: #1e293b;
            line-height: 1.3;
        }
        .fe-flow-node-sub {
            display: block;
            font-size: 11px;
            color: #64748b;
            margin-top: 3px;
            line-height: 1.35;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        .fe-flow-node-tag {
            position: absolute;
            top: -8px;
            left: 12px;
            font-size: 9px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            padding: 2px 8px;
            border-radius: 999px;
            background: #ecfdf5;
            color: #059669;
            border: 1px solid #a7f3d0;
        }
        .fe-flow-node-del {
            position: absolute;
            top: 6px;
            right: 6px;
            padding: 4px;
            border-radius: 6px;
            color: #64748b;
            background: transparent;
            border: none;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.15s, color 0.15s, background 0.15s;
        }
        .fe-flow-node:hover .fe-flow-node-del { opacity: 1; }
        .fe-flow-node-del:hover { color: #f87171; background: rgba(248, 113, 113, 0.12); }
        .fe-flow-node-port {
            position: absolute;
            width: 10px;
            height: 10px;
            border-radius: 999px;
            background: #3b82f6;
            border: 2px solid #f1f5f9;
            top: 50%;
            transform: translateY(-50%);
            z-index: 3;
        }
        .fe-flow-node-port--in { left: -5px; }
        .fe-flow-node-port--out { right: -5px; }
        .fe-flow-node-port--opt {
            right: -5px;
            background: #10b981;
            cursor: pointer;
            z-index: 4;
        }
        .fe-flow-node-port--opt:hover {
            background: #059669;
            transform: translateY(-50%) scale(1.2);
        }
        .fe-flow-node--menu .fe-flow-node-port--out:not(.fe-flow-node-port--opt) { display: none; }
        .fe-flow-node { overflow: visible; }
        .fe-menu-opt-strip {
            margin-top: 4px;
            border-top: 1px solid #f1f5f9;
            padding-top: 2px;
        }
        .fe-flow-node-opt-row {
            position: relative;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 10px;
            color: #64748b;
            padding: 5px 10px 5px 0;
            border-top: 1px solid #f1f5f9;
            line-height: 1.3;
            min-height: 30px;
        }
        .fe-flow-node-opt-row:first-of-type { border-top: none; }
        .fe-flow-node-port--row {
            right: -11px;
            left: auto;
        }
        .fe-flow-node-opt-num {
            font-weight: 800;
            color: #059669;
            flex-shrink: 0;
        }
        .fe-flow-node--stub {
            width: 168px;
            min-height: 52px;
            border-style: dashed;
            border-color: #a7f3d0;
            background: #ecfdf5;
            cursor: grab;
        }
        .fe-flow-node--stub:active { cursor: grabbing; }
        .fe-flow-node--stub .fe-flow-node-inner { padding: 10px 12px; }
        .fe-flow-node--stub:hover { border-color: #10b981; background: #d1fae5; }
        .fe-flow-node--expanded {
            z-index: 12;
            cursor: default;
            box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
        }
        .fe-flow-node--expanded:active { cursor: default; }
        .fe-flow-node-edit-body {
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid #f1f5f9;
            max-height: 420px;
            overflow-y: auto;
            user-select: text;
            cursor: text;
        }
        .fe-flow-node-edit-body .fe-inline-textarea { min-height: 88px; }
        .fe-flow-node-edit-body--menu-meta {
            max-height: none;
            overflow: visible;
        }
        .fe-flow-node--trigger .fe-flow-node-port--in { display: none; }
        .fe-canvas-edge {
            fill: none;
            stroke: #94a3b8;
            stroke-width: 2;
            stroke-dasharray: 6 5;
        }
        #fe-props-body textarea,
        #fe-props-body input[type="text"],
        #fe-props-body input[type="number"] {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            color: #1e293b;
        }
        #fe-props-body textarea:focus,
        #fe-props-body input:focus {
            outline: none;
            border-color: #6E42FF;
            box-shadow: 0 0 0 2px rgba(110, 66, 255, 0.15);
        }
        .fe-inline-textarea, .fe-inline-input {
            width: 100%;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            color: #1e293b;
            font-size: 13px;
            line-height: 1.45;
            padding: 10px 12px;
            resize: vertical;
            user-select: text;
            cursor: text;
        }
        .fe-inline-textarea:focus, .fe-inline-input:focus {
            outline: none;
            border-color: #6E42FF;
            box-shadow: 0 0 0 2px rgba(110, 66, 255, 0.2);
        }
        .fe-var-insert-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            font-weight: 700;
            padding: 6px 12px;
            border-radius: 8px;
            border: 1px solid #d8ccff;
            background: #f0ebff;
            color: #6E42FF;
            transition: background 0.15s, border-color 0.15s;
        }
        .fe-var-insert-btn:hover {
            background: #e4d9ff;
            border-color: #6E42FF;
            color: #5a36e6;
        }
        .fe-genius-write-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            font-size: 11px;
            font-weight: 700;
            border-radius: 8px;
            border: 1px solid #c4b5fd;
            background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
            color: #5b21b6;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .fe-genius-write-btn:hover {
            background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
            border-color: #8b5cf6;
            color: #4c1d95;
        }
        .fe-genius-write-btn:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }
        .fe-flow-helper-btns {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
        }
        .fe-trigger-webhook {
            background: #f8f6ff;
            border: 1px solid #d8ccff;
            border-radius: 12px;
            padding: 12px;
        }
        .fe-var-picker-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid #e2e8f0;
            background: white;
            cursor: pointer;
            transition: border-color 0.15s, background 0.15s;
        }
        .fe-var-picker-item:hover {
            border-color: #6E42FF;
            background: #f8f6ff;
        }
        .fe-menu-inline { padding: 2px 0; }
        .fe-branch-col {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 10px 12px;
            margin-top: 10px;
        }
        .fe-branch-num {
            width: 22px;
            height: 22px;
            border-radius: 999px;
            background: #f0ebff;
            color: #6E42FF;
            font-size: 11px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .fe-branch-step {
            margin-top: 8px;
            padding: 8px;
            border-radius: 10px;
            background: rgba(2, 6, 23, 0.45);
            border: 1px dashed rgba(71, 85, 105, 0.6);
        }
        .fe-branch-actions button {
            font-size: 10px;
            font-weight: 700;
            padding: 5px 10px;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            color: #475569;
            background: #fff;
            transition: border-color 0.15s, color 0.15s, background 0.15s;
        }
        .fe-branch-actions button:hover {
            border-color: #6E42FF;
            color: #6E42FF;
            background: #f0ebff;
        }
        .fe-path-chip {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 10px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 999px;
            border: 1px solid #e2e8f0;
            background: #fff;
            color: #475569;
            cursor: pointer;
        }
        .fe-path-chip:hover {
            border-color: #6E42FF;
            color: #6E42FF;
            background: #f0ebff;
        }
        .fe-path-add-btn {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            background: #fff;
            color: #64748b;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: border-color 0.15s, background 0.15s, color 0.15s;
        }
        .fe-path-add-btn:hover {
            border-color: #6E42FF;
            color: #6E42FF;
            background: #f0ebff;
        }
        .fe-branch-add-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 6px;
        }
        .fe-branch-add-grid button {
            display: flex;
            align-items: center;
            gap: 5px;
            justify-content: flex-start;
            padding: 6px 8px;
            text-align: left;
        }
        .fe-branch-step-header {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 6px;
        }
        .fe-branch-preview {
            border-radius: 8px;
            overflow: hidden;
        }
        .fe-branch-edit-btn {
            font-size: 10px;
            font-weight: 700;
            padding: 5px 10px;
            border-radius: 8px;
            border: 1px solid rgba(110, 66, 255, 0.45);
            color: #c4b5fd;
            background: rgba(110, 66, 255, 0.1);
            width: 100%;
        }
        .fe-branch-edit-btn:hover {
            background: rgba(110, 66, 255, 0.18);
        }
        .fe-branch-nested-menu {
            border-color: rgba(16, 185, 129, 0.35);
        }
        .fe-add-option-btn {
            margin-top: 10px;
            width: 100%;
            padding: 8px 12px;
            border-radius: 10px;
            border: 1px dashed #c4b5fd;
            color: #6E42FF;
            font-size: 11px;
            font-weight: 700;
            background: #faf8ff;
        }
        .fe-add-option-btn:hover { background: #f0ebff; }
        .fe-block-btn {
            transition: transform 0.15s, border-color 0.15s, background 0.15s;
        }
        .fe-block-btn:hover {
            transform: translateY(-2px);
            border-color: rgba(110, 66, 255, 0.5);
            background: rgba(110, 66, 255, 0.08);
        }
        .fe-node {
            transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
            border-radius: 16px;
        }
        .fe-node:hover:not(.fe-node--trigger) {
            transform: translateY(-1px);
        }
        .fe-node.selected {
            box-shadow: 0 0 0 2px #6E42FF, 0 16px 48px rgba(110, 66, 255, 0.22);
            border-color: #6E42FF !important;
        }
        .fe-connector {
            width: 2px;
            min-height: 32px;
            background: linear-gradient(180deg, rgba(110, 66, 255, 0.6) 0%, #334155 100%);
            margin: 0 auto;
            border-radius: 2px;
            position: relative;
        }
        .fe-connector::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 50%;
            transform: translateX(-50%);
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #475569;
        }
        .fe-branch-line {
            border-left: 2px dashed rgba(110, 66, 255, 0.35);
            margin-left: 0.75rem;
            padding-left: 0.75rem;
        }
        .fe-wa-preview {
            background: #0b141a;
            border-radius: 12px;
            padding: 10px 12px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }
        .fe-wa-preview-title {
            font-size: 13px;
            font-weight: 600;
            color: #e9edef;
            line-height: 1.35;
        }
        .fe-wa-preview-desc {
            font-size: 12px;
            color: #8696a0;
            margin-top: 4px;
            line-height: 1.4;
        }
        .fe-wa-btn-chip {
            display: block;
            width: 100%;
            text-align: center;
            padding: 9px 12px;
            margin-top: 6px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(134, 166, 160, 0.25);
            color: #00a884;
            font-size: 12px;
            font-weight: 600;
        }
        .fe-wa-list-chip {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: 8px;
            padding: 10px;
            border-radius: 8px;
            background: rgba(0, 168, 132, 0.12);
            border: 1px solid rgba(0, 168, 132, 0.25);
            color: #00a884;
            font-size: 12px;
            font-weight: 600;
        }
        .fe-node-badge {
            font-size: 9px;
            font-weight: 700;
            uppercase;
            letter-spacing: 0.04em;
            padding: 2px 8px;
            border-radius: 999px;
            background: rgba(0, 168, 132, 0.15);
            color: #34d399;
            border: 1px solid rgba(52, 211, 153, 0.25);
        }
        .fe-branch-card {
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(51, 65, 85, 0.8);
            border-radius: 10px;
            padding: 8px 10px;
        }
        .fe-media-upload-zone {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 16px;
            border-radius: 12px;
            border: 1px dashed rgba(100, 116, 139, 0.6);
            background: rgba(15, 23, 42, 0.5);
            cursor: pointer;
            transition: border-color 0.15s, background 0.15s;
        }
        .fe-media-upload-zone:hover {
            border-color: rgba(110, 66, 255, 0.45);
            background: rgba(110, 66, 255, 0.06);
        }
        .fe-media-preview {
            margin-top: 10px;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid rgba(51, 65, 85, 0.8);
            background: #0b141a;
        }
        .fe-media-preview img, .fe-media-preview video {
            max-height: 140px;
            width: 100%;
            object-fit: cover;
            display: block;
        }
        .fe-audio-recording {
            animation: fe-pulse 1.2s ease-in-out infinite;
        }
        @keyframes fe-pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.55; }
        }
        .fe-props-panel textarea, .fe-props-panel input, .fe-props-panel select {
            background: #fff;
            border-color: #e2e8f0;
            color: #1e293b;
        }
        .fe-props-panel textarea:focus, .fe-props-panel input:focus {
            border-color: #6E42FF;
            outline: none;
            box-shadow: 0 0 0 2px rgba(110, 66, 255, 0.12);
        }

        .recording-audio {
            background-color: #ef4444 !important;
            animation: pulse-rec 1.2s ease-in-out infinite;
        }
        @keyframes pulse-rec {
            0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
            50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
        }
        .chat-media-img { max-width: min(280px, 100%); max-height: 320px; border-radius: 8px; object-fit: cover; cursor: zoom-in; }
        .chat-sticker-img { width: 128px; height: 128px; object-fit: contain; }
        .chat-doc-wrap { min-width: min(260px, 100%); max-width: min(320px, 100%); }
        .chat-doc-preview {
            width: 100%;
            min-height: 180px;
            max-height: 280px;
            border-radius: 8px;
            overflow: hidden;
            background: #f1f5f9;
            border: 1px solid rgba(15, 23, 42, 0.08);
        }
        .chat-doc-frame { width: 100%; height: 240px; border: none; display: block; background: #fff; pointer-events: none; }
        .chat-doc-img { width: 100%; max-height: 260px; object-fit: contain; display: block; background: #fff; }
        .chat-doc-action {
            width: 1.75rem;
            height: 1.75rem;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #64748b;
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid rgba(15, 23, 42, 0.08);
            cursor: pointer;
            transition: color 0.15s ease, background 0.15s ease;
        }
        .chat-doc-action:hover { color: #6E42FF; background: #fff; }
        #lightbox-midia-doc { width: min(920px, 96vw); height: min(88vh, 900px); border: none; border-radius: 8px; background: #fff; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45); }
        .chat-list-item-actions { opacity: 0.45; transition: opacity 0.15s ease; }
        .group:hover .chat-list-item-actions { opacity: 1; }
        @media (hover: none) {
            .chat-list-item-actions { opacity: 0.75; }
        }

        .chat-msg-row { position: relative; width: 100%; }
        .chat-msg-menu-wrap { position: relative; display: inline-flex; align-items: center; }
        .chat-msg-menu-btn {
            width: 1.35rem;
            height: 1.35rem;
            border-radius: 9999px;
            background: transparent;
            border: none;
            color: #64748b;
            opacity: 0.45;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
        }
        .chat-msg-row:hover .chat-msg-menu-btn,
        .chat-msg-menu-wrap:focus-within .chat-msg-menu-btn,
        .chat-msg-menu-btn.menu-open {
            opacity: 1;
            background: rgba(255, 255, 255, 0.85);
            color: #334155;
        }
        .chat-msg-dropdown {
            position: absolute;
            bottom: calc(100% + 4px);
            right: 0;
            min-width: 11rem;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
            padding: 0.25rem;
            z-index: 40;
        }
        .chat-msg-dropdown button {
            width: 100%;
            text-align: left;
            font-size: 0.75rem;
            font-weight: 600;
            color: #dc2626;
            padding: 0.5rem 0.625rem;
            border-radius: 0.375rem;
        }
        .chat-msg-dropdown button:hover { background: #fef2f2; }

        /* Billing / Assinatura */
        #tab-billing .billing-plan-card { min-height: 0; }
        /* Loja de carros — logos dos portais (mesmo padrão) */
        .auto-portal-logo {
            width: 3.25rem;
            height: 3.25rem;
            border-radius: 0.85rem;
            background: #fff;
            border: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.35rem;
            overflow: hidden;
            flex-shrink: 0;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        }
        .auto-portal-logo--app {
            padding: 0;
            border: none;
            border-radius: 22.5%;
            background: #000;
            box-shadow:
                0 1px 2px rgba(15, 23, 42, 0.12),
                0 6px 14px rgba(15, 23, 42, 0.12);
        }
        .auto-portal-logo--lg {
            width: 3.75rem;
            height: 3.75rem;
            border-radius: 1rem;
            padding: 0.4rem;
        }
        .auto-portal-logo--lg.auto-portal-logo--app {
            padding: 0;
            border-radius: 22.5%;
        }
        .auto-portal-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }
        .auto-portal-logo--app img {
            object-fit: cover;
        }
        #tab-billing .billing-crm-hero {
            border-radius: 0.75rem;
            padding: 0.875rem 1rem;
            margin-bottom: 0.75rem;
            border: 2px solid rgba(110, 66, 255, 0.35);
            background: linear-gradient(135deg, rgba(110, 66, 255, 0.12) 0%, rgba(110, 66, 255, 0.04) 100%);
        }
        #tab-billing .billing-plan-card.bg-slate-900 .billing-crm-hero {
            border-color: rgba(167, 139, 250, 0.45);
            background: linear-gradient(135deg, rgba(110, 66, 255, 0.28) 0%, rgba(15, 23, 42, 0.6) 100%);
        }
        #tab-billing .billing-crm-pill {
            font-size: 10px;
            font-weight: 700;
            padding: 0.2rem 0.5rem;
            border-radius: 9999px;
            border: 1px solid rgba(110, 66, 255, 0.25);
            background: rgba(110, 66, 255, 0.08);
        }
        #tab-billing .billing-plan-card.bg-slate-900 .billing-crm-pill {
            border-color: rgba(167, 139, 250, 0.35);
            background: rgba(110, 66, 255, 0.2);
            color: #e9d5ff;
        }
        #tab-billing .billing-section-label {
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin-top: 0.5rem;
            margin-bottom: 0.35rem;
        }
        #billing-interval-picker .billing-interval-btn {
            padding: 0.375rem 0.625rem;
            font-size: 11px;
            line-height: 1.2;
            border-radius: 9999px;
            white-space: nowrap;
        }
        #billing-summary-panel .billing-summary-grid {
            display: grid;
            gap: 1rem;
        }
        @media (min-width: 1024px) {
            #billing-summary-panel .billing-summary-grid {
                grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
                align-items: center;
            }
        }

        /* ── Mobile layout ── */
        @media (max-width: 767px) {
            html, body {
                height: 100%;
                height: 100dvh;
                max-height: 100dvh;
                overflow: hidden;
                overscroll-behavior: none;
            }
            body { overflow-x: hidden; }
            #app-container:not(.hidden) {
                display: flex;
                flex-direction: column;
                height: 100dvh;
                max-height: 100dvh;
                min-height: 0;
                overflow: hidden;
            }
            .tab-content { padding: 1rem !important; }
            .mobile-hide { display: none !important; }
            #app-main-column {
                flex: 1 1 0;
                min-height: 0;
                display: flex;
                flex-direction: column;
                overflow: hidden;
                padding-top: 0 !important;
            }
            #app-main-column > header.glass-panel {
                position: relative;
                top: auto;
                flex: 0 0 3.5rem;
                width: 100%;
                min-width: 0;
            }
            #trial-banner {
                position: relative;
                top: auto;
                left: auto;
                right: auto;
                width: 100%;
                max-width: 100%;
                flex: 0 0 auto;
                align-items: stretch;
                gap: 0.5rem;
                padding: 0.625rem 0.75rem;
                box-sizing: border-box;
                overflow: hidden;
            }
            #trial-banner-text {
                width: 100%;
                font-size: 0.6875rem;
                line-height: 1.35;
            }
            #trial-banner-actions {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 0.5rem;
                width: 100%;
                min-width: 0;
                flex-shrink: 1;
            }
            #trial-banner-actions > button {
                width: 100%;
                max-width: 100%;
                min-width: 0;
                min-height: 2.625rem;
                justify-content: center;
                padding: 0.5rem;
                font-size: 0.6875rem;
                line-height: 1.15;
                text-align: center;
                white-space: normal;
                overflow-wrap: anywhere;
            }
            @media (max-width: 360px) {
                #trial-banner-actions {
                    grid-template-columns: 1fr;
                }
            }
            #app-main-scroll {
                flex: 1 1 0;
                min-height: 0;
            }
            #dashboard-panel-segment .flux-dash[data-flux-accent="barber"] > :not([hidden]) ~ :not([hidden]) {
                margin-top: 0.75rem;
            }
            #dashboard-panel-segment .flux-dash[data-flux-accent="barber"] > .flux-dash__cta-row {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 0.5rem;
            }
            #dashboard-panel-segment .flux-dash[data-flux-accent="barber"] > .flux-dash__cta-row .flux-dash__cta {
                width: 100%;
                min-width: 0;
                min-height: 3rem;
                justify-content: center;
                padding: 0.625rem 0.5rem;
                font-size: 0.75rem;
                line-height: 1.2;
                text-align: center;
            }
            #dashboard-panel-segment .flux-dash[data-flux-accent="barber"] > .flux-dash__cta-row .flux-dash__cta--primary,
            #dashboard-panel-segment .flux-dash[data-flux-accent="barber"] #dashboard-segment-refresh-btn {
                grid-column: 1 / -1;
            }
            #dashboard-panel-segment .flux-dash[data-flux-accent="barber"] > .grid {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 0.625rem;
            }
            #dashboard-panel-segment .flux-dash[data-flux-accent="barber"] > .grid .sub-metric-card {
                min-height: 6.75rem;
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
                padding: 0.75rem;
            }
            #dashboard-panel-segment .flux-dash[data-flux-accent="barber"] > .grid .sub-metric-card__icon {
                width: 2rem;
                height: 2rem;
                border-radius: 0.625rem;
            }
            #dashboard-panel-segment .flux-dash[data-flux-accent="barber"] > .grid .sub-metric-card__body {
                width: 100%;
                overflow: visible;
            }
            #dashboard-panel-segment .flux-dash[data-flux-accent="barber"] > .flux-dash__board {
                padding: 0.875rem !important;
                border-radius: 1rem;
            }
            /* Assinaturas: resumo compacto e cartões legíveis no celular. */
            #tab-barber-subscriptions {
                padding: 0.875rem !important;
            }
            #tab-barber-subscriptions > .max-w-6xl.space-y-5 > :not([hidden]) ~ :not([hidden]) {
                margin-top: 0.875rem !important;
            }
            #tab-barber-subscriptions .segment-tab-badge {
                margin-bottom: 0.2rem !important;
                font-size: 0.5625rem !important;
                letter-spacing: 0.11em;
            }
            #tab-barber-subscriptions h2 {
                font-size: 1.375rem !important;
                line-height: 1.15;
                letter-spacing: -0.025em;
            }
            #barber-sub-summary {
                grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
                gap: 0.5rem !important;
            }
            #barber-sub-summary .sub-metric-card {
                min-height: 6.5rem;
                padding: 0.625rem;
                flex-direction: column;
                align-items: flex-start;
                gap: 0.375rem;
                border-radius: 0.875rem;
                box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
                overflow: visible;
            }
            #barber-sub-summary .sub-metric-card__icon {
                width: 1.875rem;
                height: 1.875rem;
                border-radius: 0.625rem;
            }
            #barber-sub-summary .sub-metric-card__body {
                width: 100%;
                min-width: 0;
            }
            #barber-sub-summary .sub-metric-card__body > p:first-child {
                font-size: 0.5rem !important;
                letter-spacing: 0.04em;
                white-space: nowrap;
            }
            #barber-sub-summary .sub-metric-card__body > .text-2xl {
                font-size: 1.375rem !important;
                line-height: 1.05 !important;
            }
            #barber-sub-summary .sub-metric-card__body > p:last-child:not(:first-child) {
                font-size: 0.5625rem !important;
                line-height: 1.2;
                overflow-wrap: anywhere;
            }
            #tab-barber-subscriptions .grid.lg\:grid-cols-12 {
                gap: 1rem !important;
            }
            #tab-barber-subscriptions .text-\[10px\].font-bold.uppercase.tracking-wide.text-slate-400 {
                margin-bottom: 0.625rem !important;
                font-size: 0.5625rem !important;
                letter-spacing: 0.09em;
            }
            #tab-barber-subscriptions .sub-client-card {
                border-radius: 1rem;
                box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045);
            }
            #tab-barber-subscriptions .sub-client-card__body {
                padding: 0.875rem !important;
            }
            #tab-barber-subscriptions .sub-client-card__identity {
                align-items: flex-start;
                gap: 0.625rem;
            }
            #tab-barber-subscriptions .sub-client-avatar {
                width: 2.5rem;
                height: 2.5rem;
                border-radius: 0.75rem;
            }
            #tab-barber-subscriptions .sub-client-card__name-row {
                align-items: flex-start;
                gap: 0.3rem;
            }
            #tab-barber-subscriptions .sub-client-card__title {
                flex-basis: 100%;
                font-size: 0.9375rem;
                white-space: normal;
                overflow: visible;
                text-overflow: clip;
            }
            #tab-barber-subscriptions .sub-client-card__plan {
                font-size: 0.75rem;
            }
            #tab-barber-subscriptions .sub-badge {
                font-size: 0.5625rem;
                padding: 0.18rem 0.4rem;
            }
            #tab-barber-subscriptions .sub-client-card__meta {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 0.375rem;
                margin-top: 0.625rem;
            }
            #tab-barber-subscriptions .sub-client-card__meta-chip {
                min-width: 0;
                padding: 0.35rem 0.5rem;
                line-height: 1.2;
                white-space: normal;
            }
            #tab-barber-subscriptions .sub-client-card__meta-chip i {
                flex: 0 0 auto;
            }
            #tab-barber-subscriptions .sub-client-card__saldo {
                margin-top: 0.625rem;
                padding: 0.625rem 0.75rem;
            }
            #tab-barber-subscriptions .sub-client-card__card-alert {
                margin-top: 0.625rem;
                padding: 0.5rem 0.625rem;
                font-size: 0.625rem;
            }
            #tab-barber-subscriptions .sub-client-card__payment-hint {
                display: none;
            }
            #tab-barber-subscriptions .sub-client-card__actions {
                grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
                gap: 0.4rem;
                margin-top: 0.75rem;
            }
            #tab-barber-subscriptions .sub-client-card__actions .sub-btn-primary,
            #tab-barber-subscriptions .sub-client-card__actions .sub-btn-outline {
                min-width: 0;
                min-height: 2.625rem;
                padding: 0.5rem;
                font-size: 0.6875rem;
                line-height: 1.15;
                white-space: normal;
            }
            #tab-barber-subscriptions .sub-client-card__more-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 0.3rem;
                width: 100%;
                min-height: 2.25rem;
                margin-top: 0.25rem;
                border-radius: 0.625rem;
                color: #64748b;
                font-size: 0.6875rem;
                font-weight: 700;
                cursor: pointer;
            }
            #tab-barber-subscriptions .sub-client-card__more[open] .sub-client-card__more-toggle {
                background: #f8fafc;
                color: #334155;
            }
            #tab-barber-subscriptions .sub-client-card__actions-secondary {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 0.375rem;
                margin-top: 0.375rem;
                padding-top: 0.5rem;
            }
            #tab-barber-subscriptions .sub-client-card__actions-secondary button {
                min-width: 0;
                min-height: 2.25rem;
                justify-content: center;
                padding: 0.375rem;
                background: #f8fafc;
                font-size: 0.625rem;
                line-height: 1.15;
                text-align: center;
                white-space: normal;
            }
            #tab-barber-subscriptions #barber-client-form-card > div {
                padding-left: 1rem !important;
                padding-right: 1rem !important;
            }
            .mobile-sidebar-backdrop {
                position: fixed; inset: 0; z-index: 40;
                background: rgba(15, 23, 42, 0.55);
                opacity: 0; pointer-events: none;
                transition: opacity 0.25s ease;
            }
            .mobile-sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
            #app-sidebar {
                position: fixed; top: 0.75rem; left: 0.75rem; bottom: 0.75rem;
                width: min(280px, 88vw); z-index: 50;
                height: calc(100vh - 1.5rem);
                height: calc(100dvh - 1.5rem);
                max-height: calc(100vh - 1.5rem);
                max-height: calc(100dvh - 1.5rem);
                min-height: 0;
                margin: 0;
                border-radius: 1.75rem;
                transform: translateX(calc(-100% - 1.25rem));
                transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
            }
            #app-sidebar .sidebar-nav-scroll {
                flex: 1 1 0;
                min-height: 0;
                overscroll-behavior: contain;
            }
            #app-sidebar.open { transform: translateX(0); }
            .mobile-bottom-nav {
                position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
                padding-bottom: env(safe-area-inset-bottom, 0px);
                background: rgba(15, 23, 42, 0.98);
                border-top: 1px solid rgba(71, 85, 105, 0.5);
                box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
            }
            .mobile-bottom-nav-btn {
                flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
                gap: 2px; padding: 8px 2px 6px; color: #94a3b8; font-size: 9px; font-weight: 600;
                transition: color 0.15s; min-width: 0;
            }
            .mobile-bottom-nav-btn span {
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
            .mobile-bottom-nav-btn.active { color: #fff; }
            .mobile-bottom-nav-btn.active i { color: #a78bfa; }
            #app-main-scroll { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
            #tab-kanban .kanban-toolbar {
                margin-left: 0.75rem !important;
                margin-right: 0.75rem !important;
                flex-direction: column !important;
                align-items: stretch !important;
                gap: 0.625rem !important;
            }
            #tab-kanban {
                padding: 0 !important;
            }
            #tab-kanban .kanban-toolbar > div {
                width: 100%;
                min-width: 0;
            }
            #tab-kanban .kanban-toolbar > div:first-child {
                display: grid;
                grid-template-columns: 1fr;
                gap: 0.5rem;
            }
            @media (min-width: 400px) {
                #tab-kanban .kanban-toolbar > div:first-child {
                    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
                }
            }
            #tab-kanban .kanban-toolbar > div:last-child {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 0.5rem;
            }
            #tab-kanban .kanban-toolbar > div:last-child button {
                width: 100%;
                min-width: 0;
                justify-content: center;
            }
            #tab-kanban .kanban-toolbar select,
            #tab-kanban .kanban-toolbar input {
                width: 100%;
                max-width: 100%;
                min-width: 0;
            }
            #tab-kanban .kanban-board {
                padding-left: 0.75rem !important;
                padding-right: 0.75rem !important;
                scroll-snap-type: x mandatory;
                scroll-padding-inline: 0.75rem;
                -webkit-overflow-scrolling: touch;
            }
            .kanban-column {
                flex: 0 0 calc(100vw - 1.5rem);
                min-width: calc(100vw - 1.5rem);
                width: calc(100vw - 1.5rem);
                scroll-snap-align: start;
                scroll-snap-stop: always;
            }
            .kanban-card .card-actions,
            .kanban-card .card-delete { opacity: 1 !important; }
            #tab-chat.chat-conversation-mode #chat-contact-list-wrap { display: none !important; }
            #tab-chat.chat-conversation-mode #chat-conversation-wrap { display: flex !important; flex: 1; min-width: 0; }
            #tab-chat.chat-list-mode #chat-contact-list-wrap { display: flex !important; width: 100% !important; }
            #tab-chat.chat-list-mode #chat-conversation-wrap { display: none !important; }
            #contacts-table-wrap { margin-left: -0.25rem; margin-right: -0.25rem; }
        }
        @media (min-width: 768px) {
            .mobile-only { display: none !important; }
            #app-sidebar { transform: none !important; }
        }
        #support-fab {
            position: fixed;
            right: 1rem;
            bottom: 1rem;
            z-index: 45;
            width: 3.25rem;
            height: 3.25rem;
            border-radius: 9999px;
            background: linear-gradient(135deg, #6E42FF 0%, #5a36e6 100%);
            color: #fff;
            box-shadow: 0 10px 28px rgba(110, 66, 255, 0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
        }
        #support-fab:hover {
            transform: translateY(-2px) scale(1.04);
            box-shadow: 0 14px 32px rgba(110, 66, 255, 0.5);
        }
        #support-fab:active { transform: scale(0.96); }
        html.fluxo-barber-app #support-fab,
        html.fluxo-barber-app #header-support-button,
        html.fluxo-barber-app #auth-footer-sep,
        html.fluxo-barber-app [onclick="abrirCentralSuporteLogin()"] {
            display: none !important;
        }
        #genius-guide-fab {
            position: fixed;
            right: 1rem;
            bottom: calc(1rem + 3.25rem + 0.65rem);
            z-index: 44;
            width: 3.25rem;
            height: 3.25rem;
            border-radius: 9999px;
            background: linear-gradient(135deg, #a78bfa 0%, #6E42FF 55%, #5a36e6 100%);
            color: #fff;
            box-shadow: 0 10px 28px rgba(139, 92, 246, 0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            animation: genius-support-pulse 2.8s ease-in-out infinite;
        }
        #genius-guide-fab:hover {
            transform: translateY(-2px) scale(1.04);
            box-shadow: 0 14px 32px rgba(139, 92, 246, 0.55);
            animation: none;
        }
        @keyframes genius-support-pulse {
            0%, 100% { box-shadow: 0 8px 24px rgba(110, 66, 255, 0.35), 0 0 0 0 rgba(110, 66, 255, 0.45); }
            50% { box-shadow: 0 12px 32px rgba(110, 66, 255, 0.55), 0 0 0 6px rgba(110, 66, 255, 0); }
        }
        .btn-genius-support {
            animation: genius-support-pulse 2.4s ease-in-out infinite;
        }
        .btn-genius-support:hover {
            animation: none;
        }
        #genius-support-nudge {
            animation: slideIn 0.35s ease forwards;
        }
        @keyframes genius-magic-border-flow {
            0%, 100% { box-shadow: 0 4px 24px rgba(110, 66, 255, 0.12), inset 0 0 0 1px rgba(110, 66, 255, 0.22); }
            50% { box-shadow: 0 8px 32px rgba(139, 92, 246, 0.22), inset 0 0 0 1px rgba(167, 139, 250, 0.45); }
        }
        @keyframes genius-icon-glow {
            0%, 100% { box-shadow: 0 8px 20px rgba(110, 66, 255, 0.35); transform: scale(1); }
            50% { box-shadow: 0 10px 28px rgba(167, 139, 250, 0.55); transform: scale(1.04); }
        }
        .genius-magic-card {
            animation: genius-magic-border-flow 3.2s ease-in-out infinite;
        }
        .genius-magic-icon {
            animation: genius-icon-glow 2.6s ease-in-out infinite;
        }
        .text-genius-magic {
            background: linear-gradient(135deg, #4c1d95 0%, #6E42FF 42%, #a78bfa 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .genius-ui-spotlight {
            outline: 3px solid rgba(167, 139, 250, 0.95) !important;
            outline-offset: 3px;
            box-shadow: 0 0 0 6px rgba(110, 66, 255, 0.35) !important;
            animation: genius-spotlight-pulse 1.1s ease-in-out infinite;
            border-radius: 12px;
            z-index: 130;
            position: relative;
        }
        @keyframes genius-spotlight-pulse {
            0%, 100% { box-shadow: 0 0 0 4px rgba(110, 66, 255, 0.4); }
            50% { box-shadow: 0 0 0 10px rgba(110, 66, 255, 0.12); }
        }
        @keyframes auto-post-scan-y {
            0% { top: 0%; opacity: 0.2; }
            8% { opacity: 1; }
            92% { opacity: 1; }
            100% { top: 100%; opacity: 0.2; }
        }
        @keyframes auto-post-scan-grid {
            0% { background-position: 0 0, 0 0; opacity: 0.25; }
            50% { opacity: 0.45; }
            100% { background-position: 24px 24px, -24px -24px; opacity: 0.25; }
        }
        @keyframes auto-post-scan-pulse {
            0%, 100% { transform: scale(1); opacity: 0.9; }
            50% { transform: scale(1.05); opacity: 1; }
        }
        @keyframes auto-post-scan-dots {
            0%, 20% { content: ''; }
            40% { content: '.'; }
            60% { content: '..'; }
            80%, 100% { content: '...'; }
        }
        .auto-post-scan-overlay {
            position: absolute;
            inset: 0;
            z-index: 20;
            border-radius: 0.75rem;
            overflow: hidden;
            pointer-events: none;
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.55));
        }
        .auto-post-scan-overlay.is-active {
            pointer-events: auto;
        }
        .auto-post-scan-overlay__grid {
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(167, 139, 250, 0.18) 1px, transparent 1px),
                linear-gradient(90deg, rgba(167, 139, 250, 0.18) 1px, transparent 1px);
            background-size: 24px 24px;
            animation: auto-post-scan-grid 2.4s linear infinite;
        }
        .auto-post-scan-overlay__beam {
            position: absolute;
            left: 0;
            right: 0;
            height: 3px;
            margin-top: -1.5px;
            background: linear-gradient(90deg, transparent, #c4b5fd, #6E42FF, #c4b5fd, transparent);
            box-shadow: 0 0 18px 4px rgba(110, 66, 255, 0.65), 0 0 40px 10px rgba(139, 92, 246, 0.35);
            animation: auto-post-scan-y 2.2s ease-in-out infinite;
        }
        .auto-post-scan-overlay__beam::before {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            top: -40px;
            height: 80px;
            background: linear-gradient(180deg, transparent, rgba(110, 66, 255, 0.22), transparent);
        }
        .auto-post-scan-overlay__corners span {
            position: absolute;
            width: 22px;
            height: 22px;
            border-color: #a78bfa;
            border-style: solid;
        }
        .auto-post-scan-overlay__corners span:nth-child(1) { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
        .auto-post-scan-overlay__corners span:nth-child(2) { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
        .auto-post-scan-overlay__corners span:nth-child(3) { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
        .auto-post-scan-overlay__corners span:nth-child(4) { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
        .auto-post-scan-overlay__badge {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            min-width: 12rem;
            max-width: 85%;
            padding: 0.85rem 1rem;
            border-radius: 1rem;
            background: rgba(15, 23, 42, 0.82);
            border: 1px solid rgba(167, 139, 250, 0.45);
            backdrop-filter: blur(8px);
            text-align: center;
            animation: auto-post-scan-pulse 1.6s ease-in-out infinite;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
        }
        .genius-ui-action-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 11px;
            font-weight: 700;
            padding: 0.4rem 0.65rem;
            border-radius: 0.65rem;
            border: 1px solid rgba(167, 139, 250, 0.45);
            background: rgba(110, 66, 255, 0.15);
            color: #e9d5ff;
            transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
        }
        .genius-ui-action-btn:hover {
            background: rgba(110, 66, 255, 0.28);
            border-color: rgba(196, 181, 253, 0.7);
            transform: translateY(-1px);
        }
        .genius-guided-done {
            background: rgba(16, 185, 129, 0.15);
            border: 1px solid rgba(16, 185, 129, 0.45);
            color: #6ee7b7;
        }
        .genius-guided-help {
            background: rgba(51, 65, 85, 0.8);
            border: 1px solid rgba(100, 116, 139, 0.6);
            color: #e2e8f0;
        }
        @media (max-width: 767px) {
            #support-fab {
                bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px) + 0.5rem);
            }
            #genius-guide-fab {
                bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px) + 3.25rem + 0.75rem);
            }
            #support-chat-panel {
                bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px) + 0.5rem) !important;
            }
            #genius-guide-panel {
                bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px) + 0.5rem) !important;
            }
        }
        .baby-profile { padding: 1.15rem; }
        .baby-profile__hero { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding:1.25rem; border-radius:1.25rem; background:linear-gradient(135deg,#ecfdf5,#fff 60%,#fdf2f8); border:1px solid #c8f0e4; }
        .baby-profile__eyebrow { font-size:.65rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:#008460; }
        .baby-profile__title { margin-top:.2rem; font-size:1.25rem; line-height:1.2; font-weight:800; color:#0f172a; }
        .baby-profile__meta { margin-top:.35rem; font-size:.75rem; color:#64748b; }
        .baby-profile__status { flex:none; padding:.45rem .7rem; border-radius:999px; font-size:.65rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; background:#fef3c7; color:#92400e; }
        .baby-profile__status.is-alert { background:#ffe4e6; color:#be123c; }
        .baby-profile__tabs { display:flex; gap:.45rem; overflow-x:auto; padding:.9rem 0 .75rem; scrollbar-width:thin; }
        .baby-profile__tab { flex:none; border:1px solid #dbe7e3; background:#fff; color:#52615d; border-radius:999px; padding:.55rem .8rem; font-size:.72rem; font-weight:750; white-space:nowrap; }
        .baby-profile__tab.is-active { background:#006b52; border-color:#006b52; color:#fff; box-shadow:0 6px 16px rgba(0,107,82,.18); }
        .baby-profile__panel { border:1px solid #e2e8f0; border-radius:1.15rem; background:#fff; overflow:hidden; }
        .baby-profile__panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding:1rem 1.1rem; border-bottom:1px solid #edf2f0; background:#fbfdfc; }
        .baby-profile__panel-title { font-size:.95rem; font-weight:800; color:#0f172a; }
        .baby-profile__panel-sub { margin-top:.2rem; font-size:.72rem; color:#64748b; }
        .baby-profile__content { padding:1rem 1.1rem 1.15rem; }
        .baby-profile__group + .baby-profile__group { margin-top:1rem; padding-top:1rem; border-top:1px solid #edf2f0; }
        .baby-profile__group-title { margin-bottom:.65rem; font-size:.68rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; color:#008460; }
        .baby-profile__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
        .baby-profile__field { min-width:0; padding:.7rem .75rem; border-radius:.85rem; background:#f8fafc; border:1px solid #eef2f7; }
        .baby-profile__field-label { font-size:.62rem; line-height:1.25; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:#94a3b8; }
        .baby-profile__field-value { margin-top:.25rem; font-size:.78rem; line-height:1.45; color:#334155; white-space:pre-wrap; overflow-wrap:anywhere; }
        .baby-profile__empty { padding:1.5rem; border:1px dashed #cbd5e1; border-radius:1rem; text-align:center; color:#64748b; font-size:.78rem; }
        .baby-profile__documents { display:grid; gap:.65rem; }
        .baby-profile__document { display:flex; align-items:center; gap:.75rem; padding:.75rem; border:1px solid #e2e8f0; border-radius:.9rem; background:#fff; }
        .baby-profile__doc-icon { width:2.25rem; height:2.25rem; border-radius:.7rem; background:#ecfdf5; color:#047857; display:grid; place-items:center; flex:none; }
        .baby-profile__timeline { display:grid; gap:.75rem; }
        .baby-profile__event { position:relative; padding:.8rem .9rem .8rem 1rem; border-left:3px solid #86efac; border-radius:0 .85rem .85rem 0; background:#f8fafc; }
        .baby-profile__event-date { font-size:.65rem; font-weight:800; color:#008460; }
        .baby-profile__event-title { margin-top:.15rem; font-size:.8rem; font-weight:800; color:#1e293b; }
        .baby-profile__event-text { margin-top:.25rem; font-size:.73rem; line-height:1.45; color:#64748b; white-space:pre-wrap; }
        @media (max-width: 720px) {
            .baby-profile { padding:.75rem; }
            .baby-profile__hero { flex-direction:column; }
            .baby-profile__grid { grid-template-columns:1fr; }
            .baby-profile__panel-head { flex-direction:column; }
        }
    