/* ============================================
   UpNex GESTAO - Design System v2
   Interface moderna: dark mode, profundidade,
   microinteracoes e tokens semanticos.
   ============================================ */

:root {
    /* Marca */
    --primary: #6366F1;
    --primary-rgb: 99, 102, 241;
    --primary-light: #EEF2FF;
    --primary-dark: #4338CA;
    --primary-glow: rgba(99, 102, 241, 0.35);

    --success: #10B981;
    --success-light: #ECFDF5;
    --warning: #F59E0B;
    --warning-light: #FFFBEB;
    --danger: #EF4444;
    --danger-light: #FEF2F2;
    --info: #0EA5E9;
    --info-light: #F0F9FF;

    /* Escala neutra */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Tokens semanticos (tema claro) */
    --bg-app: #F6F7FB;
    --bg-surface: #FFFFFF;
    --bg-surface-2: #F9FAFB;
    --bg-elevated: #FFFFFF;
    --border-color: #ECEEF3;
    --border-strong: #E1E4EC;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;

    /* Sidebar (tema claro tem sidebar escura elegante) */
    --sidebar-bg: linear-gradient(180deg, #1B1E2B 0%, #12141D 100%);
    --sidebar-text: #C7CBD6;
    --sidebar-text-muted: #7B8194;
    --sidebar-hover: rgba(255,255,255,0.06);
    --sidebar-active-bg: rgba(var(--primary-rgb), 0.16);

    --radius-xl: 20px;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;

    --shadow-xs: 0 1px 2px rgba(16,24,40,0.04);
    --shadow: 0 1px 3px rgba(16,24,40,0.06), 0 1px 2px rgba(16,24,40,0.04);
    --shadow-md: 0 6px 16px -4px rgba(16,24,40,0.10), 0 2px 6px -2px rgba(16,24,40,0.06);
    --shadow-lg: 0 18px 40px -12px rgba(16,24,40,0.22);

    --sidebar-w: 264px;
    --header-h: 64px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Dark mode ===== */
html[data-theme="dark"] {
    --bg-app: #0B0D14;
    --bg-surface: #151823;
    --bg-surface-2: #1A1E2B;
    --bg-elevated: #1C2030;
    --border-color: #262B3A;
    --border-strong: #313749;
    --text-primary: #E7E9EF;
    --text-secondary: #9BA1B0;
    --text-muted: #6B7280;

    --gray-50: #1A1E2B;
    --gray-100: #1F2431;
    --gray-200: #2A3040;
    --gray-300: #3A4152;
    --gray-500: #9BA1B0;
    --gray-600: #B4BAC7;
    --gray-700: #D4D8E0;
    --gray-800: #E7E9EF;
    --gray-900: #F3F4F6;

    --sidebar-bg: linear-gradient(180deg, #10131C 0%, #0B0D14 100%);
    --sidebar-text: #B4BAC7;
    --sidebar-active-bg: rgba(var(--primary-rgb), 0.22);

    --primary-light: rgba(var(--primary-rgb), 0.14);
    --success-light: rgba(16,185,129,0.12);
    --danger-light: rgba(239,68,68,0.12);
    --warning-light: rgba(245,158,11,0.12);
    --info-light: rgba(14,165,233,0.12);

    --shadow: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 24px -6px rgba(0,0,0,0.5);
    --shadow-lg: 0 24px 48px -12px rgba(0,0,0,0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-app);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); background-clip: content-box; }

::selection { background: var(--primary-glow); color: inherit; }

/* ============================================
   LAYOUT
   ============================================ */
.layout { display: flex; min-height: 100vh; }
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 28px 34px;
    min-width: 0;
    animation: fade-in-up 0.4s var(--ease);
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.04);
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

.sidebar-brand-topo {
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-logo-upnex { height: 28px; border-radius: 4px; }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand-icon {
    width: 42px; height: 42px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--primary-glow);
}
.brand-logo-img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-weight: 600; font-size: 14px; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-segmento {
    font-size: 11px; color: var(--sidebar-text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
}

.sidebar-nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.nav-section { padding: 4px 0; }
.nav-section-title {
    display: block; padding: 12px 12px 6px;
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; color: var(--sidebar-text-muted);
}
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; margin: 2px 0;
    color: var(--sidebar-text);
    font-size: 13.5px; font-weight: 500;
    border-radius: 10px;
    transition: all 0.18s var(--ease);
    position: relative;
}
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active {
    background: var(--sidebar-active-bg);
    color: #fff;
}
.nav-item.active::before {
    content: ''; position: absolute; left: -12px; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 20px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}
.nav-item i { width: 20px; text-align: center; font-size: 15px; }

.nav-group { margin: 2px 0; }
.nav-group-header {
    display: flex; align-items: center;
    padding: 12px 12px 6px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.2px; color: var(--sidebar-text-muted);
    cursor: pointer; user-select: none; transition: color 0.15s;
}
.nav-group-header:hover { color: var(--sidebar-text); }
.nav-group-header .nav-chevron { margin-left: auto; font-size: 9px; transition: transform 0.25s var(--ease); }
.nav-group-body { overflow: hidden; max-height: 0; transition: max-height 0.28s var(--ease); }
.nav-group.open .nav-group-body { max-height: 420px; }
.nav-group.open .nav-group-header .nav-chevron { transform: rotate(180deg); }

.sidebar-spacer { flex: 1; min-height: 12px; }
.nav-highlight {
    background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(16,185,129,0.08));
    color: #34D399 !important;
    font-weight: 600;
}
.nav-highlight:hover { background: rgba(16,185,129,0.26); }
.nav-highlight i { color: #34D399; }
.nav-logout { color: var(--sidebar-text-muted); }
.nav-logout:hover { color: #FCA5A5 !important; background: rgba(239,68,68,0.12); }

.sidebar-footer { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: #fff; flex-shrink: 0;
    box-shadow: 0 2px 8px var(--primary-glow);
}
.user-details { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--sidebar-text-muted); }

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
    display: flex; align-items: center; gap: 16px;
    height: 56px; margin: -28px -34px 24px;
    padding: 0 34px;
    background: color-mix(in srgb, var(--bg-surface) 80%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 50;
}
.topbar-search {
    display: flex; align-items: center; gap: 8px;
    flex: 1; max-width: 420px;
    padding: 8px 14px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: text; transition: all 0.15s;
}
.topbar-search:hover, .topbar-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.topbar-search input { border: none; background: none; outline: none; flex: 1; font-size: 13.5px; color: var(--text-primary); padding: 0; }
.topbar-search kbd {
    font-size: 11px; background: var(--bg-surface); border: 1px solid var(--border-strong);
    border-radius: 5px; padding: 2px 6px; color: var(--text-muted); font-family: var(--font);
}
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--border-color);
    background: var(--bg-surface); color: var(--text-secondary);
    cursor: pointer; transition: all 0.15s; font-size: 15px;
}
.icon-btn:hover { background: var(--bg-surface-2); color: var(--primary); border-color: var(--primary); }

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 26px; flex-wrap: wrap; gap: 12px;
}
.page-header h1 {
    font-size: 25px; font-weight: 700; letter-spacing: -0.02em;
    color: var(--text-primary);
    display: flex; align-items: center; gap: 10px;
}
.page-header h1 i { color: var(--primary); font-size: 22px; }
.text-muted { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.segmento-badge {
    padding: 7px 15px; border-radius: 20px; font-size: 12px; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}

/* ============================================
   METRICS GRID
   ============================================ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 18px; margin-bottom: 28px;
}
.metric-card {
    position: relative; overflow: hidden;
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 16px;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
    border: 1px solid var(--border-color);
}
.metric-card::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(120% 120% at 100% 0%, rgba(var(--primary-rgb),0.05), transparent 60%);
    opacity: 0; transition: opacity 0.2s;
}
.metric-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.metric-card:hover::after { opacity: 1; }
.metric-icon {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.metric-info { display: flex; flex-direction: column; z-index: 1; }
.metric-value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); line-height: 1.2; }
.metric-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions { margin-bottom: 28px; }
.quick-actions h3 {
    font-size: 16px; font-weight: 600; color: var(--text-primary);
    margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.action-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.action-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 22px 20px; text-align: center;
    transition: all 0.2s var(--ease);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--text-secondary); font-weight: 500; font-size: 13px;
    box-shadow: var(--shadow-xs);
}
.action-card:hover {
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.action-card i { font-size: 24px; transition: transform 0.2s var(--ease); }
.action-card:hover i { transform: scale(1.15); }

/* ============================================
   CARDS & PANELS
   ============================================ */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow: hidden;
}
.card-header {
    padding: 18px 24px; border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.card-header h2, .card-header h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.card-body { padding: 24px; }
.card-footer { padding: 14px 24px; border-top: 1px solid var(--border-color); background: var(--bg-surface-2); }

/* ============================================
   TABLES
   ============================================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th {
    text-align: left; padding: 13px 18px;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); background: var(--bg-surface-2);
    border-bottom: 1px solid var(--border-color); white-space: nowrap;
}
table td { padding: 14px 18px; border-bottom: 1px solid var(--border-color); font-size: 13.5px; color: var(--text-secondary); }
table tbody tr { transition: background 0.12s; }
table tbody tr:hover { background: var(--bg-surface-2); }
table tbody tr:last-child td { border-bottom: none; }

/* ============================================
   FORMS
   ============================================ */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; grid-column: 1 / -1; }
.form-row-sm { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-primary); cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
@media (max-width: 768px) { .form-row, .form-row-sm { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.form-group small { font-size: 11px; color: var(--text-muted); }
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="date"],
input[type="search"], input[type="url"], select, textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 14px;
    color: var(--text-primary); background: var(--bg-surface);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none; width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
textarea { resize: vertical; min-height: 84px; }
select { cursor: pointer; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; font-size: 13.5px; font-weight: 600; font-family: var(--font);
    border: none; border-radius: var(--radius-sm); cursor: pointer;
    transition: all 0.18s var(--ease); text-decoration: none; line-height: 1;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(var(--primary-rgb),0.3); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 6px 18px -4px var(--primary-glow); transform: translateY(-1px); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; box-shadow: 0 6px 18px -4px rgba(16,185,129,0.4); transform: translateY(-1px); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #DC2626; color: #fff; box-shadow: 0 6px 18px -4px rgba(239,68,68,0.4); transform: translateY(-1px); }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #D97706; color: #fff; }

.btn-outline { background: transparent; border: 1.5px solid var(--border-strong); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-sm { padding: 7px 13px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 50%; font-size: 15px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 11px; border-radius: 20px;
    font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-success { background: var(--success-light); color: #059669; }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: #D97706; }
.badge-info { background: var(--info-light); color: #0284C7; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-messages { margin-bottom: 20px; }
.flash {
    padding: 14px 18px; border-radius: var(--radius-sm);
    font-size: 13.5px; font-weight: 500;
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
    box-shadow: var(--shadow); animation: fade-in-up 0.3s var(--ease);
    border: 1px solid transparent;
}
.flash.sucesso { background: var(--success-light); color: #059669; border-color: rgba(16,185,129,0.25); }
.flash.erro { background: var(--danger-light); color: var(--danger); border-color: rgba(239,68,68,0.25); }
.flash.info { background: var(--info-light); color: #0284C7; border-color: rgba(14,165,233,0.25); }
.flash.alerta { background: var(--warning-light); color: #D97706; border-color: rgba(245,158,11,0.25); }

/* ============================================
   SEARCH BAR
   ============================================ */
.search-bar { display: flex; gap: 8px; align-items: center; }
.search-bar input { max-width: 300px; padding: 9px 14px; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state { text-align: center; padding: 64px 20px; color: var(--text-muted); }
.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; opacity: 0.6; }
.empty-state h3 { font-size: 18px; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 400px; margin: 0 auto 20px; }

/* ============================================
   SKELETON LOADER
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-surface-2) 25%, var(--border-color) 37%, var(--bg-surface-2) 63%);
    background-size: 400% 100%;
    animation: skeleton 1.4s ease infinite;
    border-radius: 6px;
}
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb),0.35), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(16,185,129,0.22), transparent 45%),
        linear-gradient(135deg, #12141D 0%, #1B1E2B 100%);
    padding: 20px; position: relative; overflow: hidden;
}
.login-page::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 44px 44px; pointer-events: none;
}
.login-card {
    position: relative; z-index: 1;
    background: var(--bg-surface);
    border-radius: 20px; box-shadow: var(--shadow-lg);
    padding: 42px; width: 100%; max-width: 420px;
    border: 1px solid var(--border-color);
    animation: fade-in-up 0.5s var(--ease);
}
.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo img { height: 40px; }
.login-card h1 { font-size: 23px; font-weight: 700; text-align: center; color: var(--text-primary); margin-bottom: 6px; letter-spacing: -0.02em; }
.login-card > p { text-align: center; color: var(--text-secondary); font-size: 14px; margin-bottom: 28px; }
.login-card .form-group { margin-bottom: 16px; }
.login-card .btn { width: 100%; margin-top: 8px; padding: 13px; font-size: 15px; }

/* ============================================
   MASTER SIDEBAR
   ============================================ */
.sidebar-master { background: linear-gradient(180deg, #0F172A 0%, #0A0F1C 100%); }
.sidebar-master .brand-icon { background: #F59E0B; box-shadow: 0 4px 12px rgba(245,158,11,0.4); }
.sidebar-master .nav-item.active::before { background: #F59E0B; }
.sidebar-master .nav-item.active { background: rgba(245,158,11,0.16); }

/* ============================================
   FOOTER
   ============================================ */
.app-footer {
    text-align: center; padding: 14px 24px; font-size: 11px;
    color: var(--text-muted); border-top: 1px solid var(--border-color);
    background: var(--bg-surface); margin-left: var(--sidebar-w);
}
.app-footer strong { color: var(--text-secondary); }

/* ============================================
   CHARTS
   ============================================ */
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 1000px) { .chart-row { grid-template-columns: 1fr; } }

/* ============================================
   ANIMAL CARD
   ============================================ */
.animal-card {
    background: var(--bg-surface); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 20px; border: 1px solid var(--border-color);
    display: flex; gap: 16px; align-items: center; transition: box-shadow 0.18s, transform 0.18s;
}
.animal-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.animal-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #EC4899, #F472B6);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff; flex-shrink: 0;
}
.animal-info { flex: 1; }
.animal-info h4 { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.animal-info span { font-size: 12px; color: var(--text-secondary); }
.animals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* ============================================
   POINT OF SALE (PDV)
   ============================================ */
.pdv-layout { display: grid; grid-template-columns: 1fr 400px; gap: 24px; }
@media (max-width: 900px) { .pdv-layout { grid-template-columns: 1fr; } }
.pdv-items { min-height: 200px; }
.pdv-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border-color);
}
.pdv-item:last-child { border-bottom: none; }
.pdv-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0; border-top: 2px solid var(--border-strong);
    margin-top: 8px; font-size: 18px; font-weight: 700; color: var(--text-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
.sidebar-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 99; backdrop-filter: blur(2px);
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.3s var(--ease); box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-backdrop.open { display: block; }
    .main-content, .app-footer { margin-left: 0; }
    .topbar { margin: -28px -20px 20px; padding: 0 20px; }
    .main-content { padding: 24px 20px; }
    .page-header h1 { font-size: 21px; }
    .metrics-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .form-grid { grid-template-columns: 1fr; }
    .mobile-menu-btn { display: flex !important; }
}
.mobile-menu-btn { display: none; }

/* ============================================
   UTILITIES
   ============================================ */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted) !important; }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 16px; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

/* ============================================
   LOGO UPLOAD
   ============================================ */
.logo-upload-area {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.logo-preview {
    width: 90px; height: 90px; border-radius: 18px;
    background: var(--bg-surface-2); border: 2px dashed var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0; position: relative;
    transition: border-color 0.2s;
}
.logo-preview.has-logo { border-style: solid; }
.logo-preview img {
    width: 100%; height: 100%; object-fit: cover;
}
.logo-preview .placeholder-icon {
    font-size: 28px; color: var(--text-muted);
}
.logo-preview .remove-logo {
    position: absolute; top: -2px; right: -2px;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--danger); color: #fff; border: 2px solid var(--bg-surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; cursor: pointer; opacity: 0;
    transition: opacity 0.2s; line-height: 1;
}
.logo-preview:hover .remove-logo { opacity: 1; }
.logo-upload-actions {
    display: flex; flex-direction: column; gap: 8px;
}
.logo-upload-actions .upload-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; font-size: 13px; font-weight: 500;
    border: 1.5px solid var(--border-strong); border-radius: 10px;
    background: var(--bg-surface); color: var(--text-primary);
    cursor: pointer; transition: all 0.15s; font-family: var(--font);
}
.logo-upload-actions .upload-btn:hover {
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-light);
}
.logo-upload-actions .upload-hint {
    font-size: 11px; color: var(--text-muted);
}
.logo-upload-actions input[type="file"] { display: none; }

/* ============================================
   MOBILE RESPONSIVE - Celular e Tablet
   ============================================ */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .mobile-menu-btn {
        display: flex !important;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1001;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--primary, #F59E0B);
        color: #fff;
        border: none;
        cursor: pointer;
        font-size: 16px;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .sidebar {
        width: 100% !important;
        min-width: 100% !important;
        height: auto;
        position: fixed;
        bottom: 0;
        top: auto;
        z-index: 1000;
        flex-direction: row;
        padding: 0 !important;
        background: var(--sidebar-bg, #0F172A);
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    .sidebar.open {
        transform: translateY(0);
    }

    .sidebar-brand-topo,
    .sidebar-brand,
    .sidebar-spacer,
    .sidebar-footer,
    .nav-section-title {
        display: none !important;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        padding: 0;
        overflow-x: auto;
    }
    .sidebar-nav .nav-section {
        display: flex;
        flex-direction: row;
        gap: 0;
    }
    .sidebar-nav .nav-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 6px;
        font-size: 10px;
        gap: 4px;
        white-space: nowrap;
        min-width: 56px;
        border-radius: 8px;
    }
    .sidebar-nav .nav-item i {
        font-size: 18px;
        margin: 0;
    }
    .sidebar-nav .nav-item span {
        font-size: 9px;
    }
    .sidebar-nav .nav-logout,
    .sidebar-nav .nav-group-header,
    .sidebar-nav .nav-group-body,
    .sidebar-nav .nav-section:not(:nth-child(-n+6)) {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        margin-bottom: 70px;
        padding: 12px;
        width: 100%;
        margin-top: 46px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .metric-card {
        padding: 12px;
    }
    .metric-value {
        font-size: 18px;
    }
    .metric-label {
        font-size: 10px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 16px;
    }
    .page-header h1 {
        font-size: 20px;
    }

    .content-grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .chart-row {
        grid-template-columns: 1fr;
    }
    .card {
        border-radius: 12px;
    }
    .card-header {
        padding: 12px 14px;
    }
    .card-body {
        padding: 12px;
    }

    .table-wrap {
        overflow-x: auto;
    }
    table {
        font-size: 12px;
    }
    table th, table td {
        padding: 8px 10px;
        white-space: nowrap;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-group {
        margin-bottom: 12px;
    }
    .form-actions {
        flex-direction: column;
        gap: 8px;
    }
    .form-actions .btn {
        width: 100%;
    }

    .search-bar {
        flex-wrap: wrap;
    }
    .search-bar input {
        flex: 1;
        min-width: 120px;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }

    .topbar {
        display: none;
    }

    .modal {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        border-radius: 14px;
    }
    .modal-header {
        padding: 14px 16px;
    }
    .modal-body {
        padding: 14px 16px;
    }
    .modal-footer {
        padding: 10px 16px;
    }

    .login-split {
        flex-direction: column;
    }
    .login-branding {
        flex: 0 0 auto;
        padding: 30px 20px;
        min-height: 180px;
    }
    .login-form-panel {
        flex: 1;
        padding: 20px;
    }

    .action-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .action-card {
        padding: 14px 10px;
        font-size: 12px;
    }
    .action-card i {
        font-size: 20px;
    }
    .action-card span {
        font-size: 11px;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }
    .header-actions .btn {
        flex: 1;
        min-width: 80px;
    }

    select, input[type="text"], input[type="email"], input[type="password"],
    input[type="number"], input[type="date"], textarea {
        font-size: 16px !important;
    }

    .badge {
        font-size: 10px;
        padding: 2px 8px;
    }
}


@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* ============================================
   PADRAO GESTAO PET - identidade laranja/azul-petroleo
   ============================================ */
body[data-segmento="pet"] {
    --primary: #FF914D;
    --primary-rgb: 255, 145, 77;
    --primary-light: #FFF1E6;
    --primary-dark: #E6752B;
    --primary-glow: rgba(255, 145, 77, 0.35);
    --accent: #00C2CB;
}
body[data-segmento="pet"] a { color: var(--primary-dark); }
body[data-segmento="pet"] .sidebar { --sidebar-cor: #FF914D; }

.mb-4 { margin-bottom: 24px; }

/* Chips de filtro de período */
.periodo-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
    border: 1.5px solid var(--border-strong); background: var(--bg-surface);
    color: var(--text-secondary); padding: 8px 16px; border-radius: 20px;
    font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: var(--font);
    transition: all 0.15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-separator { width: 1px; height: 22px; background: var(--border-strong); margin: 0 4px; }
.chip-label { font-size: 12.5px; color: var(--text-muted); }
.chip-date { padding: 8px 12px; border: 1.5px solid var(--border-strong); border-radius: 10px;
    font-size: 12.5px; color: var(--text-primary); background: var(--bg-surface); font-family: var(--font); }

/* Banner planos recorrentes */
.banner-planos {
    display: flex; align-items: center; gap: 16px; justify-content: space-between;
    padding: 18px 22px; margin-bottom: 24px; border-radius: var(--radius);
    background: linear-gradient(90deg, #FFF1E6 0%, #FFF9F2 55%, #EAFBFB 100%);
    border: 1.5px solid #FFD9B8;
}
.banner-planos-texto { display: flex; flex-direction: column; gap: 4px; }
.banner-planos-texto strong { font-size: 15px; color: #B45309; }
.banner-planos-texto span { font-size: 13px; color: var(--text-secondary); }
.banner-planos-texto a { font-weight: 600; }

/* Grids do dashboard */
.dashboard-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 20px; }
.dashboard-grid.rankings { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lista-proximos { display: flex; flex-direction: column; }
.proximo-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border-color); }
.proximo-item:last-child { border-bottom: none; }
.proximo-hora { font-weight: 700; font-size: 13px; color: var(--primary-dark); min-width: 44px; }
.proximo-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.proximo-info strong { font-size: 13.5px; color: var(--text-primary); }
.proximo-info span { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 14px;
    color: #fff; font-size: 10.5px; font-weight: 600; white-space: nowrap; }

/* Rankings */
.ranking-lista { display: flex; flex-direction: column; }
.ranking-item { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border-color); }
.ranking-item:last-child { border-bottom: none; }
.ranking-pos { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary-dark); font-size: 12px; font-weight: 700; }
.ranking-nome { flex: 1; font-size: 13.5px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking-valor { font-size: 13px; font-weight: 700; color: var(--text-secondary); }

/* Abas */
.tabs-nav { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 20px; border-bottom: 2px solid var(--border-color); }
.tab-item { padding: 12px 18px; font-size: 13.5px; font-weight: 600; color: var(--text-secondary);
    border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tab-item:hover { color: var(--primary); }
.tab-item.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.tab-item i { font-size: 14px; }

/* Kanban banho & tosa */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.kanban-col { background: var(--bg-surface-2); border-radius: var(--radius); border: 1px solid var(--border-color); }
.kanban-col-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
    font-size: 13px; font-weight: 700; color: var(--text-primary); border-bottom: 1px solid var(--border-color); }
.kanban-count { background: var(--border-strong); color: var(--text-secondary); border-radius: 20px; padding: 1px 9px; font-size: 11.5px; }
.kanban-body { padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 80px; }
.kanban-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 12px; box-shadow: var(--shadow-xs); }
.kanban-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.kanban-card-top strong { font-size: 13.5px; color: var(--text-primary); }
.kanban-card-info { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.kanban-card-info span { font-size: 12px; color: var(--text-secondary); }
.kanban-card-info i { width: 16px; color: var(--text-muted); }
.kanban-card-actions { display: flex; gap: 6px; }
.kanban-empty { text-align: center; color: var(--text-muted); font-size: 12px; padding: 16px 8px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); }
@media (max-width: 900px) { .kanban { grid-template-columns: repeat(2, 1fr); } }

/* Agenda */
.agenda-navbar { display: flex; align-items: center; gap: 10px; justify-content: center; }
.agenda-dia-titulo { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: capitalize;
    padding: 14px 4px 8px; border-bottom: 2px solid var(--primary-light); margin-bottom: 8px; }
.agenda-bloqueio { background: var(--danger-light); color: var(--danger); border-radius: var(--radius-sm);
    padding: 10px 14px; font-size: 12.5px; margin-bottom: 8px; }
.agenda-card { display: flex; gap: 14px; background: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-xs); }
.agenda-card-hora-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    min-width: 48px; gap: 2px; padding-top: 2px; }
.agenda-card-hora { font-size: 15px; font-weight: 700; color: var(--primary-dark); }
.agenda-card-data { font-size: 11px; color: var(--text-muted); }
.agenda-card-foto { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; flex-shrink: 0;
    border: 2px solid var(--primary-light); }
.agenda-card-foto-vazia { display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary-dark); font-size: 20px; }
.agenda-card-corpo { flex: 1; min-width: 0; }
.agenda-card-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.agenda-card-topo strong { font-size: 14.5px; color: var(--text-primary); }
.agenda-card-info { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.agenda-card-info span { font-size: 12.5px; color: var(--text-secondary); }
.agenda-card-info i { color: var(--text-muted); margin-right: 4px; }
.agenda-card-acoes { display: flex; gap: 6px; flex-wrap: wrap; }

/* Calendario semanal */
.agenda-calendario { border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; background: var(--bg-surface); }
.agenda-cal-cabecalho { display: grid; grid-template-columns: 64px repeat(7, 1fr); background: var(--bg-surface-2);
    border-bottom: 1px solid var(--border-color); }
.agenda-cal-dia { text-align: center; padding: 10px 4px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border-color); }
.agenda-cal-dia strong { font-size: 12px; color: var(--text-secondary); }
.agenda-cal-dia span { font-size: 11px; color: var(--text-muted); }
.agenda-cal-dia.hoje { background: var(--primary-light); }
.agenda-cal-hora-vazia { padding: 10px; }
.agenda-cal-linha { display: grid; grid-template-columns: 64px repeat(7, 1fr); border-bottom: 1px solid var(--border-color); min-height: 46px; position: relative; }
.agenda-cal-linha:last-child { border-bottom: none; }
.agenda-cal-hora { font-size: 11px; color: var(--text-muted); padding: 8px; text-align: right; border-right: 1px solid var(--border-color); }
.agenda-cal-celula { border-left: 1px solid var(--border-color); padding: 3px; position: relative; display: flex; flex-direction: column; gap: 3px; }
.agenda-cal-evento { background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; border-radius: 6px;
    padding: 4px 8px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-cal-bloqueio { background: repeating-linear-gradient(45deg, #FEE2E2 0 6px, #FEF2F2 6px 12px);
    border-radius: 6px; padding: 4px 8px; color: var(--danger); font-size: 11px; }
.agenda-cal-linha-agora { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #EF4444; z-index: 2; pointer-events: none; }
.agenda-cal-linha-agora::before { content: ''; position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #EF4444; }

/* Wizard novo agendamento */
.wizard-steps { display: flex; gap: 8px; margin-bottom: 20px; }
.wizard-step { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 20px;
    background: var(--bg-surface-2); color: var(--text-muted); font-size: 13px; font-weight: 600; border: 1.5px solid var(--border-color); }
.wizard-step.active { background: var(--primary-light); color: var(--primary-dark); border-color: var(--primary); }
.wizard-num { width: 22px; height: 22px; border-radius: 50%; background: var(--border-strong); color: var(--text-secondary);
    display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; }
.wizard-step.active .wizard-num { background: var(--primary); color: #fff; }
.wizard-acoes { display: flex; align-items: center; gap: 10px; margin-top: 20px; }

/* Listas de opcoes (cliente, pet, servico) */
.lista-opcoes { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.opcao-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg-surface);
    border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s; }
.opcao-item:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.opcao-item.selecionado { border-color: var(--primary); background: var(--primary-light); }
.opcao-item > i { font-size: 18px; color: var(--primary); width: 24px; text-align: center; }
.opcao-item div { display: flex; flex-direction: column; min-width: 0; }
.opcao-item strong { font-size: 14px; color: var(--text-primary); }
.opcao-item span { font-size: 12px; color: var(--text-muted); }
.filtro-categorias { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.servicos-escolhidos { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.servico-escolhido { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
    background: var(--primary-light); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--primary-dark); }

/* Grade de horarios */
.grade-horarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.slot-livre { padding: 10px 8px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong);
    background: var(--bg-surface); font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text-primary); cursor: pointer; }
.slot-livre:hover { border-color: var(--primary); }
.slot-livre.selecionado { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot-ocupado { padding: 10px 8px; border-radius: var(--radius-sm); border: 1px dashed var(--border-strong);
    background: var(--bg-surface-2); font-family: var(--font); font-size: 12px; color: var(--text-muted); cursor: not-allowed; }
.slot-ocupado span { display: block; font-size: 10px; }

/* Toggle de grupo */
.btn-group-toggle { display: inline-flex; border: 1.5px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.btn-group-toggle .btn { border-radius: 0; border: none; }
.btn-group-toggle .btn + .btn { border-left: 1px solid var(--border-color); }

/* Botao flutuante (+) */
.fab { position: fixed; right: 26px; bottom: 26px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-main { width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(135deg, #FF914D, #F4732B); color: #fff; font-size: 24px;
    box-shadow: 0 10px 28px -6px rgba(255, 145, 77, 0.6); transition: transform 0.2s var(--ease); }
.fab-main:hover { transform: scale(1.06); }
.fab-menu { display: none; flex-direction: column; gap: 8px; align-items: flex-end; }
.fab.open .fab-menu { display: flex; animation: fade-in-up 0.2s var(--ease); }
.fab-item { display: flex; align-items: center; gap: 10px; background: var(--bg-surface); color: var(--text-primary);
    border: 1.5px solid var(--border-color); border-radius: 24px; padding: 9px 18px 9px 10px;
    font-size: 13px; font-weight: 600; box-shadow: var(--shadow-md); cursor: pointer; transition: all 0.15s; }
.fab-item:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateX(-3px); }
.fab-item i { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary-dark); font-size: 13px; }

/* Menu inferior mobile */
.mobile-nav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--bg-surface); border-top: 1px solid var(--border-color); box-shadow: 0 -6px 20px -8px rgba(16,24,40,0.15); }
.mobile-nav-inner { display: flex; }
.mobile-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 4px 10px; color: var(--text-muted); font-size: 10.5px; font-weight: 600; }
.mobile-nav-item i { font-size: 18px; }
.mobile-nav-item.active { color: var(--primary-dark); }
@media (max-width: 768px) {
    .mobile-nav { display: block; }
    .main-content { padding-bottom: 80px; }
    .fab { bottom: 84px; }
}

/* Modal generico */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 18, 28, 0.55); z-index: 100;
    display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px); }
.modal-box { background: var(--bg-surface); border-radius: var(--radius-xl); width: 100%; max-width: 560px;
    box-shadow: var(--shadow-lg); overflow: hidden; }

/* Drawer lateral (painel do cliente) */
.drawer-overlay { position: fixed; inset: 0; background: rgba(15, 18, 28, 0.45); z-index: 95; display: none; }
.drawer-overlay.open { display: block; }
.drawer { position: fixed; top: 0; right: -480px; width: 440px; max-width: 94vw; height: 100vh; z-index: 96;
    background: var(--bg-surface); box-shadow: var(--shadow-lg); transition: right 0.28s var(--ease);
    display: flex; flex-direction: column; }
.drawer.open { right: 0; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border-color); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.drawer-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-color); padding: 0 22px; }
.drawer-tab { padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--text-secondary); border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
.drawer-tab.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.drawer-actions { display: flex; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border-color); flex-wrap: wrap; }

/* Cartao de pet */
.pet-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--bg-surface-2); }
.pet-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.pet-card .pet-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pet-card strong { font-size: 14px; color: var(--text-primary); }
.pet-card span { font-size: 12px; color: var(--text-muted); }

/* Grade de dashboard responsiva */
@media (max-width: 1000px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

/* ============================================
   MENU PET: secoes recolhiveis, titulos grandes,
   hamburger de recolher a coluna, agenda compacta
   ============================================ */
body[data-segmento="pet"] .mobile-menu-btn { display: flex !important; }

/* Recolher coluna no desktop */
.sidebar { transition: transform 0.28s var(--ease); }
body.sidebar-collapsed .sidebar { transform: translateX(-100%); }
body.sidebar-collapsed .main-content { margin-left: 0; }
body.sidebar-collapsed .app-footer { margin-left: 0; }

/* Titulos das secoes do menu pet maiores e clicaveis */
body[data-segmento="pet"] .sidebar-nav .nav-group { margin: 6px 0; }
body[data-segmento="pet"] .nav-group-header {
    display: flex; align-items: center; gap: 10px; padding: 12px 12px;
    font-size: 15px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
    cursor: pointer; user-select: none; border-radius: var(--radius-sm);
}
body[data-segmento="pet"] .nav-group-header:hover { background: var(--sidebar-hover); }
body[data-segmento="pet"] .nav-group-header .nav-chevron { font-size: 10px; }
body[data-segmento="pet"] .nav-group-body { max-height: 0; overflow: hidden; transition: max-height 0.25s var(--ease); }
body[data-segmento="pet"] .nav-group.open .nav-group-body { max-height: 560px; }
body[data-segmento="pet"] .nav-group.open .nav-group-header .nav-chevron { transform: rotate(180deg); }

/* Agenda compacta em grade */
.agenda-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.agenda-mini-card {
    background: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer;
    transition: all 0.15s; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-xs);
}
.agenda-mini-card:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.agenda-mini-top { display: flex; align-items: center; gap: 10px; }
.agenda-mini-foto { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex-shrink: 0; border: 2px solid var(--primary-light); }
.agenda-mini-foto-vazia { display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary-dark); font-size: 16px; }
.agenda-mini-nomes { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.agenda-mini-nomes strong { font-size: 13px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-mini-nomes span { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-mini-hora { font-size: 11.5px; font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.agenda-mini-rodape { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agenda-mini-rodape span { font-size: 11px; color: var(--text-secondary); }
.agenda-mini-rodape i { color: var(--text-muted); margin-right: 3px; }

/* ============================================
   TEMA ALEGRE (PET) - pastel, redondo, animado
   ============================================ */
body[data-segmento="pet"] {
    --pet-rosa: #FF8FBF;
    --pet-rosa-suave: #FFE3F0;
    --pet-azul: #6FB8FF;
    --pet-azul-suave: #E0F0FF;
    --pet-lilas: #B79CFF;
    --pet-lilas-suave: #EDE6FF;
    --pet-menta: #57D9A3;
    --pet-menta-suave: #DFF8EC;
    --pet-amarelo: #FFC95C;
    --pet-amarelo-suave: #FFF4D6;
    --pet-pessego: #FFA66B;
    --pet-pessego-suave: #FFE9D9;

    background: #FFF9F4;
    background-image:
        radial-gradient(circle at 8% 12%, rgba(255, 143, 191, 0.10) 0, transparent 26%),
        radial-gradient(circle at 92% 8%, rgba(111, 184, 255, 0.12) 0, transparent 24%),
        radial-gradient(circle at 85% 88%, rgba(183, 156, 255, 0.10) 0, transparent 26%);
    background-attachment: fixed;
    font-family: 'Fredoka', 'Inter', sans-serif;
}
body[data-segmento="pet"] .main-content-pet { margin: 0; padding: 28px 30px 90px; max-width: 1280px; margin-inline: auto; }
body[data-segmento="pet"] .app-footer { margin-left: 0; }

/* ---- Navbar pastel ---- */
.navbar-pet {
    background: linear-gradient(100deg, #FF8FBF 0%, #FFA9D4 40%, #FFC9A3 100%);
    position: sticky; top: 0; z-index: 70;
    box-shadow: 0 6px 22px -8px rgba(255, 143, 191, 0.55);
    border-radius: 0 0 22px 22px;
    padding: 10px 20px;
}
.navbar-pet-inner { display: flex; align-items: center; gap: 14px; max-width: 1280px; margin-inline: auto; flex-wrap: wrap; }
.navbar-pet-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.navbar-pet-logo {
    font-size: 26px; background: #fff; width: 46px; height: 46px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    animation: icon-bounce 2.6s ease-in-out infinite;
}
.navbar-pet-nome { display: flex; flex-direction: column; color: #fff; line-height: 1.15; }
.navbar-pet-nome { font-family: 'Fredoka', sans-serif; font-size: 19px; font-weight: 600; letter-spacing: 0.3px; text-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.navbar-pet-nome small { font-size: 11.5px; font-weight: 400; opacity: 0.95; }
.navbar-pet-links { display: flex; align-items: center; gap: 6px; flex: 1; flex-wrap: wrap; }
.nav-pet-link {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 20px;
    color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; border: none;
    background: transparent; cursor: pointer; font-family: 'Fredoka', sans-serif; transition: all 0.18s;
}
.nav-pet-link:hover { background: rgba(255,255,255,0.25); color: #fff; transform: translateY(-1px); }
.nav-pet-link.active { background: #fff; color: #F06292; box-shadow: 0 4px 12px rgba(0,0,0,0.14); }
.nav-pet-link i { font-size: 14px; }
.navbar-pet-acoes { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-pet-especialista {
    background: #fff; color: #F06292; border-radius: 20px; padding: 9px 16px;
    font-size: 13px; font-weight: 700; text-decoration: none; font-family: 'Fredoka', sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12); transition: all 0.18s;
}
.btn-pet-especialista:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.16); color: #F06292; }
.navbar-pet-toggle { display: none; background: rgba(255,255,255,0.25); border: none; color: #fff; font-size: 18px;
    width: 42px; height: 42px; border-radius: 14px; cursor: pointer; }
.nav-pet-drop { position: relative; }
.nav-pet-drop-menu { display: none; position: absolute; top: 46px; left: 0; min-width: 200px;
    background: #fff; border-radius: 16px; box-shadow: 0 14px 34px -10px rgba(0,0,0,0.25); padding: 8px; z-index: 80; }
.nav-pet-drop.open .nav-pet-drop-menu { display: flex; flex-direction: column; animation: fade-in-up 0.18s; }
.nav-pet-drop-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
    color: #5B4B63; font-size: 13.5px; font-weight: 600; text-decoration: none; font-family: 'Fredoka', sans-serif; }
.nav-pet-drop-menu a:hover { background: var(--pet-rosa-suave); color: #E05793; }
.nav-pet-drop-menu a i { width: 20px; text-align: center; color: #F06292; }
@media (max-width: 1024px) {
    .navbar-pet-links { display: none; width: 100%; order: 3; }
    .navbar-pet-links.open { display: flex; }
    .navbar-pet-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-pet-drop-menu { position: static; box-shadow: none; }
}

/* ---- Tipografia e cabecalhos ---- */
body[data-segmento="pet"] .page-header h1 { font-family: 'Fredoka', sans-serif; font-weight: 600; color: #5B4B63; }
body[data-segmento="pet"] .page-header h1 i { color: #F06292; }
body[data-segmento="pet"] .text-muted { color: #9B8CA8 !important; }

/* ---- Cards pastel ---- */
body[data-segmento="pet"] .card {
    border-radius: 22px; border: 1.5px solid #F3E8F5;
    box-shadow: 0 10px 28px -14px rgba(240, 98, 146, 0.25);
    background: #fff;
}
body[data-segmento="pet"] .card-header { border-radius: 22px 22px 0 0; background: #FFF6FB; border-bottom: 1.5px solid #F8E4F0; }
body[data-segmento="pet"] .card-header h3, body[data-segmento="pet"] .card-header h2 { font-family: 'Fredoka', sans-serif; color: #5B4B63; font-weight: 600; }
body[data-segmento="pet"] table th { background: #FFF6FB; color: #B08CA8; font-family: 'Fredoka', sans-serif; }
body[data-segmento="pet"] table td { color: #6B5B78; }
body[data-segmento="pet"] table tbody tr:hover { background: #FFF9FB; }

/* ---- Metricas fofas ---- */
body[data-segmento="pet"] .metric-card {
    border-radius: 22px; border: 1.5px solid #F3E8F5; overflow: hidden;
    box-shadow: 0 10px 26px -14px rgba(0,0,0,0.18);
    animation: fade-in-up 0.5s var(--ease) both;
}
body[data-segmento="pet"] .metric-card::after { content: ''; position: absolute; top: -26px; right: -26px;
    width: 90px; height: 90px; border-radius: 50%; opacity: 0.5; }
body[data-segmento="pet"] .metric-card:hover { transform: translateY(-5px) rotate(-0.5deg); }
body[data-segmento="pet"] .metric-icon {
    border-radius: 18px; font-size: 22px;
    animation: icon-float 3.4s ease-in-out infinite;
}
body[data-segmento="pet"] .metric-value { font-family: 'Fredoka', sans-serif; font-size: 27px; }
body[data-segmento="pet"] .metric-label { font-family: 'Fredoka', sans-serif; font-size: 12.5px; }

/* ---- Botoes pastel ---- */
body[data-segmento="pet"] .btn { border-radius: 20px; font-family: 'Fredoka', sans-serif; font-weight: 600; }
body[data-segmento="pet"] .btn-primary {
    background: linear-gradient(120deg, #FF8FBF, #FFA66B); border: none;
    box-shadow: 0 6px 16px -6px rgba(255, 143, 191, 0.7);
}
body[data-segmento="pet"] .btn-primary:hover { background: linear-gradient(120deg, #FF7AB4, #FF9557); transform: translateY(-2px); }
body[data-segmento="pet"] .btn-success { background: linear-gradient(120deg, #57D9A3, #38C48A); }
body[data-segmento="pet"] .btn-outline { border: 1.5px solid #F0D9E8; color: #A6789B; background: #fff; }
body[data-segmento="pet"] .btn-outline:hover { border-color: #FF8FBF; color: #E05793; background: #FFF0F7; }

/* ---- Badges pastel ---- */
body[data-segmento="pet"] .badge { border-radius: 16px; font-family: 'Fredoka', sans-serif; }
body[data-segmento="pet"] .badge-status { border-radius: 16px; font-family: 'Fredoka', sans-serif; }
body[data-segmento="pet"] .badge-gray { background: #F3EEF6; color: #8A7A96; }

/* ---- Agenda fofa ---- */
.emoji-pet { font-size: 24px; flex-shrink: 0; animation: icon-wag 3.2s ease-in-out infinite; }
body[data-segmento="pet"] .agenda-dia-titulo { font-family: 'Fredoka', sans-serif; color: #F06292;
    border-bottom: 3px dashed #FFD6E8; font-size: 15px; }
body[data-segmento="pet"] .agenda-mini-card {
    border-radius: 18px; background: #fff; border: 1.5px solid #F6E9F3;
    box-shadow: 0 8px 20px -12px rgba(240, 98, 146, 0.3);
    transition: all 0.2s var(--ease);
}
body[data-segmento="pet"] .agenda-mini-card:hover { transform: translateY(-4px) scale(1.015); border-color: #FFB7D6; }
body[data-segmento="pet"] .agenda-mini-foto { border-radius: 50%; border: 3px solid #FFD6E8; width: 44px; height: 44px;
    box-shadow: 0 4px 10px -4px rgba(0,0,0,0.25); }
body[data-segmento="pet"] .agenda-mini-foto-vazia { border-radius: 50%; background: var(--pet-rosa-suave); }
body[data-segmento="pet"] .agenda-mini-nomes strong { font-family: 'Fredoka', sans-serif; font-size: 13.5px; color: #5B4B63; }
body[data-segmento="pet"] .agenda-mini-hora { color: #E05793; font-family: 'Fredoka', sans-serif; }
body[data-segmento="pet"] .agenda-mini-rodape i { color: #F0A2C2; }
body[data-segmento="pet"] .agenda-card { border-radius: 18px; border: 1.5px solid #F6E9F3; }
body[data-segmento="pet"] .agenda-card-foto { border-radius: 50%; border: 3px solid #FFD6E8; }
body[data-segmento="pet"] .agenda-card-foto-vazia { border-radius: 50%; }
body[data-segmento="pet"] .agenda-bloqueio { border-radius: 14px; background: #FFE9E9; }

/* ---- Tabs / chips pastel ---- */
body[data-segmento="pet"] .tabs-nav { border-bottom: 2px solid #F6E2EE; }
body[data-segmento="pet"] .tab-item { font-family: 'Fredoka', sans-serif; }
body[data-segmento="pet"] .tab-item.active { color: #E05793; border-bottom-color: #FF8FBF; }
body[data-segmento="pet"] .chip { border-radius: 20px; font-family: 'Fredoka', sans-serif; }
body[data-segmento="pet"] .chip-active { background: linear-gradient(120deg, #FF8FBF, #FFA66B); border-color: transparent; }

/* ---- FAB fofo ---- */
body[data-segmento="pet"] .fab-main {
    background: linear-gradient(135deg, #FF8FBF, #FFA66B);
    box-shadow: 0 12px 30px -8px rgba(255, 143, 191, 0.8);
    animation: icon-bounce 3s ease-in-out infinite;
}
body[data-segmento="pet"] .fab-item { border-radius: 26px; font-family: 'Fredoka', sans-serif; }
body[data-segmento="pet"] .fab-item i { background: var(--pet-rosa-suave); color: #E05793; }

/* ---- Banner planos pastel ---- */
body[data-segmento="pet"] .banner-planos {
    border-radius: 22px;
    background: linear-gradient(90deg, #FFE3F0 0%, #FFF4E8 55%, #E0F0FF 100%);
    border: 1.5px solid #FFD0E4;
}

/* ---- Formularios pastel ---- */
body[data-segmento="pet"] input[type="text"], body[data-segmento="pet"] input[type="email"],
body[data-segmento="pet"] input[type="password"], body[data-segmento="pet"] input[type="tel"],
body[data-segmento="pet"] input[type="number"], body[data-segmento="pet"] input[type="date"],
body[data-segmento="pet"] input[type="search"], body[data-segmento="pet"] select,
body[data-segmento="pet"] textarea { border-radius: 14px; border: 1.5px solid #F0D9E8; }
body[data-segmento="pet"] input:focus, body[data-segmento="pet"] select:focus, body[data-segmento="pet"] textarea:focus {
    border-color: #FF8FBF; box-shadow: 0 0 0 3px #FFE3F0; }
body[data-segmento="pet"] .form-group label { font-family: 'Fredoka', sans-serif; color: #6B5B78; }

/* ---- Kanban pastel ---- */
body[data-segmento="pet"] .kanban-col { border-radius: 18px; background: #FFF9F4; }
body[data-segmento="pet"] .kanban-col-header { font-family: 'Fredoka', sans-serif; color: #5B4B63; }
body[data-segmento="pet"] .kanban-card { border-radius: 14px; border: 1.5px solid #F6E9F3; }
body[data-segmento="pet"] .kanban-count { background: #FFD6E8; color: #E05793; }

/* ---- Ranking / listas pastel ---- */
body[data-segmento="pet"] .ranking-pos { border-radius: 12px; font-family: 'Fredoka', sans-serif; }
body[data-segmento="pet"] .ranking-item { border-bottom: 1px dashed #F3E2EE; }
body[data-segmento="pet"] .opcao-item { border-radius: 16px; border: 1.5px solid #F3E2EE; }
body[data-segmento="pet"] .opcao-item:hover { border-color: #FF8FBF; box-shadow: 0 0 0 3px #FFE3F0; }
body[data-segmento="pet"] .opcao-item.selecionado { background: #FFF0F7; border-color: #FF8FBF; }
body[data-segmento="pet"] .wizard-step { border-radius: 22px; font-family: 'Fredoka', sans-serif; }
body[data-segmento="pet"] .wizard-step.active { background: #FFE3F0; border-color: #FF8FBF; color: #E05793; }
body[data-segmento="pet"] .wizard-step.active .wizard-num { background: linear-gradient(120deg, #FF8FBF, #FFA66B); }
body[data-segmento="pet"] .slot-livre { border-radius: 14px; font-family: 'Fredoka', sans-serif; }
body[data-segmento="pet"] .slot-livre.selecionado { background: linear-gradient(120deg, #FF8FBF, #FFA66B); }

/* ---- Drawer pastel ---- */
body[data-segmento="pet"] .drawer { border-radius: 24px 0 0 24px; }
body[data-segmento="pet"] .drawer-tab { font-family: 'Fredoka', sans-serif; }
body[data-segmento="pet"] .drawer-tab.active { color: #E05793; border-bottom-color: #FF8FBF; }
body[data-segmento="pet"] .pet-card { border-radius: 16px; border: 1.5px solid #F3E2EE; background: #FFF9F4; }
body[data-segmento="pet"] .pet-card img { border-radius: 14px; }

/* ---- Menu inferior mobile pastel ---- */
body[data-segmento="pet"] .mobile-nav { border-radius: 20px 20px 0 0; border-top: none;
    box-shadow: 0 -8px 26px -12px rgba(240, 98, 146, 0.4); }
body[data-segmento="pet"] .mobile-nav-item { font-family: 'Fredoka', sans-serif; }
body[data-segmento="pet"] .mobile-nav-item.active { color: #E05793; }

/* ---- Animações CSS ---- */
@keyframes icon-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }@keyframes icon-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes icon-wag { 0%,100% { transform: rotate(0deg); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@keyframes icon-blink { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(0.12); } }
@keyframes icon-wiggle { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(5deg); } }
.icon-wag { display: inline-block; animation: icon-wag 1.6s ease-in-out infinite; transform-origin: 20% 80%; }
.icon-bounce { display: inline-block; animation: icon-bounce 2.2s ease-in-out infinite; }
.icon-float { display: inline-block; animation: icon-float 3.2s ease-in-out infinite; }
.icon-blink { display: inline-block; animation: icon-blink 3.6s ease-in-out infinite; }
.icon-wiggle { display: inline-block; animation: icon-wiggle 2.4s ease-in-out infinite; }
body[data-segmento="pet"] .page-header h1 i { animation: icon-wag 3.4s ease-in-out infinite; }
body[data-segmento="pet"] .card { animation: fade-in-up 0.45s var(--ease) both; }
body[data-segmento="pet"] .card:nth-child(2) { animation-delay: 0.08s; }
body[data-segmento="pet"] .card:nth-child(3) { animation-delay: 0.16s; }

