/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-out 2s forwards;
}

.splash-content {
    text-align: center;
    color: white;
}

.splash-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.splash-screen h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.splash-screen p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.loader {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Screens */
.screen {
    min-height: 100vh;
    width: 100%;
}

/* Auth Screen */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.logo-container h1 {
    font-size: 24px;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.tagline {
    color: var(--gray-500);
    font-size: 14px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.auth-form {
    animation: slideIn 0.3s ease-out;
}

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

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.form-group.checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.forgot-password {
    display: block;
    text-align: center;
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 16px;
    text-decoration: none;
}

/* Main Screen */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    border-top: 1px solid var(--gray-200);
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.3s;
}

a.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 12px;
}
a.nav-btn i { font-size: 20px; }
a.nav-btn:hover { color: var(--primary-color); }

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

.nav-btn i {
    font-size: 20px;
}

.nav-btn span {
    font-size: 11px;
    font-weight: 500;
}

/* Content Screens */
.content-screen {
    display: none;
    padding-bottom: 80px;
    min-height: 100vh;
}

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

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

.top-bar h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--gray-200);
}

/* Cards Container (Swipe Area) */
.cards-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: calc(100vh - 240px); /* Aumentado */
    margin: 10px auto 5px auto; /* Reduzido */
    padding: 0 20px;
}

.card {
    position: absolute;
    width: calc(100% - 40px);
    left: 20px;
    height: 100%;
    max-height: 600px; /* Aumentado de 550 para 600 */
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    cursor: grab;
    transition: transform 0.3s, opacity 0.3s;
    overflow: hidden;
}

.card:active {
    cursor: grabbing;
}

.card.swiped-right {
    animation: swipeRight 0.5s ease-out forwards;
}

.card.swiped-left {
    animation: swipeLeft 0.5s ease-out forwards;
}

@keyframes swipeRight {
    to {
        transform: translateX(500px) rotate(20deg);
        opacity: 0;
    }
}

@keyframes swipeLeft {
    to {
        transform: translateX(-500px) rotate(-20deg);
        opacity: 0;
    }
}

.card-image {
    width: 100%;
    height: 35%; /* Reduzido de 50% para 35% */
    min-height: 180px; /* Altura mínima */
    max-height: 220px; /* Altura máxima */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-image i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.3);
}

.card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.card-content {
    padding: 20px; /* Mais padding no desktop */
    height: 65%;
    overflow-y: auto;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 16px;
}

.card-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.card-description {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 5px 20px 10px 20px; /* Reduzido padding superior */
    max-width: 400px;
    margin: 0 auto;
}

.action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.btn-dislike {
    background: white;
    color: var(--danger-color);
}

.btn-dislike:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
}

.btn-info {
    width: 48px;
    height: 48px;
    background: white;
    color: var(--primary-color);
    font-size: 20px;
}

.btn-info:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.btn-like {
    background: white;
    color: var(--secondary-color);
}

.btn-like:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    height: 100%;
}

.empty-state i {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* Agios List */
.agios-list {
    padding: 20px;
}

.agio-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

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

.agio-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.agio-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.agio-status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
}

.agio-card-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 13px;
    color: var(--gray-600);
}

/* Matches List */
.matches-list {
    padding: 20px;
}

.match-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.3s;
}

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

.match-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gray-500);
}

.match-info {
    flex: 1;
}

.match-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.match-location {
    font-size: 13px;
    color: var(--gray-500);
}

.match-badge {
    background: var(--danger-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Profile */
.profile-container {
    padding: 20px;
}

.profile-header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--gray-500);
    margin: 0 auto 16px;
}

.profile-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-header p {
    font-size: 14px;
    color: var(--gray-500);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
}

.menu-item:hover {
    box-shadow: var(--shadow-md);
}

.menu-item i:first-child {
    font-size: 20px;
    color: var(--gray-500);
}

.menu-item span {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-900);
}

.menu-item i:last-child {
    font-size: 14px;
    color: var(--gray-400);
}

.menu-item.danger {
    color: var(--danger-color);
}

.menu-item.danger i {
    color: var(--danger-color);
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.btn-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal form {
    padding: 20px;
}

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

.form-actions button {
    flex: 1;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 20px;
    }
    
    .top-bar {
        padding: 12px 20px; /* Reduzido */
    }
    
    .cards-container {
        height: calc(100vh - 220px); /* Aumentado mais */
        margin: 5px auto 0 auto; /* Sem margem inferior */
        padding: 0 15px;
    }
    
    .card {
        width: calc(100% - 30px);
        left: 15px;
        max-height: 580px; /* Aumentado */
    }
    
    .card-image {
        height: 30%;
        min-height: 150px;
        max-height: 180px;
    }
    
    .card-content {
        padding: 12px;
        height: 70%;
    }

    .card-description {
        line-height: 1.4; /* Compacto só no mobile */
        margin-bottom: 0;
    }
    
    .card-title {
        font-size: 18px; /* Ajustado */
        margin-bottom: 6px;
    }
    
    .action-buttons {
        padding: 3px 15px 5px 15px; /* ZERO no topo */
        gap: 15px;
        margin-top: 0px; /* Puxa os botões para cima */
    }
    
    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .btn-info {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ==============================================
   ESTILOS DA TELA DE LOGIN / AUTH
   ============================================== */

body.auth-page {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 20px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.12);
    margin: 20px;
}

.login-container .logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.login-container .logo-container img {
    max-width: 160px;
    height: auto;
    margin-bottom: 12px;
}

.login-container h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    text-align: center;
}

.login-container .subtitle {
    font-size: 14px;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Alertas */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Formulário de login */
.login-container .form-group {
    margin-bottom: 18px;
}

.login-container .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.login-container .form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
    background: var(--gray-50);
}

.login-container .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

/* Botão entrar */
.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

/* Link recuperar senha */
.btn-recuperar {
    display: block;
    text-align: center;
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 16px;
    text-decoration: none;
    font-weight: 500;
}

.btn-recuperar:hover {
    text-decoration: underline;
}

/* Botão voltar */
.btn-voltar {
    display: block;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
    margin-top: 16px;
    text-decoration: none;
}

.btn-voltar:hover {
    color: var(--gray-700);
}

/* Info de segurança */
.info-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 20px;
    line-height: 1.5;
}

/* Dados do usuário (definir_senha) */
.user-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Dica de senha */
.password-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Rodapé */
.footer-text {
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 24px;
}

/* Responsivo login */
@media (max-width: 480px) {
    .login-container {
        padding: 28px 20px;
        margin: 12px;
        border-radius: 16px;
    }
}

/* Checkbox group (modal de ágio) */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
    font-weight: 400;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
    border: none;
    padding: 0;
}

/* Botão ver candidatos */
.btn-ver-candidatos {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 14px;
    background: #eff6ff;
    color: var(--primary-color);
    border: 1.5px solid #bfdbfe;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.btn-ver-candidatos:hover {
    background: var(--primary-color);
    color: white;
}

/* Container de candidatos */
.candidatos-container {
    margin-top: 12px;
    border-top: 1px solid var(--gray-200);
    padding-top: 8px;
}

/* Card de candidato */
.candidato-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 8px;
    border-left: 3px solid var(--gray-300);
}
.candidato-card.candidato-destaque {
    border-left-color: #f59e0b;
    background: #fffbeb;
}
.candidato-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.candidato-tipo {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 4px;
}
.tipo-venda  { background: #eff6ff; color: #1d4ed8; }
.tipo-compra { background: #f0fdf4; color: #15803d; }
.candidato-titulo { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.candidato-local  { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.candidato-valor  { font-size: 13px; color: var(--gray-700); margin-top: 2px; }
.candidato-score  {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}
.score-numero {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}
.score-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.candidato-detalhes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}
.detalhe-tag {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    color: var(--gray-600);
}

.btn-match {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 7px 14px;
    background: #fef2f2;
    color: #ef4444;
    border: 1.5px solid #fecaca;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.btn-match:hover {
    background: #ef4444;
    color: white;
}

.detalhe-linha {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--gray-100, #f8fafc);
    gap: 12px;
    margin-bottom: 8px;
}
.detalhe-linha:last-child { margin-bottom: 0; }
.detalhe-chave {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.detalhe-valor {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    text-align: right;
    line-height: 1.5;
}