:root {
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --primary-light: #F0FDFA;
    --accent: #6366F1;

    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;

    --bg: #F8FAFC;
    --bg-alt: #F1F5F9;
    --surface: #FFFFFF;

    --text: #0F172A;
    --text-muted: #475569;
    --text-light: #94A3B8;
    --text-inverse: #FFFFFF;

    --border: #E2E8F0;
    --border-light: #F1F5F9;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 10px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 25px -10px rgba(15, 23, 42, 0.15);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: 160ms ease;

    --container-max: 1160px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

a { text-decoration: none; color: var(--primary); transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.text-accent { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-brand, .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.nav-logo:hover { color: var(--text); }

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
}

.logo-text { color: var(--text); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--bg-alt); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-lang {
    position: relative;
    flex-shrink: 0;
}

.nav-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 6px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all var(--transition);
    font-family: inherit;
    line-height: 1;
}
.nav-lang-trigger:hover { border-color: var(--primary); }
.nav-lang-trigger:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,148,136,0.15); }
.nav-lang.open .nav-lang-trigger,
.nav-lang-trigger[aria-expanded="true"] {
    border-color: var(--primary);
    background: var(--primary-light);
}
.nav-lang.open .nav-lang-chevron,
.nav-lang-trigger[aria-expanded="true"] .nav-lang-chevron { transform: rotate(180deg); }

.nav-lang-flag { font-size: 1rem; line-height: 1; }
.nav-lang-label { min-width: 22px; letter-spacing: 0.02em; }
.nav-lang-chevron { color: var(--text-muted); transition: transform var(--transition); }

.nav-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    list-style: none;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transform-origin: top right;
    transition: all var(--transition);
}

.nav-lang.open .nav-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-lang-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    transform: rotate(45deg);
}

.nav-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}
.nav-lang-option:hover { background: var(--bg-alt); color: var(--text); }
.nav-lang-option.is-active { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }

.nav-lang-option-flag { font-size: 1rem; flex-shrink: 0; width: 24px; text-align: center; }
.nav-lang-option-label { flex: 1; }
.nav-lang-check { color: var(--primary-dark); flex-shrink: 0; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.90625rem;
    font-weight: 500;
    transition: var(--transition);
}
.nav-link:hover { background: var(--bg-alt); color: var(--text); }
.nav-link.active { color: var(--primary-dark); background: var(--primary-light); }

.nav-link-badge { position: relative; padding-right: 34px; }
.nav-badge {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: var(--danger);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.nav-link-profile .profile-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 8px;
}

.nav-btn-primary {
    background: var(--primary);
    color: #fff !important;
    font-weight: 600;
    padding: 8px 18px !important;
    border-radius: var(--radius);
}
.nav-btn-primary:hover {
    background: var(--primary-dark);
    color: #fff !important;
}

.nav-link-logout { color: var(--danger) !important; font-weight: 600; }
.nav-link-logout:hover { background: rgba(239, 68, 68, 0.08); color: var(--danger); }

.conteudo-principal {
    min-height: calc(100vh - 68px);
    padding: 40px 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.cabecalho { background: transparent; }
.cabecalho .navbar { background: transparent; border-bottom: none; }

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 24px 96px;
    background:
        radial-gradient(ellipse at top, rgba(13, 148, 136, 0.06), transparent 60%),
        #FFFFFF;
    border-bottom: 1px solid var(--border-light);
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid rgba(13, 148, 136, 0.25);
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.125rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 18px;
}
.hero-title .text-accent { color: var(--primary); }

.hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 44px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
.btn svg { flex-shrink: 0; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.28);
}
.btn-primary:active { transform: translateY(1px); }

.btn-outline {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn-light {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.btn-light:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
    border-color: rgba(255,255,255,0.45);
}

.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 10px; }

.botao {
    display: inline-block;
    padding: 11px 20px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 4px;
    transition: all var(--transition);
    text-decoration: none;
}
.botao {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    border: none;
    font-family: inherit;
}

.botao-primario { 
    background-color: var(--primary); 
    color: #fff; 
}
.botao-primario:hover { 
    background-color: var(--primary-dark); 
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.botao-secundario { background-color: transparent; color: var(--primary); border: 1px solid var(--primary); }
.botao-secundario:hover { background: var(--primary-light); }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border-light);
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-number { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; }

.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-visual {
    position: relative;
    min-height: 480px;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-main {
    position: relative;
    width: 100%;
    max-width: 360px;
    min-height: 380px;
    background: linear-gradient(145deg, #0D9488 0%, #0F766E 100%);
    border-radius: 28px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 50px -12px rgba(13, 148, 136, 0.4), 0 8px 24px -6px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    animation: heroLevitate 6s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.hero-card-main:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 28px 60px -10px rgba(13, 148, 136, 0.48), 0 12px 30px -4px rgba(0, 0, 0, 0.15);
}

@keyframes heroLevitate {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.hero-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}
.hero-card-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.live-pulse {
    width: 8px;
    height: 8px;
    background: #34D399;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 9px rgba(52, 211, 153, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

.hero-card-icon-glow {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-card-icon-glow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.15) rotate(6deg);
    color: #F43F5E;
}

.hero-card-icon-glow:active {
    transform: scale(0.92);
}

.hero-card-icon-glow.liked {
    background: rgba(244, 63, 94, 0.9);
    color: #ffffff;
    border-color: #F43F5E;
    animation: heartBeat 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-card-icon-glow.liked svg {
    fill: #ffffff;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.hero-card-main-inner {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.12);
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card-main-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.16);
}

.avatar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-row:hover .avatar {
    transform: scale(1.1) rotate(-4deg);
}

.avatar-info {
    overflow: hidden;
}
.avatar-row h5 {
    font-size: 0.90625rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.avatar-row span {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.status-dot {
    margin-left: auto;
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: statusPulse 2.5s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1);
    }
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    gap: 8px;
}
.progress-label span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.progress-label span:last-child {
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}
.progress-bar {
    height: 7px;
    background: var(--bg-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0D9488 0%, #14B8A6 100%);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
    animation: growProgress 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    animation: shimmerProgress 2.5s infinite linear;
}

@keyframes growProgress {
    0% { width: 0%; }
    100% { width: 85%; }
}

@keyframes shimmerProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.hero-card-float {
    position: absolute;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    box-shadow: 0 14px 36px -4px rgba(0, 0, 0, 0.14), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    z-index: 10;
    min-width: 210px;
    max-width: 245px;
    backdrop-filter: blur(8px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.card-1 {
    top: -22px;
    left: -20px;
    animation: floatBadgeTop 5s ease-in-out infinite;
}

.card-2 {
    bottom: -22px;
    right: -20px;
    animation: floatBadgeBottom 5.5s ease-in-out 0.5s infinite;
}

.card-1:hover {
    transform: translateY(-6px) scale(1.03) rotate(-1deg);
    box-shadow: 0 20px 42px -6px rgba(0, 0, 0, 0.18);
}

.card-2:hover {
    transform: translateY(-6px) scale(1.03) rotate(1deg);
    box-shadow: 0 20px 42px -6px rgba(0, 0, 0, 0.18);
}

@keyframes floatBadgeTop {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-9px) rotate(-1deg); }
}

@keyframes floatBadgeBottom {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(1deg); }
}

.hero-card-float h4 { font-size: 0.84375rem; font-weight: 700; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card-float p { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

.icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-green { background: #D1FAE5; color: #059669; }
.icon-orange { background: #FEF3C7; color: #B45309; }
.icon-teal { background: var(--primary-light); color: var(--primary-dark); }
.icon-blue { background: #DBEAFE; color: #2563EB; }
.icon-purple { background: #EDE9FE; color: #7C3AED; }
.icon-pink { background: #FCE7F3; color: #BE185D; }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 52px;
}
.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.01em;
    text-transform: none;
}
.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 14px;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.features-section {
    padding: 96px 24px;
    background: var(--bg);
}
.features-section .section-header { margin-bottom: 44px; }

.features-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.9375rem;
}

.funcionalidades, .grade-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 32px;
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { color: var(--primary-dark); margin-bottom: 8px; font-weight: 700; }

.how-section {
    padding: 96px 24px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.steps-row {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: left;
    transition: all var(--transition);
}
.step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}

.step-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
    padding: 4px 10px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    margin-bottom: 18px;
}

.step-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.step-card h3 {
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.step-card p {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.9375rem;
}

.cta-section {
    padding: 96px 24px;
    background: var(--bg);
}

.cta-card {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--primary);
    padding: 56px 48px;
}

.cta-content { position: relative; z-index: 1; max-width: 620px; }
.cta-content h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.2;
}
.cta-content p {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 28px;
    line-height: 1.7;
    max-width: 520px;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.footer {
    background: #0B1220;
    color: #94A3B8;
    padding: 80px 24px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-container { max-width: var(--container-max); margin: 0 auto; }

.footer-main {
    display: grid;
    grid-template-columns: 1.15fr 3fr;
    gap: 72px;
    padding-bottom: 56px;
}

.footer-brand { display: flex; flex-direction: column; }
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
    width: fit-content;
}
.footer-logo:hover { color: #fff; }
.footer-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.footer-about {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #64748B;
    max-width: 300px;
    margin: 0 0 24px;
}
.footer-social { display: flex; gap: 8px; margin-top: auto; }
.social-link {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    transition: all var(--transition);
}
.social-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.14);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col h5 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #E2E8F0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 20px;
    line-height: 1;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
    color: #94A3B8;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color var(--transition);
    display: inline-block;
    padding: 1px 0;
}
.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.footer-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px !important; }
.footer-contact-list li { display: flex; flex-direction: column; gap: 3px; }
.contact-label {
    font-size: 0.6875rem;
    color: #475569;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
}
.contact-value {
    font-size: 0.875rem;
    color: #CBD5E1;
    font-weight: 400;
    line-height: 1.4;
}
a.contact-value { color: #CBD5E1; text-decoration: none; padding: 0; }
a.contact-value:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 22px 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.footer-bottom-left small {
    font-size: 0.8125rem;
    color: #475569;
    font-weight: 400;
    letter-spacing: 0.005em;
}
.footer-bottom-right { display: flex; align-items: center; }
.footer-legal { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; }
.footer-legal a {
    font-size: 0.8125rem;
    color: #64748B;
    font-weight: 400;
    transition: color var(--transition);
}
.footer-legal a:hover {
    color: #94A3B8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rodape {
    background-color: var(--primary-dark);
    color: #fff;
    text-align: center;
    padding: 24px;
    font-size: 0.875rem;
}

.formulario-container {
    max-width: 480px;
    margin: 32px auto;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.formulario-container h2 { margin-bottom: 24px; color: var(--text); font-weight: 700; }

.campo { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.campo input, .campo select, .campo textarea {
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: all var(--transition);
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.campo textarea { resize: vertical; min-height: 100px; }

.mensagem-erro { color: var(--danger); font-size: 0.8125rem; min-height: 1.2em; font-weight: 500; }

.tabela-dados {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.tabela-dados th, .tabela-dados td {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-light);
}
.tabela-dados th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
.tabela-dados tbody tr:last-child td { border-bottom: none; }
.tabela-dados tbody tr:hover { background: var(--surface-hover); }

.cabecalho-secao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.cabecalho-secao h2 { font-size: 1.625rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.auth-page {
    min-height: calc(100vh - 68px);
    background: var(--bg);
    padding: 0;
    max-width: none;
}

.auth-grid {
    min-height: calc(100vh - 68px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: 100%;
    margin: 0;
}

.auth-side {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 48px 56px;
    display: flex;
    align-items: stretch;
    background-image: none !important;
    background-color: transparent !important;
}

.auth-side::before,
.auth-side::after {
    display: none !important;
    content: none !important;
}

section.auth-page .auth-side-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(160deg, #0F766E 0%, #0D9488 100%) !important;
    background-color: #0D9488 !important;
    z-index: 0;
}

.auth-side-content {
    position: relative;
    z-index: 1;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.375rem;
    margin-bottom: 64px;
    width: fit-content;
}
.auth-brand:hover { color: #fff; }
.auth-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.auth-testimonial {
    margin-top: auto;
    margin-bottom: 40px;
    padding: 24px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
}
.auth-testimonial-text {
    font-size: 0.96875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
    font-weight: 500;
    margin-bottom: 16px;
}
.auth-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.auth-side .auth-testimonial .auth-testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #F59E0B !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.auth-testimonial-author strong {
    display: block;
    color: #fff;
    font-size: 0.90625rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.auth-testimonial-author span {
    color: rgba(255,255,255,0.72);
    font-size: 0.8125rem;
}

.auth-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-features li {
    position: relative;
    padding-left: 26px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9375rem;
    font-weight: 500;
    padding-top: 2px;
    padding-bottom: 2px;
}
.auth-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 14px;
    height: 10px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-2px);
    opacity: 0.85;
}

.auth-main {
    background: var(--bg);
    padding: 48px 48px 24px;
    display: flex;
    flex-direction: column;
}

.auth-main-inner {
    max-width: 420px;
    width: 100%;
    margin: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0 32px;
}

.auth-form-header {
    margin-bottom: 36px;
}
.auth-form-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.2;
}
.auth-form-header p {
    color: var(--text-muted);
    font-size: 0.96875rem;
    line-height: 1.6;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.auth-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.auth-link-subtle {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
}
.auth-link-subtle:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }

.auth-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.auth-field-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}

.auth-field-wrap input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 14px;
    padding-left: 14px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text);
    border-radius: var(--radius);
}
.auth-field-wrap input::placeholder { color: var(--text-light); }
.auth-field-wrap input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

.auth-field-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-light);
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.auth-field-toggle:hover { background: var(--bg-alt); color: var(--text-muted); }
.auth-field-toggle .icon-eye-off { display: none; }
.auth-field-toggle.show .icon-eye { display: none; }
.auth-field-toggle.show .icon-eye-off { display: block; }

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 2px;
}
.auth-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.auth-checkbox-mark {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid var(--border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}
.auth-checkbox input:checked + .auth-checkbox-mark {
    background: var(--primary);
    border-color: var(--primary);
}
.auth-checkbox input:checked + .auth-checkbox-mark::after {
    content: '';
    width: 10px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}
.auth-checkbox input:focus-visible + .auth-checkbox-mark {
    box-shadow: 0 0 0 3px rgba(13,148,136,0.2);
}

.auth-alert {
    min-height: 0;
    max-height: 0;
    opacity: 0;
    padding: 0 14px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid transparent;
    overflow: hidden;
    transition: all 0.25s ease;
}
.auth-alert.show {
    min-height: 42px;
    max-height: 120px;
    padding: 11px 14px;
    opacity: 1;
    margin-top: 2px;
}
.auth-alert-error {
    background: rgba(239,68,68,0.08);
    color: var(--danger);
    border-color: rgba(239,68,68,0.25);
}
.auth-alert-success {
    background: rgba(16,185,129,0.08);
    color: var(--success);
    border-color: rgba(16,185,129,0.25);
}

.auth-btn-primary {
    position: relative;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
}
.auth-btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.28);
}
.auth-btn-primary:active:not(:disabled) { transform: translateY(1px); }
.auth-btn-primary:disabled { cursor: not-allowed; }

.auth-btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.auth-btn-primary.loading .auth-btn-loader { display: inline-block; }
.auth-btn-primary.loading .auth-btn-label { opacity: 0.9; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0 20px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.auth-social-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.auth-btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.auth-btn-social:not(:disabled):hover {
    border-color: var(--primary);
    background: var(--surface-hover);
}
.auth-btn-social:disabled { opacity: 0.55; cursor: not-allowed; }

.auth-switch {
    margin-top: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
}
.auth-switch a {
    color: var(--primary);
    font-weight: 600;
}
.auth-switch a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }

.auth-footer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.8125rem;
    padding-top: 16px;
}

body:has(.auth-page) .cabecalho .navbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
body:has(.auth-page) .footer { display: none; }

/* ===== Estilos das Páginas Legais (Termos, Privacidade, Cookies) ===== */
.legal-page-wrapper {
    background: var(--bg);
    min-height: calc(100vh - 80px);
    padding-bottom: 64px;
}

.legal-hero {
    background: linear-gradient(135deg, #0F766E 0%, #0D9488 100%);
    color: #ffffff;
    padding: 56px 24px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 24px;
    background: var(--bg);
    border-radius: 24px 24px 0 0;
}

.legal-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.legal-hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.legal-hero p {
    font-size: 1.0625rem;
    opacity: 0.92;
    max-width: 620px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.legal-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.84375rem;
    opacity: 0.85;
}

.legal-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legal-container {
    max-width: 1140px;
    margin: -10px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.legal-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.legal-nav {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.legal-nav h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.legal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.legal-nav-link:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.legal-nav-link.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.legal-content {
    min-width: 0;
}

.legal-article {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.legal-section {
    margin-bottom: 36px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.legal-section p {
    font-size: 0.96875rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.legal-section ul {
    margin: 0 0 16px 20px;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.96875rem;
    line-height: 1.7;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-callout {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 20px 0;
}

.legal-callout h4 {
    color: var(--primary-dark);
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.legal-callout p {
    color: var(--text);
    margin-bottom: 0;
    font-size: 0.90625rem;
}

.cookies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.cookie-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
}

.cookie-type-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.cookie-type-badge.essential { background: #D1FAE5; color: #059669; }
.cookie-type-badge.preference { background: #DBEAFE; color: #2563EB; }
.cookie-type-badge.analytics { background: #EDE9FE; color: #7C3AED; }

.cookie-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.cookie-card p {
    font-size: 0.84375rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.legal-contact-box {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
}

.legal-contact-box h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.legal-contact-box ul {
    list-style: none;
    margin: 16px 0 0 0;
    padding: 0;
}

.legal-contact-box li {
    margin-bottom: 8px;
    font-size: 0.90625rem;
}

.legal-contact-box a {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 960px) {
    .legal-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .legal-sidebar {
        position: static;
    }
    .legal-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .legal-nav-link {
        flex: 1;
        min-width: 160px;
        justify-content: center;
    }
    .legal-article {
        padding: 24px;
    }
}

/* Page Wrapper Styles */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.page-hero .hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.page-hero .hero-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.content-container {
    flex: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px 24px;
    width: 100%;
}

.main-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Feature Detail Cards */
.feature-detail-section {
    display: grid;
    gap: 32px;
}

.feature-detail-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.feature-icon-large {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-large.icon-teal { background: var(--primary-light); color: var(--primary); }
.feature-icon-large.icon-blue { background: #DBEAFE; color: #2563EB; }
.feature-icon-large.icon-purple { background: #F3E8FF; color: #9333EA; }
.feature-icon-large.icon-orange { background: #FFEDD5; color: #EA580C; }
.feature-icon-large.icon-green { background: #DCFCE7; color: #16A34A; }
.feature-icon-large.icon-red { background: #FEE2E2; color: #DC2626; }

.feature-detail-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-detail-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.feature-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-benefits li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-muted);
}

.feature-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* How Steps */
.steps-container {
    display: grid;
    gap: 32px;
}

.step-card {
    display: flex;
    gap: 24px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.step-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.step-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-details li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.90625rem;
}

.step-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.feature-mini-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    text-align: center;
}

.feature-mini-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-mini-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-mini-card p {
    color: var(--text-muted);
    font-size: 0.90625rem;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.benefit-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.90625rem;
}

/* Vets Steps */
.vets-steps {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

.vet-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.vet-step-number {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.vet-step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.vet-step-content p {
    color: var(--text-muted);
    font-size: 0.90625rem;
}

/* Requirements List */
.requirements-list {
    margin-top: 32px;
}

.requirement-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.requirement-item:last-child {
    border-bottom: none;
}

.req-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: #DCFCE7;
    color: #16A34A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.requirement-item p {
    color: var(--text-muted);
    font-size: 0.90625rem;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.pricing-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    position: relative;
}

.pricing-card.popular-badge {
    border: 2px solid var(--primary);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.pricing-price {
    margin-bottom: 12px;
}

.price-currency {
    font-size: 0.90625rem;
    color: var(--text-muted);
    vertical-align: super;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
}

.price-period {
    font-size: 0.90625rem;
    color: var(--text-muted);
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 0.90625rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.90625rem;
}

.feature-included svg {
    color: #16A34A;
    flex-shrink: 0;
}

.feature-excluded svg {
    color: #94A3B8;
    flex-shrink: 0;
}

.feature-excluded {
    color: var(--text-light);
    text-decoration: line-through;
}

.pricing-cta {
    text-align: center;
}

.current-plan {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
}

/* Pricing Notes */
.notes-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    margin-top: 32px;
}

.notes-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.notes-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notes-card li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.90625rem;
}

.notes-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Updates Timeline */
.updates-timeline {
    display: grid;
    gap: 32px;
    margin-top: 32px;
}

.update-item {
    display: flex;
    gap: 24px;
}

.update-date {
    width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.update-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.update-day {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.update-year {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.update-content {
    flex: 1;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}

.update-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.update-badge.update-badge-new { background: #DCFCE7; color: #16A34A; }
.update-badge.update-badge-improvement { background: #DBEAFE; color: #2563EB; }
.update-badge.update-badge-feature { background: #F3E8FF; color: #9333EA; }
.update-badge.update-badge-tech { background: #FFEDD5; color: #EA580C; }
.update-badge.update-badge-beta { background: #FEE2E2; color: #DC2626; }

.update-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.update-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.update-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-features li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.90625rem;
}

.update-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Company Pages */
.story-content, .intro-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 32px;
}

.story-content h2, .intro-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.story-content p, .intro-content p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Mission Grid */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.mission-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    text-align: center;
}

.mission-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.mission-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.mission-card p {
    color: var(--text-muted);
    font-size: 0.90625rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.stat-item {
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.90625rem;
}

/* Location Card */
.location-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    text-align: center;
    margin: 32px 0;
}

.location-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.location-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.location-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.location-item {
    font-size: 0.90625rem;
}

.location-item strong {
    color: var(--text);
}

.location-item span, .location-item a {
    color: var(--text-muted);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.team-member {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    text-align: center;
}

.member-avatar {
    margin-bottom: 16px;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto;
}

.team-member h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.member-role {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.member-bio {
    color: var(--text-muted);
    font-size: 0.90625rem;
    line-height: 1.6;
}

/* Culture Card */
.culture-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    margin: 32px 0;
}

.culture-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

.culture-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.culture-item {
    text-align: center;
}

.culture-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.culture-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.culture-item p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.partner-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}

.partner-logo {
    margin-bottom: 16px;
}

.logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.partner-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.partner-location {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.partner-desc {
    color: var(--text-muted);
    font-size: 0.90625rem;
    margin-bottom: 12px;
}

.partner-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Institutional Grid */
.institutional-grid, .tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.institutional-card, .tech-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    text-align: center;
}

.inst-icon, .tech-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.institutional-card h3, .tech-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.institutional-card p, .tech-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Careers Openings */
.openings-list {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}

.opening-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}

.opening-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.opening-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.opening-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.tag.tag-location { background: var(--primary-light); color: var(--primary); }
.tag.tag-type { background: #F3E8FF; color: #9333EA; }

.opening-desc {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.90625rem;
}

.opening-requirements {
    margin-bottom: 16px;
}

.opening-requirements h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.opening-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.opening-requirements li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.opening-requirements li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.opening-cta {
    text-align: right;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.process-step {
    text-align: center;
}

.process-step .step-number {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 12px;
}

.process-step h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Press Kit */
.press-kit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.press-kit-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    text-align: center;
}

.kit-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.press-kit-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.press-kit-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Facts Grid */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.fact-item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
    text-align: center;
}

.fact-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.fact-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

/* Coverage List */
.coverage-list {
    display: grid;
    gap: 16px;
    margin: 32px 0;
}

.coverage-item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}

.coverage-source {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.source-name {
    font-weight: 600;
    color: var(--text);
}

.coverage-date {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.coverage-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

/* Contact Card */
.contact-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    margin: 32px 0;
}

.contact-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    font-size: 0.90625rem;
}

.contact-item strong {
    color: var(--text);
}

.contact-item a, .contact-item span {
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    margin-top: 48px;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    color: #fff;
}

.cta-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-card p {
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-card .btn-primary {
    background: #fff;
    color: var(--primary);
}

.cta-card .btn-primary:hover {
    background: var(--bg-alt);
}

.cta-card .btn-outline {
    border-color: #fff;
    color: #fff;
}

.cta-card .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Section Styling */
.team-section, .partners-section, .benefits-section, .openings-section, .process-section, .press-kit-section, .facts-section, .coverage-section, .press-contact-section {
    margin: 48px 0;
}

.team-section h2, .partners-section h2, .benefits-section h2, .openings-section h2, .process-section h2, .press-kit-section h2, .facts-section h2, .coverage-section h2, .press-contact-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .step-card, .vet-step {
        flex-direction: column;
    }

    .step-number, .vet-step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .opening-header {
        flex-direction: column;
    }

    .opening-cta {
        text-align: left;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

/* Modern Admin Dashboard Styles */
.admin-dashboard {
    min-height: calc(100vh - 68px);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 32px 24px;
}

.admin-dashboard + .conteudo-principal {
    display: none;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 32px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}

.header-welcome h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.header-welcome p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.btn-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-refresh:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
    color: var(--primary);
}

/* Quick Actions */
.quick-actions {
    max-width: var(--container-max);
    margin: 0 auto 32px;
}

.quick-actions h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.action-card:hover::before {
    opacity: 1;
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-icon-users { background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%); color: #2563EB; }
.action-icon-vets { background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%); color: #DC2626; }
.action-icon-pets { background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%); color: #16A34A; }
.action-icon-calendar { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); color: #D97706; }
.action-icon-charts { background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%); color: #6366F1; }

.action-content {
    flex: 1;
}

.action-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.action-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.action-arrow {
    color: var(--text-light);
    transition: transform var(--transition);
}

.action-card:hover .action-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* Form Control Styles */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.animal-selection {
    max-width: 600px;
}

/* Global Loader Styles */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader-spinner::before,
.loader-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: spinner 1.5s ease-in-out infinite;
}

.loader-spinner::before {
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    animation-delay: 0s;
}

.loader-spinner::after {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border: 4px solid transparent;
    border-top-color: var(--primary-dark);
    border-right-color: var(--primary-dark);
    animation-delay: 0.3s;
    animation-direction: reverse;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
}

.loader-subtext {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.loader-dots {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.loader-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(1) {
    animation-delay: 0s;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mini Loader for inline loading */
.mini-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
}

.mini-loader-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-dark);
    border-top-color: transparent;
    border-radius: 50%;
    animation: miniSpinner 0.8s linear infinite;
}

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

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border-light) 50%, var(--bg-alt) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

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

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text-sm {
    height: 12px;
    width: 60%;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-card {
    height: 120px;
    width: 100%;
}

/* Progress Bar Loader */
.progress-loader {
    width: 100%;
    height: 4px;
    background: var(--bg-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-full);
    animation: progressAnimation 2s ease-in-out infinite;
    width: 30%;
}

@keyframes progressAnimation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

/* Records Tabs Styles */
.records-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: inherit;
}

.tab-btn:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.tab-btn.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.tab-btn svg {
    flex-shrink: 0;
}

.records-content {
    min-height: 200px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.no-animal-message {
    text-align: center;
    padding: 60px 24px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
}

.empty-state svg {
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.empty-state p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-family: inherit;
}

.modal-close:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn {
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

/* Notification Items */
.notification-item {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--surface);
}

.notification-item:hover {
    background: var(--bg-alt);
}

.notification-item.unread {
    background: var(--primary-light);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-alt);
    color: var(--text-muted);
}

.notification-item.unread .notification-item-icon {
    background: var(--primary);
    color: #fff;
}

.notification-item-content {
    flex: 1;
}

.notification-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.notification-item-message {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.5;
}

.notification-item-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.notification-item-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* Stats Overview */
.stats-overview {
    max-width: var(--container-max);
    margin: 0 auto 32px;
}

.stats-overview h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card-primary::before { background: var(--primary); }
.stat-card-success::before { background: var(--success); }
.stat-card-warning::before { background: var(--warning); }
.stat-card-danger::before { background: var(--danger); }

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-primary { background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%); color: #2563EB; }
.stat-icon-success { background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%); color: #16A34A; }
.stat-icon-warning { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); color: #D97706; }
.stat-icon-danger { background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%); color: #DC2626; }

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-link {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition);
}

.stat-link:hover {
    gap: 10px;
}

/* Filters Section */
.filters-section {
    max-width: var(--container-max);
    margin: 0 auto 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.filters-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

/* Table Section */
.table-section {
    max-width: var(--container-max);
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.table-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.table-container {
    overflow-x: auto;
}

.tabela-dados {
    width: 100%;
    border-collapse: collapse;
}

.tabela-dados thead {
    background: var(--bg-alt);
}

.tabela-dados th {
    padding: 16px;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.tabela-dados td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

.tabela-dados tbody tr:hover {
    background: var(--bg-alt);
}

.tabela-dados tbody tr:last-child td {
    border-bottom: none;
}

/* Pagination Styles */
.paginacao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
}

.paginacao-info {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.paginacao-botoes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-paginacao {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}

.btn-paginacao:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-paginacao.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-paginacao:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.status-ativo {
    background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
    color: #16A34A;
}

.status-inativo {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #DC2626;
}

/* Table Action Buttons */
.btn-small {
    padding: 6px 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-small:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
}

.btn-view {
    color: var(--primary);
}

.btn-edit {
    color: var(--warning);
}

.btn-delete {
    color: var(--danger);
}

.btn-view:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.btn-edit:hover {
    background: #FEF3C7;
    border-color: var(--warning);
}

.btn-delete:hover {
    background: #FEE2E2;
    border-color: var(--danger);
}

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

.tipo-presencial {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #2563EB;
}

.tipo-domiciliar {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #D97706;
}

/* Additional Action Buttons */
.btn-check {
    color: var(--success);
}

.btn-check:hover {
    background: #DCFCE7;
    border-color: var(--success);
}

.btn-cancel {
    color: var(--danger);
}

.btn-cancel:hover {
    background: #FEE2E2;
    border-color: var(--danger);
}

/* Status Badges for Appointments */
.status-pendente {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #D97706;
}

.status-confirmada {
    background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
    color: #16A34A;
}

.status-concluida {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #2563EB;
}

.status-cancelada {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #DC2626;
}

/* Form Section Styles */
.form-section {
    max-width: var(--container-max);
    margin: 0 auto 32px;
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.form-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.form-group .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition);
}

.form-group .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-group textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-message {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-message.success {
    background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
    color: #16A34A;
    border: 1px solid #86EFAC;
}

.form-message.error {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    font-family: inherit;
}

.btn:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text-muted);
}

.btn-secondary:hover {
    background: var(--border);
    color: var(--text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card-primary::before { background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%); }
.stat-card-success::before { background: linear-gradient(90deg, #10B981 0%, #059669 100%); }
.stat-card-warning::before { background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%); }
.stat-card-info::before { background: linear-gradient(90deg, #6366F1 0%, #4F46E5 100%); }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-primary { background: var(--primary-light); color: var(--primary); }
.stat-icon-success { background: #DCFCE7; color: #16A34A; }
.stat-icon-warning { background: #FEF3C7; color: #D97706; }
.stat-icon-info { background: #E0E7FF; color: #6366F1; }

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.trend-up {
    color: #16A34A;
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.stat-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.stat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: gap var(--transition);
}

.stat-link:hover {
    gap: 12px;
}

/* Dashboard Content */
.dashboard-content {
    max-width: var(--container-max);
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.content-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.btn-icon:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
    color: var(--primary);
}

.period-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 0.875rem;
    cursor: pointer;
}

/* Activity List */
.activity-list {
    padding: 16px 24px;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon-users { background: #DBEAFE; color: #2563EB; }
.activity-icon-vets { background: #FEE2E2; color: #DC2626; }
.activity-icon-calendar { background: #FEF3C7; color: #D97706; }
.activity-icon-payment { background: #DCFCE7; color: #16A34A; }
.activity-icon-pets { background: #E0E7FF; color: #6366F1; }
.activity-icon-default { background: var(--bg-alt); color: var(--text-muted); }

.activity-details {
    flex: 1;
}

.activity-description {
    font-size: 0.90625rem;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.4;
}

.activity-time {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Loading and Empty States */
.loading-state, .empty-state, .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.loading-state p, .empty-state p, .error-state p {
    color: var(--text-muted);
    font-size: 0.90625rem;
}

.error-state svg {
    color: var(--danger);
    margin-bottom: 16px;
}

.empty-state svg {
    color: var(--text-light);
    margin-bottom: 16px;
}

/* Performance Chart */
.performance-chart {
    padding: 24px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
}

.chart-placeholder svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.chart-placeholder p {
    font-size: 0.875rem;
}

/* Quick Stats */
.quick-stats {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.quick-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-stat-icon-pets { background: #DCFCE7; color: #16A34A; }
.quick-stat-icon-revenue { background: #FEF3C7; color: #D97706; }
.quick-stat-icon-satisfaction { background: #FEE2E2; color: #DC2626; }
.quick-stat-icon-growth { background: #E0E7FF; color: #6366F1; }

.quick-stat-content {
    flex: 1;
}

.quick-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.quick-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-dashboard {
        padding: 20px 16px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-welcome h1 {
        font-size: 1.5rem;
    }
    
    .header-welcome p {
        font-size: 1rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-card, .stat-card, .content-card, .quick-stat {
    animation: fadeInUp 0.5s ease-out;
}

.action-card:nth-child(1) { animation-delay: 0.1s; }
.action-card:nth-child(2) { animation-delay: 0.2s; }
.action-card:nth-child(3) { animation-delay: 0.3s; }
.action-card:nth-child(4) { animation-delay: 0.4s; }
.action-card:nth-child(5) { animation-delay: 0.5s; }

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Modern Appointments Page Styles */
.appointments-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 32px 24px;
}

/* Appointments Header */
.appointments-header {
    margin-bottom: 32px;
}

.appointments-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}

.appointments-header .header-welcome h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.appointments-header .header-welcome p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.appointments-header .btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.appointments-header .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Appointments Stats */
.appointments-stats {
    max-width: var(--container-max);
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.appointments-stats .stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}

.appointments-stats .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.appointments-stats .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-upcoming { background: #DBEAFE; color: #2563EB; }
.stat-icon-completed { background: #DCFCE7; color: #16A34A; }
.stat-icon-cancelled { background: #FEE2E2; color: #DC2626; }
.stat-icon-total { background: #E0E7FF; color: #6366F1; }

.appointments-stats .stat-content h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.appointments-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

/* Appointments Filters */
.appointments-filters {
    max-width: var(--container-max);
    margin: 0 auto 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-group {
    display: flex;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--surface);
    color: var(--text);
    transition: all var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 0.875rem;
    cursor: pointer;
    min-width: 150px;
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.view-btn:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
    color: var(--primary);
}

.view-btn-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Appointments Content */
.appointments-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

.appointments-list {
    display: grid;
    gap: 16px;
}

.appointments-list.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Appointment Cards */
.appointment-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
    animation: fadeInUp 0.5s ease-out;
}

.appointment-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.appointment-card-scheduled { border-left: 4px solid #2563EB; }
.appointment-card-completed { border-left: 4px solid #16A34A; }
.appointment-card-cancelled { border-left: 4px solid #DC2626; }
.appointment-card-pending { border-left: 4px solid #F59E0B; }

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.appointment-pet {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pet-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
    color: #16A34A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.pet-info p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.status-badge {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-scheduled { background: #DBEAFE; color: #2563EB; }
.status-completed { background: #DCFCE7; color: #16A34A; }
.status-cancelled { background: #FEE2E2; color: #DC2626; }
.status-pending { background: #FEF3C7; color: #D97706; }

.appointment-body {
    padding: 20px 24px;
}

.appointment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    gap: 12px;
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--bg-alt);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 500;
}

.appointment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-alt);
}

.appointment-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.appointment-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-action:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-action-cancel {
    color: #DC2626;
    border-color: #FEE2E2;
}

.btn-action-cancel:hover {
    background: #FEE2E2;
    border-color: #DC2626;
    color: #DC2626;
}

/* ===== Módulo Animais ===== */

.animais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.animal-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.animal-card-header {
    position: relative;
    height: 160px;
    background: var(--bg-alt);
}

.animal-card-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.animal-card-foto-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: var(--bg-alt);
}

.animal-card-tags {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.tag-primary { background: var(--primary-light); color: var(--primary); }
.tag-success { background: #DCFCE7; color: #16A34A; }
.tag-warning { background: #FEF3C7; color: #D97706; }
.tag-info    { background: #E0E7FF; color: #6366F1; }
.tag-danger  { background: #FEE2E2; color: #DC2626; }

.animal-card-body {
    padding: 20px;
    flex: 1;
}

.animal-card-nome {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.animal-card-info {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.animal-card-actions {
    display: flex;
    gap: 1px;
    border-top: 1px solid var(--border);
    background: var(--border);
}

.acao-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--surface);
    border: none;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-muted);
    text-decoration: none;
    font-family: inherit;
}

.acao-btn:hover {
    background: var(--bg-alt);
}

.acao-btn:hover svg {
    transform: scale(1.1);
}

.acao-btn svg {
    transition: transform var(--transition);
    flex-shrink: 0;
}

.acao-ver:hover { color: var(--primary); }
.acao-editar:hover { color: var(--warning); }
.acao-excluir:hover { color: var(--danger); }

/* Formulário de Cadastro/Edição */
.formulario-animal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-col-wide {
    min-width: 0;
}

.campos-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.obrigatorio {
    color: var(--danger);
}

.foto-upload-wrapper {
    position: sticky;
    top: 24px;
}

.foto-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.foto-preview {
    width: 220px;
    height: 220px;
    border-radius: var(--radius-xl);
    background: var(--bg-alt);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
    transition: border-color var(--transition);
}

.foto-preview:hover {
    border-color: var(--primary);
}

.foto-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.foto-upload-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.foto-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    margin-top: 8px;
}

.form-actions .botao {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.botao:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Perfil do Animal (detalhes) */
.perfil-animal-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 32px;
    align-items: start;
}

.perfil-animal-foto-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    position: sticky;
    top: 24px;
}

.perfil-animal-foto {
    width: 240px;
    height: 240px;
    border-radius: var(--radius-xl);
    background: var(--bg-alt);
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
}

.perfil-animal-nome {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 8px;
}

.perfil-animal-info-col {
    min-width: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-valor {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.action-card-danger:hover {
    border-color: var(--danger);
}

.action-card-danger:hover::before {
    opacity: 1;
}

.action-card-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--danger);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity var(--transition);
}

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

/* Responsivo para o módulo de animais */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-col:first-child { order: 0; }
    .form-col-wide { order: 1; }

    .campos-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .foto-preview {
        width: 180px;
        height: 180px;
    }

    .perfil-animal-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }

    .perfil-animal-foto {
        width: 200px;
        height: 200px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .animal-card-actions {
        flex-wrap: wrap;
    }

    .acao-btn {
        padding: 10px 6px;
        font-size: 0.75rem;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .botao {
        width: 100%;
        justify-content: center;
    }
}

/* Empty State for Appointments */
.appointments-list .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.appointments-list .empty-state svg {
    color: var(--text-light);
    margin-bottom: 24px;
    opacity: 0.5;
}

.appointments-list .empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.appointments-list .empty-state p {
    color: var(--text-muted);
    font-size: 0.90625rem;
    margin-bottom: 24px;
    max-width: 400px;
}

.appointments-list .empty-state .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

/* Responsive Design for Appointments */
@media (max-width: 768px) {
    .appointments-page {
        padding: 20px 16px;
    }
    
    .appointments-header .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .appointments-header .header-welcome h1 {
        font-size: 1.5rem;
    }
    
    .appointments-stats {
        grid-template-columns: 1fr;
    }
    
    .appointments-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .view-options {
        justify-content: flex-end;
    }
    
    .appointment-info {
        grid-template-columns: 1fr;
    }
    
    .appointment-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .appointment-actions {
        justify-content: flex-end;
    }
}

/* Modern Vets Page Styles */
.vets-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 32px 24px;
}

/* Vets Header */
.vets-header {
    margin-bottom: 32px;
}

.vets-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}

.vets-header .header-welcome h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.vets-header .header-welcome p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.vets-header .btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.vets-header .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Vets Stats */
.vets-stats {
    max-width: var(--container-max);
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.vets-stats .stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}

.vets-stats .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.vets-stats .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-active { background: #DCFCE7; color: #16A34A; }
.stat-icon-inactive { background: #FEE2E2; color: #DC2626; }
.stat-icon-pending { background: #FEF3C7; color: #D97706; }
.stat-icon-total { background: #E0E7FF; color: #6366F1; }

.vets-stats .stat-content h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vets-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

/* Vets Filters */
.vets-filters {
    max-width: var(--container-max);
    margin: 0 auto 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.vets-filters .filter-group {
    display: flex;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.vets-filters .search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.vets-filters .search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.vets-filters .search-box input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--surface);
    color: var(--text);
    transition: all var(--transition);
}

.vets-filters .search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.vets-filters .filter-select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 0.875rem;
    cursor: pointer;
    min-width: 150px;
}

.vets-filters .view-options {
    display: flex;
    gap: 8px;
}

.vets-filters .view-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.vets-filters .view-btn:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
    color: var(--primary);
}

.vets-filters .view-btn-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Vets Content */
.vets-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

.vets-list {
    display: grid;
    gap: 16px;
}

.vets-list.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Vet Cards */
.vet-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
    animation: fadeInUp 0.5s ease-out;
}

.vet-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.vet-card-active { border-left: 4px solid #16A34A; }
.vet-card-inactive { border-left: 4px solid #DC2626; }
.vet-card-pending { border-left: 4px solid #F59E0B; }

.vet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.vet-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.vet-info {
    flex: 1;
    margin-left: 16px;
}

.vet-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.vet-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.vet-status {
    margin-left: 16px;
}

/* Vet Body */
.vet-body {
    padding: 20px 24px;
}

.vet-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    gap: 12px;
}

.detail-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--bg-alt);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 500;
}

/* Vet Footer */
.vet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-alt);
}

.vet-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    display: flex;
    gap: 2px;
    color: #F59E0B;
}

.rating-value {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.vet-actions {
    display: flex;
    gap: 8px;
}

.vet-actions .btn-action {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.vet-actions .btn-action:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
    color: var(--primary);
}

.vet-actions .btn-action-edit:hover {
    border-color: #F59E0B;
    color: #F59E0B;
}

.vet-actions .btn-action-toggle:hover {
    border-color: #DC2626;
    color: #DC2626;
}

/* Empty State for Vets */
.vets-list .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.vets-list .empty-state svg {
    color: var(--text-light);
    margin-bottom: 24px;
    opacity: 0.5;
}

.vets-list .empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.vets-list .empty-state p {
    color: var(--text-muted);
    font-size: 0.90625rem;
    margin-bottom: 24px;
    max-width: 400px;
}

.vets-list .empty-state .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

/* Pagination */
.pagination {
    max-width: var(--container-max);
    margin: 24px auto 0;
    display: flex;
    justify-content: center;
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-weight: 500;
}

.pagination-btn:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active,
.modal[style*="display: block"] {
    display: flex !important;
}

.modal-content,
.modal-conteudo {
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header,
.modal-cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-alt);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3,
.modal-cabecalho h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.modal-close,
.modal-fechar {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius);
    background: var(--bg-alt);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 1.5rem;
    line-height: 1;
}

.modal-close:hover,
.modal-fechar:hover {
    background: var(--danger);
    color: #fff;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body,
.modal-corpo {
    padding: 24px;
}

.modal-rodape {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--bg-alt);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Responsive Design for Vets */
@media (max-width: 768px) {
    .vets-page {
        padding: 20px 16px;
    }
    
    .vets-header .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .vets-header .header-welcome h1 {
        font-size: 1.5rem;
    }
    
    .vets-stats {
        grid-template-columns: 1fr;
    }
    
    .vets-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vets-filters .filter-group {
        flex-direction: column;
    }
    
    .vets-filters .view-options {
        justify-content: flex-end;
    }
    
    .vet-details {
        grid-template-columns: 1fr;
    }
    
    .vet-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .vet-actions {
        justify-content: flex-end;
    }
}

/* ===== Módulo Carteira de Saúde ===== */

/* Filtro de seleção de animal */
.filtro-animal {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.select-grande {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    transition: all var(--transition);
    font-family: inherit;
}

.select-grande:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Grid com 5 colunas de estatística */
.stats-grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-icon-danger {
    background: var(--danger);
    color: #fff;
}

.stat-card-danger .stat-icon {
    background: var(--danger);
}

.stat-card-danger {
    border-top: 3px solid var(--danger);
}

/* Alertas de próximas doses */
.alertas-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alerta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    transition: all var(--transition);
}

.alerta-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(2px);
}

.alerta-danger {
    border-left-color: var(--danger);
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.05) 0%, var(--surface) 30%);
}

.alerta-warning {
    border-left-color: var(--warning);
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.05) 0%, var(--surface) 30%);
}

.alerta-info {
    border-left-color: var(--primary);
}

.alerta-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.alerta-icone {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alerta-icone-success { background: #DCFCE7; color: #16A34A; }
.alerta-icone-warning { background: #FEF3C7; color: #D97706; }
.alerta-icone-info    { background: #CCFBF1; color: var(--primary); }
.alerta-icone-primary { background: #CCFBF1; color: var(--primary); }
.alerta-icone-danger  { background: #FEE2E2; color: #DC2626; }

.alerta-conteudo {
    min-width: 0;
    flex: 1;
}

.alerta-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alerta-subtexto {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.alerta-actions {
    flex-shrink: 0;
}

.botao-pequeno {
    padding: 8px 14px;
    font-size: 0.8125rem;
}

/* Timeline */
.historico-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.filtro-tipos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tipo-filtro-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.tipo-filtro-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: var(--border);
}

.tipo-filtro-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.tipo-filtro-btn.active svg {
    color: #fff;
}

.registros-contador {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 12px;
    background: var(--bg);
    border-radius: var(--radius-full);
}

.timeline {
    padding: 32px 24px 32px 32px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    bottom: 32px;
    left: 47px;
    width: 2px;
    background: var(--border);
}

.timeline-ano-group {
    position: relative;
    margin-bottom: 24px;
}

.timeline-ano-label {
    position: relative;
    left: -8px;
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    z-index: 1;
}

.timeline-mes-label {
    position: relative;
    left: 24px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    z-index: 1;
}

.timeline-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
}

.timeline-marcador {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 3px solid var(--border);
    z-index: 2;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: all var(--transition);
}

.timeline-marcador-success { border-color: #16A34A; color: #16A34A; background: #DCFCE7; }
.timeline-marcador-warning { border-color: #D97706; color: #D97706; background: #FEF3C7; }
.timeline-marcador-info    { border-color: #6366F1; color: #6366F1; background: #E0E7FF; }
.timeline-marcador-primary { border-color: var(--primary); color: var(--primary); background: #CCFBF1; }
.timeline-marcador-danger  { border-color: #DC2626; color: #DC2626; background: #FEE2E2; }

.timeline-card {
    margin: 0;
}

/* Cards dos registros na timeline */
.record-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.record-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-hover);
}

.record-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg);
}

.record-card-tipo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.record-card-data {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.record-card-actions {
    display: flex;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.record-card-actions .acao-btn {
    padding: 8px 12px;
    background: var(--surface);
}

.record-card-body {
    padding: 20px;
}

.record-card-descricao {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 16px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.record-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.record-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    color: var(--text-muted);
    background: var(--bg);
    width: fit-content;
    max-width: 100%;
}

.record-meta-item svg {
    flex-shrink: 0;
}

.record-meta-item strong {
    color: var(--text);
    font-weight: 600;
}

.record-meta-dose {
    background: #DCFCE7;
    color: #16A34A;
}

.record-meta-dose strong {
    color: #15803d;
}

.record-meta-vet {
    background: var(--bg-alt);
}

/* Empty state timeline */
.timeline-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--text-muted);
    margin-left: -16px;
}

.timeline-empty svg {
    color: var(--text-light);
    margin: 0 auto;
    display: block;
}

.timeline-empty h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px 0;
}

.timeline-empty p {
    font-size: 0.9375rem;
    margin: 0;
}

/* Resumo do tipo de registro (cadastrar/editar) */
.registro-resumo {
    padding: 28px 24px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    position: sticky;
    top: 24px;
}

.registro-icone-box {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.registro-icone-success { background: #DCFCE7; border-color: #16A34A; color: #16A34A; }
.registro-icone-warning { background: #FEF3C7; border-color: #D97706; color: #D97706; }
.registro-icone-info    { background: #E0E7FF; border-color: #6366F1; color: #6366F1; }
.registro-icone-primary { background: #CCFBF1; border-color: var(--primary); color: var(--primary); }
.registro-icone-danger  { background: #FEE2E2; border-color: #DC2626; color: #DC2626; }

#resumo-tipo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

#resumo-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.action-card-danger {
    position: relative;
}

/* ===== Responsivo Carteira de Saúde ===== */
@media (max-width: 900px) {
    .stats-grid-5 {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .historico-controls {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .filtro-tipos {
        overflow-x: auto;
        padding-bottom: 4px;
        flex-wrap: nowrap;
    }

    .tipo-filtro-btn {
        flex-shrink: 0;
    }

    .registros-contador {
        align-self: flex-end;
    }

    .timeline {
        padding: 24px 12px 24px 8px;
    }

    .timeline::before {
        left: 27px;
    }

    .timeline-ano-label {
        left: 0;
    }

    .timeline-mes-label {
        left: 10px;
        margin-bottom: 16px;
    }

    .timeline-item {
        grid-template-columns: 28px 1fr;
        gap: 12px;
    }

    .timeline-marcador {
        width: 28px;
        height: 28px;
    }

    .timeline-marcador svg {
        width: 14px;
        height: 14px;
    }

    .record-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }

    .record-card-actions {
        align-self: stretch;
    }

    .record-card-actions .acao-btn {
        flex: 1;
        justify-content: center;
    }

    .record-card-body {
        padding: 16px;
    }

    .alerta-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }

    .alerta-actions {
        align-self: stretch;
    }

    .alerta-actions .botao {
        width: 100%;
        justify-content: center;
    }

    .registro-resumo {
        position: static;
        padding: 20px;
    }

    .registro-icone-box {
        width: 72px;
        height: 72px;
    }
}

/* ===== Módulo Clientes (Admin) ===== */

.clientes-page {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.clientes-header {
    margin-bottom: 28px;
}

.clientes-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.clientes-header .header-welcome h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px 0;
}

.clientes-header .header-welcome p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9375rem;
}

.clientes-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.clientes-actions-top {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.clientes-actions-top .botao {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-family: inherit;
}

.clientes-actions-top .botao:hover {
    background: var(--bg-alt);
    border-color: var(--border-hover);
}

.clientes-actions-top .botao-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.clientes-actions-top .botao-primary:hover {
    background: #0F766E;
    border-color: #0F766E;
}

.filters-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.filters-grid {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 240px;
    flex-wrap: wrap;
}

.filter-group-wide {
    flex: 2;
}

.filter-group .search-box {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.filter-group .search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.filter-group .search-box input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--bg);
    color: var(--text);
    transition: all var(--transition);
    font-family: inherit;
}

.filter-group .search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.filter-group .filter-select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: 0.875rem;
    cursor: pointer;
    min-width: 160px;
    font-family: inherit;
}

.filter-group .filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.table-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
}

.table-header h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.table-container {
    overflow-x: auto;
}

.tabela-dados {
    width: 100%;
    border-collapse: collapse;
}

.tabela-dados thead {
    background: var(--bg-alt);
}

.tabela-dados th {
    padding: 12px 20px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-light);
}

.tabela-dados td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    font-size: 0.875rem;
    color: var(--text);
}

.tabela-dados tbody tr:last-child td {
    border-bottom: none;
}

.tabela-dados tbody tr {
    transition: background var(--transition);
}

.tabela-dados tbody tr:hover {
    background: rgba(13, 148, 136, 0.03);
}

.cliente-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cliente-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.cliente-info-col {
    min-width: 0;
}

.cliente-info-col strong {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cliente-info-col span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.acoes-tabela {
    display: flex;
    gap: 4px;
    align-items: center;
}

.acoes-tabela .acao-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.acoes-tabela .acao-btn:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.acoes-tabela .acao-status:hover {
    color: #D97706;
    background: #FEF3C7;
}

.acoes-tabela .acao-btn-danger:hover {
    color: #DC2626;
    background: #FEE2E2;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-ativo {
    background: #DCFCE7;
    color: #15803D;
}

.status-inativo {
    background: #FEE2E2;
    color: #B91C1C;
}

.status-pendente {
    background: #FEF3C7;
    color: #B45309;
}

.status-confirmada {
    background: #DBEAFE;
    color: #1D4ED8;
}

.paginacao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.paginacao-info {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.paginacao-botoes {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-paginacao {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-family: inherit;
}

.btn-paginacao:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-paginacao:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-paginacao.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.paginacao-ellipsis {
    padding: 0 4px;
    color: var(--text-light);
    font-weight: 600;
}

/* ===== Detalhes Cliente ===== */
.perfil-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.perfil-avatar-grande {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #0F766E 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    flex-shrink: 0;
}

.perfil-info-header {
    flex: 1;
    min-width: 240px;
}

.perfil-info-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px 0;
}

.perfil-info-header .perfil-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.info-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
}

.info-box .info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.info-box .info-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.dados-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
}

.section-title {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.dados-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.dado-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.dado-icone {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--bg-alt);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dado-content strong {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.dado-content span {
    font-size: 0.9375rem;
    color: var(--text);
    font-weight: 500;
    word-break: break-word;
}

.separador-vertical {
    width: 1px;
    background: var(--border-light);
    align-self: stretch;
}

.badge-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-alt);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.tag-danger {
    background: #FEE2E2;
    color: #B91C1C;
}

.tag-warning {
    background: #FEF3C7;
    color: #B45309;
}

.animais-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.animal-card-mini {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
}

.animal-card-mini:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.animal-foto-mini {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
    object-fit: cover;
}

.animal-info-mini strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.animal-info-mini span {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.consultas-recentes-body {
    padding: 0;
}

/* ===== Formulários Cadastrar/Editar Cliente ===== */
.form-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.form-nav-voltar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 20px;
    transition: color var(--transition);
}

.form-nav-voltar:hover {
    color: var(--primary);
}

.form-header {
    margin-bottom: 24px;
}

.form-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px 0;
}

.form-header p {
    color: var(--text-muted);
    margin: 0;
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.form-section-title {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-alt);
}

.form-section-title h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.form-body {
    padding: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 18px;
}

.campos-row {
    display: contents;
}

.campo-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.campo-form.full-width {
    grid-column: 1 / -1;
}

.campo-form label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.obrigatorio::after {
    content: ' *';
    color: #DC2626;
}

.campo-form input,
.campo-form select,
.campo-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    background: var(--bg);
    color: var(--text);
    transition: all var(--transition);
    font-family: inherit;
    box-sizing: border-box;
}

.campo-form textarea {
    resize: vertical;
    min-height: 90px;
}

.campo-form input:focus,
.campo-form select:focus,
.campo-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.input-com-senha {
    position: relative;
}

.input-com-senha input {
    padding-right: 44px;
}

.btn-mostrar-senha {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.btn-mostrar-senha:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.campo-dica {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: -2px;
}

.campo-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.switch-container {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #CBD5E1;
    border-radius: 24px;
    transition: var(--transition);
}

.switch-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch-container input:checked + .switch-slider {
    background-color: var(--primary);
}

.switch-container input:checked + .switch-slider::before {
    transform: translateX(20px);
}

.campo-checkbox label:not(.switch-container) {
    font-size: 0.9375rem;
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
}

.form-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-alt);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-footer .botao {
    padding: 11px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.form-footer .botao:hover {
    background: var(--bg);
}

.form-footer .botao-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.form-footer .botao-primary:hover {
    background: #0F766E;
    border-color: #0F766E;
}

.mensagem-retorno {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 20px;
    display: none;
}

.mensagem-retorno.visivel {
    display: block;
}

.mensagem-sucesso {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.mensagem-erro {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.estado-vazio {
    padding: 48px 20px;
    text-align: center;
    color: var(--text-muted);
}

.estado-vazio svg {
    color: var(--text-light);
    margin-bottom: 16px;
    opacity: 0.5;
}

.estado-vazio h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px 0;
}

.estado-vazio p {
    font-size: 0.875rem;
    margin: 0;
}

.spinner-pequeno {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

.loading-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.loading-inline .spinner-pequeno {
    border-color: var(--border);
    border-top-color: var(--primary);
}

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

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background var(--transition);
    font-family: inherit;
}

.btn-link:hover {
    background: rgba(13, 148, 136, 0.08);
}

.btn-link.danger {
    color: #DC2626;
}

.btn-link.danger:hover {
    background: rgba(220, 38, 38, 0.08);
}

/* ===== Dashboard Cliente Logado ===== */
.cliente-dashboard {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.dash-saudacao h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px 0;
}

.dash-saudacao p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9375rem;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.dash-quick-actions {
    margin-bottom: 28px;
}

.dash-quick-actions h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px 0;
}

.dash-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.dash-action-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition);
    color: var(--text);
}

.dash-action-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.dash-action-btn .dash-action-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-action-btn h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.dash-action-btn span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.dash-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.dash-col .content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dash-col .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
}

.dash-col .card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.dash-col .card-body {
    padding: 12px 0;
    max-height: 380px;
    overflow-y: auto;
}

.animal-recente-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    transition: background var(--transition);
}

.animal-recente-item:hover {
    background: rgba(13, 148, 136, 0.03);
}

.animal-recente-item .animal-foto-mini {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.animal-recente-info {
    flex: 1;
    min-width: 0;
}

.animal-recente-info strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--text);
    margin-bottom: 2px;
}

.animal-recente-info span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.consulta-item {
    display: flex;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
}

.consulta-item:last-child {
    border-bottom: none;
}

.consulta-data-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 62px;
    padding: 8px 4px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.consulta-data-card .dia {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.consulta-data-card .mes {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.consulta-info {
    flex: 1;
    min-width: 0;
}

.consulta-info .consulta-titulo {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.consulta-info .consulta-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* ===== Responsivo Clientes ===== */
@media (max-width: 900px) {
    .dash-content-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .clientes-page,
    .form-page,
    .cliente-dashboard {
        padding: 20px 16px 48px;
    }

    .tabela-dados th,
    .tabela-dados td {
        padding: 12px 14px;
    }

    .tabela-dados thead {
        display: none;
    }

    .tabela-dados,
    .tabela-dados tbody,
    .tabela-dados tr,
    .tabela-dados td {
        display: block;
        width: 100%;
    }

    .tabela-dados tr {
        padding: 12px;
        border-bottom: 1px solid var(--border-light);
    }

    .tabela-dados td {
        padding: 6px 0;
        border-bottom: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .tabela-dados td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.75rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .tabela-dados td:first-child::before {
        display: none;
    }

    .tabela-dados td:first-child {
        justify-content: flex-start;
        padding-bottom: 10px;
        margin-bottom: 6px;
        border-bottom: 1px dashed var(--border-light);
    }

    .cliente-info {
        width: 100%;
    }

    .acoes-tabela {
        justify-content: flex-end;
    }

    .paginacao {
        flex-direction: column;
        align-items: stretch;
    }

    .paginacao-botoes {
        justify-content: center;
    }

    .perfil-header {
        padding: 22px 18px;
        flex-direction: column;
        text-align: center;
    }

    .perfil-avatar-grande {
        width: 72px;
        height: 72px;
        font-size: 1.5rem;
    }

    .form-body {
        padding: 20px 18px;
    }

    .form-footer {
        padding: 16px 18px;
        flex-direction: column-reverse;
    }

    .form-footer .botao {
        width: 100%;
        justify-content: center;
    }

    .dash-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .animais-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   CONSULTA DOMICILIAR - Estilos Específicos
   =================================== */

.domicilio-page .mapa-container {
    width: 100%;
    height: 400px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
    background: var(--bg-alt);
}

.domicilio-page .localizacao-row {
    margin-bottom: 20px;
}

.domicilio-page .endereco-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.domicilio-page .endereco-row input {
    flex: 1;
}

.domicilio-page .btn-localizacao {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: inherit;
}

.domicilio-page .btn-localizacao:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.domicilio-page .btn-localizacao:active {
    transform: translateY(0);
}

.domicilio-page .geo-coords-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: flex-end;
}

.domicilio-page .btn-usar-perfil-wrap {
    display: flex;
    align-items: flex-end;
}

.domicilio-page .btn-usar-perfil {
    margin: 0;
    white-space: nowrap;
}

.domicilio-page .campo-dica {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

.domicilio-page .form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 16px;
    border-bottom: 2px solid var(--border-light);
    background: var(--bg-alt);
    margin-top: 32px;
}

.domicilio-page .form-section-title:first-of-type {
    margin-top: 0;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.domicilio-page .form-section-title h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.domicilio-page .cliente-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.domicilio-page .cliente-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.domicilio-page .cliente-info-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.domicilio-page .cliente-info-col strong {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.domicilio-page .cliente-info-col span {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.domicilio-page .custom-marker {
    width: 36px;
    height: 36px;
}

/* Leaflet Popup personalizado */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Estilos para página de detalhes administrativa */
.admin-detalhes-page .info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.admin-detalhes-page .info-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all var(--transition);
}

.admin-detalhes-page .info-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.admin-detalhes-page .info-box-primary {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-color: #38BDF8;
}

.admin-detalhes-page .info-box-accent {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-color: #FBBF24;
}

.admin-detalhes-page .info-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.admin-detalhes-page .info-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.admin-detalhes-page .dados-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
}

.admin-detalhes-page .section-title {
    background: var(--bg-alt);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-detalhes-page .section-title h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.admin-detalhes-page .dados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 24px;
}

.admin-detalhes-page .dado-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.admin-detalhes-page .dado-item-full {
    grid-column: 1 / -1;
}

.admin-detalhes-page .dado-icone {
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-detalhes-page .dado-content {
    flex: 1;
    min-width: 0;
}

.admin-detalhes-page .dado-content strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.admin-detalhes-page .dado-content span {
    display: block;
    font-size: 0.9375rem;
    color: var(--text);
    word-wrap: break-word;
}

.admin-detalhes-page .animal-foto-preview {
    width: 100%;
    max-width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-alt);
}

.admin-detalhes-page .animal-foto-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-detalhes-page .badge-info {
    display: inline-flex;
    align-items: center;
    background: var(--bg-alt);
    color: var(--text-muted);
    font-size: 0.8125rem;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-weight: 500;
}

.admin-detalhes-page .btn-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.admin-detalhes-page .btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.admin-detalhes-page .status-manager {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-detalhes-page .estado-vazio {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.admin-detalhes-page .estado-vazio svg {
    margin: 0 auto 16px;
    color: var(--text-light);
}

.admin-detalhes-page .estado-vazio h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.admin-detalhes-page .estado-vazio p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Responsividade para Consulta Domiciliar */
@media (max-width: 768px) {
    .domicilio-page .endereco-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .domicilio-page .btn-localizacao {
        width: 100%;
        justify-content: center;
    }
    
    .domicilio-page .geo-coords-row {
        grid-template-columns: 1fr;
    }
    
    .domicilio-page .btn-usar-perfil-wrap {
        width: 100%;
    }
    
    .domicilio-page .btn-usar-perfil {
        width: 100%;
        justify-content: center;
    }
    
    .domicilio-page .mapa-container {
        height: 300px;
    }
    
    .admin-detalhes-page .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-detalhes-page .dados-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-detalhes-page .status-manager {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-detalhes-page .status-manager .campo-form {
        max-width: none;
    }
    
    .admin-detalhes-page .status-manager button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .domicilio-page .form-section-title {
        padding: 16px 16px 12px;
    }
    
    .domicilio-page .form-section-title h3 {
        font-size: 1rem;
    }
    
    .domicilio-page .campo-dica {
        font-size: 0.75rem;
    }
}

/* Animações suaves para elementos de mapa */
@keyframes mapMarkerBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.custom-marker:hover {
    animation: mapMarkerBounce 0.6s ease-in-out;
}

/* ===================================
   ADMIN SIDEBAR - Layout Administrativo
   =================================== */

/* Layout base para páginas admin */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

/* Sidebar principal */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: #FFFFFF;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.admin-sidebar.collapsed {
    width: 72px;
}

/* Header da sidebar */
.sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    transition: opacity 0.2s;
}

.sidebar-logo:hover {
    opacity: 0.8;
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    opacity: 1;
    transition: opacity 0.2s;
}

.admin-sidebar.collapsed .sidebar-logo-text {
    opacity: 0;
    pointer-events: none;
}

.sidebar-logo-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    white-space: nowrap;
}

.sidebar-logo-subtitle {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    white-space: nowrap;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-alt);
    color: var(--text-muted);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: var(--border);
    color: var(--text);
}

.admin-sidebar.collapsed .sidebar-toggle {
    transform: rotate(180deg);
}

/* Conteúdo da sidebar */
.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Navegação */
.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    padding: 0 12px 8px;
    opacity: 1;
    transition: opacity 0.2s;
}

.admin-sidebar.collapsed .sidebar-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 4px;
    position: relative;
}

.sidebar-link:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

.sidebar-icon {
    flex-shrink: 0;
    color: currentColor;
}

.sidebar-text {
    flex: 1;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s;
}

.admin-sidebar.collapsed .sidebar-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.admin-sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 10px;
}

/* Footer da sidebar */
.sidebar-footer {
    border-top: 1px solid var(--border-light);
    padding: 16px;
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
    opacity: 1;
    transition: opacity 0.2s;
}

.admin-sidebar.collapsed .sidebar-user-info {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.sidebar-footer-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--bg-alt);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition);
    flex-shrink: 0;
}

.sidebar-footer-btn:hover {
    background: var(--border);
    color: var(--text);
}

.sidebar-footer-btn-danger {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
}

.sidebar-footer-btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* Topbar administrativa */
.admin-topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
    z-index: 100;
    transition: all 0.3s;
}

.admin-topbar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.admin-topbar-toggle:hover {
    background: var(--bg-alt);
}

.admin-breadcrumb {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Conteúdo principal */
.admin-main-content {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar.collapsed + .admin-main-content {
    margin-left: 72px;
}

.conteudo-principal {
    flex: 1;
}

/* Overlay para mobile */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsividade */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .admin-sidebar.collapsed {
        width: 280px;
        transform: translateX(-100%);
    }

    .admin-main-content {
        margin-left: 0;
    }

    .admin-sidebar.collapsed + .admin-main-content {
        margin-left: 0;
    }

    .admin-topbar-toggle {
        display: flex;
    }

    .sidebar-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .admin-topbar {
        padding: 0 16px;
    }

    .admin-topbar-actions .nav-lang {
        display: none;
    }
    
    .conteudo-principal {
        padding: 24px 16px;
    }
}

/* Ajustes para páginas admin existentes */
.admin-layout .clientes-page,
.admin-layout .domicilio-page,
.admin-layout .form-page {
    max-width: 100%;
}

.admin-layout .clientes-header {
    margin-bottom: 32px;
}

/* Animações */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.admin-sidebar.open {
    animation: slideInFromLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estados de hover para melhor feedback */
.sidebar-link:active {
    transform: scale(0.98);
}

.sidebar-footer-btn:active {
    transform: scale(0.92);
}

/* Badge de notificação (caso necessário no futuro) */
.sidebar-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
}

.admin-sidebar.collapsed .sidebar-badge {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Melhorias visuais */
.sidebar-link:hover .sidebar-icon {
    transform: scale(1.05);
}

.sidebar-link.active .sidebar-icon {
    color: var(--primary);
}

/* Transições suaves */
.admin-sidebar,
.admin-main-content,
.sidebar-text,
.sidebar-user-info,
.sidebar-logo-text,
.sidebar-section-title {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   ADMIN DASHBOARD - Estilos do Painel
   =================================== */

.admin-dashboard {
    padding: 32px;
    max-width: 100%;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.dashboard-header .header-welcome h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.dashboard-header .header-welcome p {
    font-size: 1rem;
    color: var(--text-muted);
}

.dashboard-header .header-actions {
    display: flex;
    gap: 12px;
}

.btn-refresh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-refresh:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-refresh:active {
    transform: translateY(0);
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 32px;
}

.quick-actions h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition);
}

.action-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-icon-users {
    background: #DBEAFE;
    color: #2563EB;
}

.action-icon-vets {
    background: #D1FAE5;
    color: #059669;
}

.action-icon-pets {
    background: #FEF3C7;
    color: #D97706;
}

.action-icon-calendar {
    background: #FCE7F3;
    color: #BE185D;
}

.action-icon-charts {
    background: #EDE9FE;
    color: #7C3AED;
}

.action-content {
    flex: 1;
}

.action-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.action-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.action-arrow {
    color: var(--text-light);
    transition: transform var(--transition);
}

.action-card:hover .action-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* Stats Overview */
.stats-overview {
    margin-bottom: 32px;
}

.stats-overview h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card-primary {
    border-top: 3px solid #2563EB;
}

.stat-card-success {
    border-top: 3px solid var(--success);
}

.stat-card-warning {
    border-top: 3px solid var(--warning);
}

.stat-card-info {
    border-top: 3px solid #6366F1;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-primary {
    background: #DBEAFE;
    color: #2563EB;
}

.stat-icon-success {
    background: #D1FAE5;
    color: var(--success);
}

.stat-icon-warning {
    background: #FEF3C7;
    color: var(--warning);
}

.stat-icon-info {
    background: #EDE9FE;
    color: #6366F1;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.trend-up {
    color: var(--success);
}

.trend-down {
    color: var(--danger);
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.stat-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.stat-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

.stat-link:hover {
    color: var(--primary-dark);
}

/* Dashboard Content Grid */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-alt);
    color: var(--text-muted);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-icon:hover {
    background: var(--border);
    color: var(--text);
}

.period-select {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
    transition: all var(--transition);
}

.period-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.activity-item:hover {
    background: var(--bg-alt);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon-users {
    background: #DBEAFE;
    color: #2563EB;
}

.activity-icon-vets {
    background: #D1FAE5;
    color: #059669;
}

.activity-icon-calendar {
    background: #FEF3C7;
    color: #D97706;
}

.activity-icon-payment {
    background: #EDE9FE;
    color: #7C3AED;
}

.activity-icon-pets {
    background: #FCE7F3;
    color: #BE185D;
}

.activity-icon-default {
    background: var(--bg-alt);
    color: var(--text-muted);
}

.activity-details {
    flex: 1;
}

.activity-description {
    font-size: 0.9375rem;
    color: var(--text);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Performance Chart */
.performance-chart {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.chart-placeholder svg {
    margin: 0 auto 16px;
}

.chart-placeholder p {
    font-size: 0.9375rem;
}

/* Quick Stats Row */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.quick-stat:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.quick-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-stat-icon-pets {
    background: #FEF3C7;
    color: #D97706;
}

.quick-stat-icon-revenue {
    background: #EDE9FE;
    color: #7C3AED;
}

.quick-stat-icon-satisfaction {
    background: #FCE7F3;
    color: #BE185D;
}

.quick-stat-icon-growth {
    background: #D1FAE5;
    color: #059669;
}

.quick-stat-content {
    flex: 1;
}

.quick-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.quick-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

/* Loading States */
.loading-state,
.empty-state,
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.loading-state svg,
.empty-state svg,
.error-state svg {
    margin: 0 auto 16px;
    color: var(--text-light);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

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

.error-state {
    color: var(--danger);
}

/* Responsividade do Dashboard */
@media (max-width: 1200px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-dashboard {
        padding: 20px;
    }

    .dashboard-header .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-header .header-welcome h1 {
        font-size: 1.5rem;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .admin-dashboard {
        padding: 16px;
    }

    .action-card {
        padding: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .content-card {
        padding: 20px;
    }
}

/* Ajustes para as páginas existentes dentro do layout admin */
.admin-layout .clientes-page,
.admin-layout .domicilio-page {
    padding: 0;
}

.admin-layout .clientes-header,
.admin-layout .dashboard-header {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Animações suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.action-card,
.quick-stat {
    animation: fadeIn 0.4s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

.action-card:nth-child(1) { animation-delay: 0.05s; }
.action-card:nth-child(2) { animation-delay: 0.1s; }
.action-card:nth-child(3) { animation-delay: 0.15s; }
.action-card:nth-child(4) { animation-delay: 0.2s; }
.action-card:nth-child(5) { animation-delay: 0.25s; }


/* ===================================================================
   SIDEBAR - LANGUAGE SELECTOR
   =================================================================== */

.sidebar-lang {
    position: relative;
    margin: 12px 0;
    padding: 0 16px;
}

.sidebar-lang-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.sidebar-lang-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-lang-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.sidebar-lang-label {
    flex: 1;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-lang-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.sidebar-lang.open .sidebar-lang-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.sidebar-lang-dropdown {
    position: absolute;
    bottom: 100%;
    left: 16px;
    right: 16px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
    min-width: 220px;
}

.sidebar-lang.open .sidebar-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sidebar-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
    font-size: 0.9rem;
}

.sidebar-lang-option:hover {
    background: #f3f4f6;
}

.sidebar-lang-option.is-active {
    background: #e0e7ff;
    color: #4338ca;
    font-weight: 600;
}

.sidebar-lang-option-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.sidebar-lang-option-label {
    flex: 1;
}

.sidebar-lang-check {
    flex-shrink: 0;
    color: #4338ca;
}

/* Collapsed sidebar - mostrar apenas bandeira */
.admin-sidebar.collapsed .sidebar-lang-label {
    display: none;
}

.admin-sidebar.collapsed .sidebar-lang-chevron {
    display: none;
}

.admin-sidebar.collapsed .sidebar-lang-trigger {
    justify-content: center;
    padding: 10px;
}

.admin-sidebar.collapsed .sidebar-lang-dropdown {
    left: calc(100% + 8px);
    right: auto;
    bottom: 0;
    margin-bottom: 0;
    min-width: 200px;
}

/* Mobile */
@media (max-width: 1024px) {
    .sidebar-lang-dropdown {
        bottom: auto;
        top: 100%;
        margin-top: 8px;
        margin-bottom: 0;
    }
}

/* Scrollbar para dropdown */
.sidebar-lang-dropdown::-webkit-scrollbar {
    width: 6px;
}

.sidebar-lang-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-lang-dropdown::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.sidebar-lang-dropdown::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
