/* ===================================================
   ClienteHub.pet — Design System v2
   Paleta Dourada Elegante • Curvas Suaves
   =================================================== */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* === Design Tokens === */
:root {
    /* Primary — Ouro Quente */
    --primary: #C9A84C;
    --primary-light: #E9C46A;
    --primary-dark: #9A7B2F;
    --primary-container: #FDF6E3;
    --on-primary: #FFFFFF;
    --on-primary-container: #5C4A1E;

    /* Secondary — Âmbar Profundo */
    --secondary: #B8860B;
    --secondary-light: #D4A843;
    --secondary-dark: #8B6508;
    --secondary-container: #FFF8E7;
    --on-secondary: #FFFFFF;
    --on-secondary-container: #6B4E0A;
    --secondary-fixed: #F5E6C4;
    --on-secondary-fixed: #5C4A1E;
    --on-secondary-fixed-variant: #8B6508;

    /* Accent — Verde Salvia */
    --accent: #6B8F71;
    --accent-light: #8FB996;
    --accent-container: #E8F0E9;

    /* Surfaces — Creme Sofisticado */
    --surface: #FDFBF5;
    --surface-dim: #F5F1E8;
    --surface-container-lowest: #FFFFFF;
    --surface-container-low: #FBF9F2;
    --surface-container: #F7F4EB;
    --surface-container-high: #F2EEE3;
    --surface-container-highest: #EDEADF;
    --on-surface: #1A1A18;
    --on-surface-variant: #5C5A52;

    /* Outline */
    --outline: #8E8C82;
    --outline-variant: #D8D5CC;

    /* Error */
    --error: #C62828;
    --error-container: #FFEBEE;
    --on-error: #FFFFFF;
    --on-error-container: #8E0000;

    /* Background */
    --background: #F9F6EE;
    --on-background: #1A1A18;

    /* Misc */
    --scrim: rgba(26, 26, 24, 0.45);
    --shadow-color: rgba(154, 123, 47, 0.08);

    /* Elevations */
    --elevation-1: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --elevation-2: 0 4px 12px rgba(154, 123, 47, 0.08), 0 1px 4px rgba(0,0,0,0.04);
    --elevation-3: 0 8px 30px rgba(154, 123, 47, 0.10), 0 2px 8px rgba(0,0,0,0.04);
    --elevation-4: 0 20px 50px rgba(154, 123, 47, 0.12), 0 4px 16px rgba(0,0,0,0.04);

    /* Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Timing */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--on-surface);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
.font-headline {
    font-family: 'Outfit', 'Inter', sans-serif;
}

.font-label {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.04em;
}

/* === Gold Gradient (Primary) === */
.paw-gradient {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 50%, #F2D98A 100%);
}

.paw-gradient-soft {
    background: linear-gradient(135deg, var(--primary-light) 0%, #F2D98A 100%);
}

.paw-gradient-text {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Layout Utilities === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.items-end { align-items: end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hidden { display: none !important; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.min-w-0 { min-width: 0; }
.shrink-0 { flex-shrink: 0; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resize-none { resize: none; }
.w-full { width: 100%; }

/* === Spacing === */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-4 { padding-top: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* === Typography Sizes === */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }

/* === Colors === */
.text-primary { color: var(--primary); }
.text-white { color: #fff; }
.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-on-secondary-fixed-variant { color: var(--on-secondary-fixed-variant); }
.text-on-secondary-fixed { color: var(--on-secondary-fixed); }
.text-error { color: var(--error); }
.text-surface { color: var(--surface); }
.text-surface-variant { color: var(--on-surface-variant); }
.text-outline { color: var(--outline); }
.bg-primary { background-color: var(--primary); }
.bg-surface { background-color: var(--surface); }
.bg-surface-container-lowest { background-color: var(--surface-container-lowest); }
.bg-surface-container-low { background-color: var(--surface-container-low); }
.bg-surface-container { background-color: var(--surface-container); }
.bg-surface-container-high { background-color: var(--surface-container-high); }
.bg-surface-container-highest { background-color: var(--surface-container-highest); }
.bg-on-surface { background-color: var(--on-surface); }
.bg-on-background { background-color: var(--on-background); }
.bg-error { background-color: var(--error); }
.bg-error-container { background-color: var(--error-container); }
.bg-green-100 { background-color: #D5E8D4; }
.bg-green-50 { background-color: #EDF5EC; }
.bg-amber-50 { background-color: #FDF6E3; }
.bg-amber-100 { background-color: #F5E6C4; }
.bg-red-50 { background-color: #FDE8E8; }
.bg-red-100 { background-color: #F5C6C6; }
.bg-blue-100 { background-color: #C8DAF0; }
.bg-teal-50 { background-color: #E8F0E9; }
.bg-teal-100 { background-color: #C8DCC9; }
.bg-emerald-50 { background-color: #EDF5EC; }
.bg-slate-100 { background-color: #F0EDE6; }
.text-green-600 { color: #3D7A3F; }
.text-green-700 { color: #2D6830; }
.text-amber-600 { color: #9A7B2F; }
.text-amber-700 { color: #8B6508; }
.text-red-400 { color: #D75A5A; }
.text-red-500 { color: #C62828; }
.text-red-600 { color: #B71C1C; }
.text-red-700 { color: #8E0000; }
.text-blue-700 { color: #2B5EA7; }
.text-emerald-500 { color: #3D7A3F; }
.text-teal-600 { color: #4D7A50; }
.text-teal-700 { color: #3D6A40; }
.text-slate-500 { color: #6B6961; }
.border-red-100 { border-color: #F5C6C6; }
.border-red-500 { border-color: #C62828; }
.border-amber-200 { border-color: #E9C46A; }
.border-emerald-100 { border-color: #C8DCC9; }
.border-transparent { border-color: transparent; }

/* === Border Radius — Extra Suave === */
.rounded-lg { border-radius: var(--radius-sm); }
.rounded-xl { border-radius: var(--radius-md); }
.rounded-2xl { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* === Shadows — Elegantes === */
.shadow-sm { box-shadow: var(--elevation-1); }
.shadow-lg { box-shadow: var(--elevation-2); }
.shadow-xl { box-shadow: var(--elevation-3); }
.shadow-2xl { box-shadow: var(--elevation-4); }

/* === Transitions — Ultra Suaves === */
.transition-all { transition: all 0.3s var(--ease-smooth); }
.transition-colors { transition: color 0.25s var(--ease-smooth), background-color 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth); }
.transition-transform { transition: transform 0.3s var(--ease-smooth); }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* === Ghost Border (mais sutil) === */
.ghost-border {
    border: 1px solid rgba(201, 168, 76, 0.08);
}

/* ============================================
   APP LAYOUT
   ============================================ */

/* === Login Screen — Premium Elegante === */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse at 15% 45%, rgba(233, 196, 106, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(201, 168, 76, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 95%, rgba(242, 217, 138, 0.08) 0%, transparent 45%),
        linear-gradient(170deg, #FEFCF7 0%, #F8F4EA 40%, #F2EDE2 100%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 196, 106, 0.06) 0%, transparent 65%);
    top: -180px;
    right: -120px;
    animation: floatOrb 22s ease-in-out infinite;
}

.login-screen::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 65%);
    bottom: -120px;
    left: -80px;
    animation: floatOrb 28s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.04); }
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 32px;
    border: 1px solid rgba(233, 196, 106, 0.10);
    box-shadow:
        0 30px 80px rgba(154, 123, 47, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 2.75rem 2.5rem;
    position: relative;
    z-index: 1;
    animation: cardFloat 0.7s var(--ease-out);
}

@keyframes cardFloat {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* === Login Logo Icon === */
.login-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    box-shadow: 
        0 8px 24px rgba(201, 168, 76, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s var(--ease-bounce);
}

.login-logo-icon:hover {
    transform: scale(1.06) rotate(-3deg);
}

/* === Login Divider Line === */
.login-divider-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
    opacity: 0.5;
}

/* === Login Form Fields === */
.login-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* === Login Label — Clean & Subtle === */
.login-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    letter-spacing: 0.01em;
    opacity: 0.8;
    padding-left: 2px;
}

/* === Login Input — Soft Elegant === */
.login-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--surface-container-low);
    border: 1.5px solid var(--outline-variant);
    border-radius: 14px;
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    transition: all 0.3s var(--ease-smooth);
    outline: none;
}

.login-input::placeholder {
    color: var(--on-surface-variant);
    opacity: 0.4;
    font-weight: 400;
}

.login-input:hover {
    border-color: rgba(201, 168, 76, 0.35);
    background: var(--surface-container-lowest);
}

.login-input:focus {
    border-color: var(--primary-light);
    background: var(--surface-container-lowest);
    box-shadow: 
        0 0 0 4px rgba(233, 196, 106, 0.12),
        0 2px 8px rgba(201, 168, 76, 0.06);
}

/* === Login Eye Button === */
.login-eye-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    color: var(--on-surface-variant);
    opacity: 0.5;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-eye-btn:hover {
    opacity: 0.9;
    background: rgba(201, 168, 76, 0.08);
}

/* === Login Checkbox === */
.login-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    border-radius: 4px;
    cursor: pointer;
}

/* === Login Forgot Link === */
.login-forgot-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-dark);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s var(--ease-smooth);
    opacity: 0.75;
}

.login-forgot-link:hover {
    color: var(--primary);
    opacity: 1;
    text-decoration: underline;
}

/* === Login Submit Button === */
.login-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 
        0 6px 20px rgba(201, 168, 76, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s var(--ease-smooth);
    margin-top: 0.25rem;
}

.login-submit-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 
        0 10px 30px rgba(201, 168, 76, 0.30),
        0 2px 6px rgba(0, 0, 0, 0.06);
}

.login-submit-btn:not(:disabled):active {
    transform: translateY(0) scale(0.98);
}

/* === Login Error Box === */
.login-error-box {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    background: var(--error-container);
    color: var(--on-error-container);
    border: 1px solid rgba(198, 40, 40, 0.08);
}

/* === Login OR Divider === */
.login-or-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.login-or-line {
    flex: 1;
    height: 1px;
    background: var(--outline-variant);
    opacity: 0.3;
}

.login-or-text {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
    opacity: 0.55;
    font-weight: 500;
    white-space: nowrap;
}

/* === Login Google Button === */
.login-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface-container-lowest);
    border: 1.5px solid var(--outline-variant);
    border-radius: 14px;
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.login-google-btn:hover {
    background: var(--surface-container-low);
    border-color: rgba(201, 168, 76, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.login-google-btn:active {
    transform: translateY(0) scale(0.98);
}

/* === Login Register Link === */
.login-register-link {
    color: var(--primary-dark);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    transition: color 0.2s var(--ease-smooth);
}

.login-register-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* === App Shell === */
.app-shell {
    display: flex;
    min-height: 100vh;
    background: var(--background);
}

/* === Sidebar — Premium Glass === */
.sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(201, 168, 76, 0.10);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    overflow-y: auto;
    transition: transform 0.4s var(--ease-smooth);
}

.sidebar-logo {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.15rem;
    margin: 0.2rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--on-surface-variant);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.nav-item:hover {
    background: rgba(233, 196, 106, 0.10);
    color: var(--on-surface);
    transform: translateX(3px);
}

.nav-item.active {
    background: transparent;
    color: #fff;
    box-shadow: 
        0 4px 18px rgba(201, 168, 76, 0.30),
        0 1px 4px rgba(0, 0, 0, 0.06);
}

.nav-item.active::before {
    opacity: 1;
}

.nav-item.active > * {
    position: relative;
    z-index: 1;
}

.nav-item.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
    position: relative;
    z-index: 1;
}

/* === Main Content === */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.top-bar {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
}

.app-content {
    padding: 2rem;
    animation: fadeIn 0.4s var(--ease-smooth);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Sidebar Overlay (Mobile) === */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: var(--scrim);
    z-index: 35;
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    backdrop-filter: blur(4px);
}

.sidebar-overlay.show {
    opacity: 1;
}

/* === Bottom Nav (Mobile) === */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(201, 168, 76, 0.10);
    z-index: 30;
    padding: 0.5rem 0;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.4rem 0;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    text-decoration: none;
}

.bottom-nav-item.active {
    color: var(--primary-dark);
}

.bottom-nav-item.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

/* === Toast — Elegante === */
.toast {
    animation: slideInRight 0.4s var(--ease-bounce);
}

@keyframes slideInRight {
    from { transform: translateX(120px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* === Modal — Glass Premium === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 24, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.35s var(--ease-smooth);
}

.modal-overlay.show {
    opacity: 1;
}

.modal-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(233, 196, 106, 0.12);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 30px 80px rgba(26, 26, 24, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: modalPop 0.35s var(--ease-bounce);
}

@keyframes modalPop {
    from { transform: scale(0.92) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* === Spinner === */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

.spinner-dark {
    border-color: rgba(201, 168, 76, 0.15);
    border-top-color: var(--primary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Form Styles — Arredondados e Elegantes === */
input, select, textarea {
    font-family: 'Inter', sans-serif;
    outline: none;
    border-radius: var(--radius-sm) !important;
    transition: all 0.25s var(--ease-smooth);
}

input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(233, 196, 106, 0.20);
    border-color: var(--primary-light) !important;
}

/* === Hover/Scale Utilities === */
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.hover\:scale-110:hover { transform: scale(1.1); }
.active\:scale-95:active { transform: scale(0.95); }
.hover\:bg-surface-container-low:hover { background-color: var(--surface-container-low); }
.hover\:bg-surface-container:hover { background-color: var(--surface-container); }
.hover\:bg-surface-container-highest:hover { background-color: var(--surface-container-highest); }
.hover\:bg-slate-50:hover { background-color: #FAF8F2; }
.hover\:shadow-md:hover { box-shadow: var(--elevation-2); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:border-primary\/20:hover { border-color: rgba(201, 168, 76, 0.2); }
.hover\:border-secondary\/20:hover { border-color: rgba(184, 134, 11, 0.2); }

/* === Opacity classes === */
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.cursor-not-allowed { cursor: not-allowed; }

/* === Border utilities === */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-none { border: none; }
.border-t { border-top: 1px solid var(--outline-variant); }
.border-dashed { border-style: dashed; }

/* === Z-index === */
.z-10 { z-index: 10; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* === Inset === */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }

/* === Max width === */
.max-w-4xl { max-width: 56rem; }

/* === Specific alpha backgrounds (updated to gold) === */
.bg-primary\/5 { background-color: rgba(201, 168, 76, 0.05); }
.bg-primary\/10 { background-color: rgba(201, 168, 76, 0.1); }
.border-primary\/10 { border-color: rgba(201, 168, 76, 0.1); }
.border-outline-variant\/10 { border-color: rgba(216, 213, 204, 0.4); }
.border-outline-variant\/20 { border-color: rgba(216, 213, 204, 0.6); }
.shadow-primary\/20 { box-shadow: 0 10px 25px rgba(201, 168, 76, 0.2); }
.shadow-primary\/30 { box-shadow: 0 20px 50px rgba(201, 168, 76, 0.3); }
.text-primary\/40 { color: rgba(201, 168, 76, 0.4); }
.text-primary\/70 { color: rgba(201, 168, 76, 0.7); }
.bg-secondary-fixed\/30 { background-color: rgba(245, 230, 196, 0.3); }
.text-primary-fixed { color: var(--secondary-light); }
.focus\:ring-2:focus { box-shadow: 0 0 0 3px rgba(233, 196, 106, 0.2); }
.focus\:ring-primary\/20:focus { box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group[open] .group-open\:rotate-180 { transform: rotate(180deg); }

/* === Pet Avatar Placeholder — Softer === */
.pet-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.25s var(--ease-smooth);
}

.pet-avatar:hover {
    transform: scale(1.08);
}

.pet-avatar.dog { background: #F5E6C4; color: #9A7B2F; }
.pet-avatar.cat { background: #FDF6E3; color: #C9A84C; }
.pet-avatar.bird { background: #E8F0E9; color: #6B8F71; }
.pet-avatar.other { background: #E8E6F0; color: #6B6B8F; }

/* === Species Badge — Arredondado === */
.species-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === Health Record Timeline — Elegante === */
.health-timeline {
    position: relative;
    padding-left: 2rem;
}

.health-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-light), var(--outline-variant));
    border-radius: 2px;
}

.health-timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.health-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    background: var(--surface-container-lowest);
    z-index: 1;
    transition: transform 0.2s var(--ease-smooth);
}

.health-timeline-item:hover::before {
    transform: scale(1.3);
}

.health-timeline-item.vaccine::before { border-color: var(--accent); }
.health-timeline-item.exam::before { border-color: #6B6B8F; }
.health-timeline-item.weight::before { border-color: var(--secondary); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:col-span-2 { grid-column: span 2; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-end { align-items: end; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:col-span-2 { grid-column: span 2; }
}

@media (max-width: 767px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .app-content {
        padding: 1.25rem;
        padding-bottom: 5rem;
    }
    .top-bar {
        padding: 0.75rem 1rem;
    }
    .bottom-nav {
        display: flex;
    }
    .mobile-grid-2x2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .mobile-grid-2x2 > *:first-child {
        grid-column: span 2;
    }
    .mobile-full-width {
        max-width: 100% !important;
    }
    #toast-container {
        bottom: 5rem;
        right: 1rem;
        left: 1rem;
    }
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }
}

/* === Scrollbar — Sutil === */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.4);
}

/* === Print === */
@media print {
    .sidebar, .bottom-nav, .top-bar, #toast-container, #fab-container {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
}

/* === Selection === */
::selection {
    background: rgba(233, 196, 106, 0.3);
    color: var(--on-surface);
}
