/* Variables CSS - Paleta de colores profesional */
:root {
    --dark-gray: #1a1a1a;
    --medium-gray: #666666;
    --light-gray: #e0e0e0;
    --bg-gray: #f5f5f5;
    --electric-blue: #0066ff;
    --white: #ffffff;
    --black: #000000;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--bg-gray);
    overflow-x: hidden;
}

/* ===== PANTALLA DE CARGA ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--electric-blue) 0%, #001f4d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    color: var(--electric-blue);
    margin: 0 auto 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

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

.logo-text {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* ===== PANTALLA DE AUTENTICACIÓN ===== */
.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, var(--electric-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.auth-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    max-width: 420px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
    -webkit-overflow-scrolling: touch;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header .logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.35rem;
}

.auth-subtitle {
    color: var(--medium-gray);
    font-size: 0.8125rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--light-gray);
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 0.5rem;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--medium-gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: var(--electric-blue);
    border-bottom-color: var(--electric-blue);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    min-width: 0; /* responsive: no desbordar en flex */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0; /* permite que encaje en flex sin desbordar */
}

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

.form-group input,
.form-group textarea,
.form-group select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.875rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group select {
    cursor: pointer;
}

.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}
.password-wrap input {
    padding-right: 2.75rem;
}
.password-wrap .toggle-password {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.35rem;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.7;
    border-radius: 4px;
}
.password-wrap .toggle-password:hover {
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--electric-blue);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--electric-blue);
}

.user-type-selector {
    display: flex;
    gap: 0.75rem;
    margin: 0.35rem 0;
    min-width: 0;
}

.radio-label {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"] {
    margin: 0;
}

.radio-label:has(input:checked) {
    border-color: var(--electric-blue);
    background: rgba(0, 102, 255, 0.05);
}

.auth-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--electric-blue), #0052cc);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-button:hover::before {
    left: 100%;
}

.auth-button:hover {
    background: linear-gradient(135deg, #0052cc, var(--electric-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.auth-button:active {
    transform: translateY(0);
}

/* Pantalla de verificación (Paso 2 tras registro con API) */
.auth-verify-step {
    padding: 0.5rem 0;
    animation: slideUp 0.35s ease-out;
}
.auth-verify-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 0.35rem;
}
.auth-verify-subtitle {
    font-size: 0.9375rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}
.auth-verify-message {
    font-size: 0.9375rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.45;
}
.auth-verify-devcode {
    margin-bottom: 1rem;
}
.auth-verify-feedback {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
}
.auth-verify-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.auth-verify-actions .auth-button {
    flex: 1;
    min-width: 120px;
}

/* Auth: diseño desktop (mobile se mantiene igual); breakpoint 600px para verse con DevTools abierto */
@media (min-width: 600px) {
    .auth-screen {
        padding: 2rem;
    }

    .auth-container {
        max-width: 480px;
        padding: 3.5rem 3rem;
        border-radius: 28px;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    }

    .auth-header .logo {
        width: 88px;
        height: 88px;
        margin-bottom: 1.25rem;
    }

    .auth-title {
        font-size: 2.25rem;
    }

    .auth-subtitle {
        font-size: 1rem;
    }

    .auth-tabs {
        margin-bottom: 2.25rem;
    }

    .auth-tab {
        padding: 1rem 1.25rem;
        font-size: 1.0625rem;
    }

    .auth-form {
        gap: 1.75rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .user-type-selector {
        gap: 1.25rem;
    }

    .radio-label {
        padding: 1.125rem 1rem;
    }

    .auth-button {
        padding: 1.125rem 2rem;
        font-size: 1.0625rem;
    }
}

/* ===== APLICACIÓN PRINCIPAL ===== */
#app {
    min-height: 100vh;
    display: flex;
}

/* ===== SIDEBARS ===== */
.sidebar {
    width: 280px;
    background: var(--white);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

/* Izquierdo: desplegable con menú hamburguesa (oculto por defecto) */
.sidebar-left {
    position: fixed;
    top: 0;
    left: -280px;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

.sidebar-left.mobile-open {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-right {
    position: sticky;
    top: 0;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

/* Móvil: panel Actividad debajo de las cards y botones; desktop: igual (lateral derecho) */
@media (max-width: 768px) {
    #app {
        flex-direction: column;
    }
    .main-content {
        order: 1;
        flex: 1 1 auto;
    }
    .sidebar-right {
        order: 2;
        width: 100%;
        max-width: 100%;
        height: auto;
        position: relative;
        top: auto;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
        border-top: 1px solid var(--light-gray);
    }
    .sidebar-right .sidebar-content {
        padding: 1.25rem 1rem;
        height: auto;
    }
    .sidebar-right .sidebar-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
}

.sidebar-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    margin-bottom: 2rem;
    text-align: center;
}

.sidebar-header .logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.5rem;
    font-size: 1.5rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 900;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#employeeNav,
#companyNav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--dark-gray);
    text-align: left;
    width: 100%;
}

.nav-item:hover {
    background: var(--bg-gray);
}

.nav-item.active {
    background: var(--electric-blue);
    color: var(--white);
}

.nav-icon {
    font-size: 1.25rem;
}

.sidebar-footer {
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.feed-header {
    background: var(--white);
    padding: 0.6rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 99;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-menu-button {
    display: flex;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-gray);
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--dark-gray);
    transition: all 0.2s ease;
}

.mobile-menu-button:hover {
    background: var(--light-gray);
}

.mobile-menu-button:active {
    transform: scale(0.95);
}

.header-content {
    flex: 1;
    min-width: 0;
}

.feed-title {
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 0.1rem;
}

.feed-subtitle {
    font-size: 0.75rem;
    color: var(--medium-gray);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-gray);
    border-radius: 20px;
    border: 1px solid var(--light-gray);
}

.user-badge {
    padding: 0.25rem 0.75rem;
    background: var(--electric-blue);
    color: var(--white);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.feed-main {
    flex: 1;
    padding: 1rem 1.25rem;
    overflow-y: auto;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

/* ===== SWIPE CONTAINER ===== */
.swipe-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
}

/* Agrupación tarjeta + botones: móvil = tarjeta arriba, botones en una fila abajo; desktop = rechazar | tarjeta | corazón */
.swipe-card-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

/* Móvil: tarjeta arriba (order 0), luego botones (order 1 y 2) */
.swipe-card-actions .cards-stack {
    order: 0;
    width: 100%;
}

.swipe-card-actions .action-interested {
    order: 1;
}

.swipe-card-actions .action-pass {
    order: 2;
}

/* Mensaje "No hay más perfiles" centrado entre los dos botones */
.swipe-container-empty {
    display: none;
    order: 0;
    width: 100%;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    box-sizing: border-box;
}
.swipe-container-empty[style*="block"] {
    display: flex !important;
    flex-direction: column;
}
.swipe-container-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}
.swipe-container-empty p {
    font-size: 1rem;
    color: var(--medium-gray);
    margin: 0;
}

.cards-stack {
    position: relative;
    width: 100%;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.card-details-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

/* ===== TARJETAS ===== */
.professional-card {
    position: absolute;
    width: 100%;
    max-width: 500px;
    height: 520px;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    cursor: grab;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
}

.professional-card.dragging {
    cursor: grabbing;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.professional-card.flipped .card-front {
    transform: rotateY(180deg);
}

.professional-card.flipped .card-back {
    transform: rotateY(0deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s;
}

.card-front {
    display: flex;
    flex-direction: column;
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 65%;
    overflow: hidden;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.card-badge {
    background: var(--electric-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.card-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--white);
}

.card-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.card-tagline {
    font-size: 0.95rem;
    color: var(--primary-color, #6366f1);
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.card-company-description,
.card-candidate-description {
    font-size: 0.9rem;
    color: var(--medium-gray, #555);
    line-height: 1.45;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    font-size: 1.125rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.card-salary {
    font-size: 1.125rem;
    color: var(--electric-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-info {
    font-size: 0.875rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.card-info strong {
    color: var(--dark-gray);
    font-weight: 600;
}

.card-back-details {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: 8px;
}

.card-back-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: var(--dark-gray);
}

.card-back-details p:last-child {
    margin-bottom: 0;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--dark-gray);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.card-expand-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    margin-top: 1rem;
    background: var(--bg-gray);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.card-expand-btn:hover {
    background: var(--electric-blue);
    color: var(--white);
    border-color: var(--electric-blue);
}

.expand-icon {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.card-details-panel {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 16px;
    margin: 1rem 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    max-height: 0;
    opacity: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: none;
}

.card-details-panel.show {
    max-height: 2000px;
    padding: 1.5rem 2rem;
    opacity: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
    display: block !important;
}

.card-details-content {
    animation: slideDown 0.3s ease;
}

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

.card-details-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.card-details-tagline {
    font-size: 1.05rem;
    color: var(--primary-color, #6366f1);
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}

.card-details-section {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray, #eee);
}

.card-details-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.card-details-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--medium-gray, #666);
    line-height: 1.6;
}

.card-details-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

/* Bloque "Sobre la empresa" (misma descripción que en la card) dentro de Detalles de la oferta */
.card-details-company-block {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: 8px;
    border-left: 4px solid var(--electric-blue);
}

/* Bloque "Sobre el candidato" (about_me) en Detalles del candidato */
.card-details-candidate-block {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.card-details-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: 8px;
}

.card-details-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: var(--dark-gray);
}

.card-details-info p:last-child {
    margin-bottom: 0;
}

.card-details-tech {
    margin-bottom: 1.5rem;
}

.card-close-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--electric-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-close-btn:hover {
    background: #0052cc;
    transform: translateY(-2px);
}

/* ===== DISCOVER HEADER (filtro + contadores) ===== */
.discover-header {
    width: 100%;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== FILTRO DE CATEGORÍAS ===== */
/* En línea, ancho casi completo del contenido; responsive */
.category-filter {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark-gray);
    white-space: nowrap;
    flex-shrink: 0;
}

.category-select {
    flex: 1;
    min-width: 180px;
    max-width: 100%;
    padding: 0.55rem 0.85rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark-gray);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-select:hover {
    border-color: var(--electric-blue);
}

.category-select:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.card-back-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.card-back-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.card-back-tech {
    margin-bottom: 1.5rem;
}

.tech-stack-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-flip-back {
    margin-top: auto;
    padding: 1rem 2rem;
    background: var(--electric-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-flip-back:hover {
    background: #0066cc;
    transform: translateY(-2px);
}

/* Swipe Stamp */
.swipe-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1.5rem 3rem;
    border: 5px solid;
    border-radius: 12px;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 0.15em;
    z-index: 10;
    pointer-events: none;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swipe-stamp.visible {
    opacity: 1;
}

.swipe-stamp.interested {
    color: #27ae60;
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.15);
}

.swipe-stamp.pass {
    color: #e74c3c;
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
}

/* Swipe Actions (botones dentro de .swipe-card-actions) */
.swipe-card-actions .action-button {
    flex-shrink: 0;
}

.action-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid;
    font-size: 1.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.action-pass {
    border-color: #e74c3c;
    color: #e74c3c;
}

.action-pass:hover {
    background: #e74c3c;
    color: var(--white);
    transform: scale(1.05);
}

.action-interested {
    border-color: #27ae60;
    color: #27ae60;
}

.action-interested:hover {
    background: #27ae60;
    color: var(--white);
    transform: scale(1.05);
}

.action-button:active {
    transform: scale(0.97);
}

/* ===== PERFIL ===== */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-content {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.profile-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.profile-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--electric-blue);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.2);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: var(--electric-blue);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.edit-avatar-btn:hover {
    transform: scale(1.1);
    background: #0066cc;
}

.profile-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.save-button {
    padding: 1rem 2rem;
    background: var(--electric-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.save-button:hover {
    background: #0066cc;
    transform: translateY(-2px);
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--medium-gray);
    margin-top: 0.35rem;
}

.attachments-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--bg-gray);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.attachment-name {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

.attachment-remove {
    background: none;
    border: none;
    color: var(--medium-gray);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0.35rem;
    line-height: 1;
}

.attachment-remove:hover {
    color: #e74c3c;
}

/* ===== MATCHES ===== */
.matches-container {
    max-width: 1200px;
    margin: 0 auto;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Desktop: card en horizontal — imagen más ancha a la izquierda, título + atributos + tecnologías + botones a la derecha. */
@media (min-width: 769px) {
    .matches-container .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(620px, 1fr));
    }
    .matches-container .matches-grid .match-card {
        flex-direction: column;
        overflow: hidden;
    }
    .matches-container .matches-grid .match-card-main {
        flex-direction: row;
        flex: 1;
        min-height: 200px;
        display: flex;
        align-items: stretch;
    }
    .matches-container .matches-grid .match-card-image-container {
        flex: 0 0 320px;
        width: 320px;
        min-width: 320px;
        height: 100%;
        min-height: 200px;
        overflow: hidden;
    }
    .matches-container .matches-grid .match-card-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .matches-container .matches-grid .match-card-content {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 0;
        padding: 1.25rem 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        justify-content: center;
    }
    .matches-container .matches-grid .match-card-content h3 {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--dark-gray);
        margin: 0;
        line-height: 1.3;
    }
    .matches-container .matches-grid .match-card-content .match-card-description {
        font-size: 0.9375rem;
        color: var(--medium-gray);
        margin: 0;
        line-height: 1.4;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .matches-container .matches-grid .match-card-content .match-card-attrs {
        font-size: 0.8125rem;
        color: var(--medium-gray);
        margin: 0;
        line-height: 1.4;
    }
    .matches-container .matches-grid .match-card-content .match-card-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin: 0;
    }
    .matches-container .matches-grid .match-card-content .match-card-tags .tag {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
        background: var(--dark-gray);
        color: var(--white);
        border-radius: 20px;
        font-weight: 500;
    }
    .matches-container .matches-grid .match-card-content .match-card-actions {
        margin-top: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--light-gray);
        display: flex;
        gap: 0.75rem;
        flex-shrink: 0;
    }
    .matches-container .matches-grid .match-card.details-expanded {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

.match-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.match-card-main {
    display: flex;
    flex-direction: column;
}

/* DESKTOP: cuando la card está expandida (Ver detalles), layout row: resumen izq | panel detalles der.
   Los estilos concretos para .matches-container están al final del archivo. */
@media (min-width: 769px) {
    .match-card.details-expanded .match-profile-details.match-details-visible,
    .match-card.details-expanded .match-profile-details[style*="display: block"] {
        display: block !important;
        overflow-y: auto !important;
    }
}

.match-card-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.match-card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.match-card-content {
    padding: 1.5rem;
    padding-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.match-card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.match-card-tagline {
    font-size: 0.9375rem;
    color: var(--electric-blue);
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.match-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.match-card-content > p {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.match-card-attrs {
    font-size: 0.875rem;
    color: var(--medium-gray);
    margin: 0;
    line-height: 1.4;
}

.match-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 0;
}

.match-card-tags .tag {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    background: var(--dark-gray);
    color: var(--white);
    border-radius: 20px;
    font-weight: 500;
}

.match-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.message-button,
.view-profile-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.message-button {
    background: var(--electric-blue);
    color: var(--white);
}

.message-button:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.view-profile-button {
    background: var(--bg-gray);
    color: var(--dark-gray);
    border: 2px solid var(--light-gray);
}

.view-profile-button:hover {
    background: var(--light-gray);
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}

.message-icon,
.view-icon {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.message-text,
.view-text {
    font-size: 0.875rem;
}

/* ===== PANEL DE DETALLES DE MATCH ===== */
/* Por defecto: columna (móvil). Desktop se sobreescribe en @media (min-width: 769px) */
/* Oculto por defecto; solo se muestra al pulsar "Ver detalles" */
.match-profile-details {
    background: var(--bg-gray);
    border-top: 2px solid var(--light-gray);
    padding: 0;
    overflow: hidden;
    width: 100%;
    display: none !important;
}

.match-profile-details.match-details-visible,
.match-profile-details[style*="display: block"] {
    padding: 1.5rem;
    padding-bottom: 2rem;
    display: block !important;
}

.match-details-content {
    animation: slideDown 0.3s ease;
}

.match-details-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.match-details-tagline {
    font-size: 1.05rem;
    color: var(--electric-blue);
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.match-details-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.match-details-company-block {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--electric-blue);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.match-details-candidate-block {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.match-details-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
}

.match-details-info .detail-item {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--dark-gray);
}

.match-details-info .detail-item:last-child {
    margin-bottom: 0;
}

.match-details-info .detail-item strong {
    color: var(--dark-gray);
    font-weight: 600;
    margin-right: 0.5rem;
}

.match-details-tech {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.match-details-tech .tech-stack-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.match-details-tech .tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.match-details-attachments {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--light-gray, #eee);
}

.match-details-attachments .tech-stack-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.match-attachments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.match-attachment-item {
    margin-bottom: 0.35rem;
}

.match-attachment-link {
    color: var(--primary-color, #6366f1);
    text-decoration: none;
    font-size: 0.95rem;
}

.match-attachment-link:hover {
    text-decoration: underline;
}

/* MÓVIL (≤768px): layout VERTICAL — tarjeta arriba, detalles abajo; botones con texto visible */
@media (max-width: 768px) {
    .message-button,
    .view-profile-button {
        padding: 0.75rem 1rem;
        min-width: 0;
    }
    
    .match-card.details-expanded {
        flex-direction: column !important;
    }
    
    .match-card.details-expanded .match-card-main {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .match-card.details-expanded .match-card-image-container {
        width: 100% !important;
        height: 200px !important;
        flex: none !important;
    }
    
    .match-card.details-expanded .match-profile-details.match-details-visible,
    .match-card.details-expanded .match-profile-details[style*="display: block"] {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        border-left: none !important;
        border-top: 2px solid var(--light-gray) !important;
    }
    
    .match-profile-details.match-details-visible,
    .match-profile-details[style*="display: block"] {
        padding: 1rem 1rem 1.75rem 1rem !important;
    }
}

/* ===== FOOTER ===== */
.feed-footer {
    background: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* Footer de estadísticas dentro de Discover: compacto, justo bajo los botones */
.feed-footer-discover {
    padding: 1rem 1.25rem;
    margin-top: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
}

.feed-stats {
    display: flex;
    justify-content: space-around;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-gray);
}

.stat-match {
    color: var(--electric-blue);
}

/* ===== MATCH OVERLAY ===== */
.match-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
    overflow-y: auto;
}

.match-content {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: matchPop 0.5s ease-out;
    margin: auto;
}

@keyframes matchPop {
    0% {
        transform: scale(0.5) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.confetti {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite;
}

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

.match-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--electric-blue), #27ae60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.match-subtitle {
    font-size: 1.125rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.match-profile {
    background: var(--bg-gray);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.match-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--electric-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.match-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.match-description {
    font-size: 1rem;
    color: var(--medium-gray);
}

.match-button {
    min-width: 200px;
    padding: 1rem 2rem;
    background: var(--electric-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Desktop: card de match horizontal (sin scroll), imagen a la izquierda y texto a la derecha */
@media (min-width: 769px) {
    .match-content {
        max-width: 560px;
        padding: 2rem 2.25rem;
    }
    .match-profile {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 1.5rem;
        padding: 1.25rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    .match-profile .match-image {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }
    .match-profile .match-info {
        flex: 1;
        min-width: 0;
    }
    .match-profile .match-name {
        margin-bottom: 0.35rem;
        font-size: 1.35rem;
    }
    .match-profile .match-description {
        font-size: 0.9375rem;
    }
}

.match-button:hover {
    background: #0066cc;
    transform: translateY(-2px);
}

.empty-message {
    text-align: center;
    color: var(--medium-gray);
    padding: 3rem;
    background: var(--white);
    border-radius: 12px;
}

/* ===== ACTIVIDAD ===== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: 12px;
}

.activity-icon {
    font-size: 1.5rem;
}

.activity-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

.activity-text p {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

/* ===== DASHBOARD ===== */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-card-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--electric-blue), #0052cc);
    border-radius: 16px;
    flex-shrink: 0;
}

.stat-card-content h3 {
    font-size: 0.875rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
}

.dashboard-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: 8px;
    border-left: 4px solid var(--electric-blue);
}

.timeline-time {
    font-size: 0.75rem;
    color: var(--medium-gray);
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--dark-gray);
    margin: 0;
}

/* ===== JOBS SECTION ===== */
.jobs-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.primary-button {
    padding: 0.875rem 1.5rem;
    background: var(--electric-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-button:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.secondary-button {
    padding: 0.875rem 1.5rem;
    background: var(--bg-gray);
    color: var(--dark-gray);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: var(--light-gray);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.job-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.job-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.job-status {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.job-status.active {
    background: #d4edda;
    color: #155724;
}

.job-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.job-card-description {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.job-salary {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--electric-blue);
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-item {
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-item h4 {
    margin-bottom: 0.25rem;
}

.job-item p {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

.add-job-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-gray);
    border: 2px dashed var(--light-gray);
    border-radius: 8px;
    color: var(--medium-gray);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-job-btn:hover {
    background: var(--light-gray);
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}

/* ===== MESSAGES ===== */
.messages-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    height: 600px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.conversations-list {
    background: var(--bg-gray);
    padding: 1.5rem;
    overflow-y: auto;
    border-right: 1px solid var(--light-gray);
}

.conversations-list h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.conversation-item:hover {
    background: var(--light-gray);
    transform: translateX(4px);
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--electric-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-gray);
}

.conversation-info p {
    font-size: 0.875rem;
    color: var(--medium-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--medium-gray);
    flex-shrink: 0;
}

.chat-area {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

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

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-gray);
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-gray);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--dark-gray);
}

.modal-close:hover {
    background: var(--light-gray);
    transform: rotate(90deg);
}

.modal-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.verify-dev-code {
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid var(--electric-blue);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.modal-form .form-group select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.modal-form .form-group select:focus {
    outline: none;
    border-color: var(--electric-blue);
}

/* ===== NOTIFICACIÓN IN-APP (TOAST) ===== */
.app-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 1.5rem;
    background: var(--dark-gray);
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    max-width: 90vw;
    text-align: center;
}

.app-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.app-toast.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.35);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .professional-card {
        max-width: 450px;
        height: 520px;
    }
    
    .cards-stack {
        height: 520px;
    }
    
    .card-details-container {
        max-width: 450px;
    }

    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }

    .messages-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .conversations-list {
        border-right: none;
        border-bottom: 1px solid var(--light-gray);
        max-height: 300px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .feed-header {
        padding: 0.65rem 1rem;
        flex-wrap: wrap;
    }
    
    .header-content {
        flex: 1;
        min-width: 200px;
    }
    
    .feed-title {
        font-size: 1.25rem;
    }
    
    .feed-subtitle {
        font-size: 0.75rem;
    }
    
    .user-info {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .category-filter {
        padding: 0.65rem 0.75rem;
        margin-bottom: 1rem;
        width: 100%;
        flex-direction: row;
        align-items: center;
    }
    
    .filter-title {
        font-size: 0.875rem;
    }
    
    .category-select {
        font-size: 0.875rem;
        padding: 0.5rem 0.65rem;
        min-width: 0;
        flex: 1;
    }
    
    .feed-main {
    }
    
    .cards-stack {
        height: 500px;
    }
    
    .professional-card {
        max-width: 100%;
        height: 500px;
    }
    
    .card-details-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .card-details-panel {
        margin: 1rem 0;
    }
    
    .card-details-panel.show {
        padding: 1rem 1.5rem;
        max-width: 100%;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .match-card-actions {
        flex-direction: column;
    }
    
    .message-button,
    .view-profile-button {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Solo móvil: Mis Matches — menos espacio en la card y en el panel Detalles */
    .matches-container .matches-grid .match-card .match-card-content {
        padding: 1rem 1.25rem;
    }
    .matches-container .matches-grid .match-card .match-card-content h3 {
        margin-bottom: 0.25rem;
    }
    .matches-container .matches-grid .match-card .match-card-content .match-card-description,
    .matches-container .matches-grid .match-card .match-card-content > p {
        margin-bottom: 0.25rem;
    }
    .matches-container .matches-grid .match-card .match-card-content .match-card-tags {
        margin-top: 0.25rem;
    }
    .matches-container .matches-grid .match-card .match-card-content .match-card-actions {
        margin-top: 0.5rem;
        padding-top: 0.65rem;
    }
    .matches-container .matches-grid .match-profile-details .match-details-content {
        padding: 0;
        padding-bottom: 1rem;
    }
    .matches-container .matches-grid .match-profile-details .match-details-title {
        margin-bottom: 0.5rem;
    }
    .matches-container .matches-grid .match-profile-details .match-details-description {
        margin-bottom: 0.75rem;
    }
    .matches-container .matches-grid .match-profile-details .match-details-info {
        margin-bottom: 0.75rem;
    }
    .matches-container .matches-grid .match-profile-details .match-details-info .detail-item {
        margin-bottom: 0.25rem;
    }
    .matches-container .matches-grid .match-profile-details .match-details-tech {
        margin-top: 0.5rem;
    }
    .matches-container .matches-grid .match-profile-details .match-details-tech .tech-stack-title {
        margin-bottom: 0.5rem;
    }
    .matches-container .matches-grid .match-profile-details .match-details-tech {
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 2rem 1.5rem;
    }
    
    .feed-title {
        font-size: 1.5rem;
    }
    
    .cards-stack {
        height: 460px;
    }
    
    .professional-card {
        height: 460px;
    }
    
    .action-button {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .swipe-card-actions {
        gap: 0.75rem;
    }
    
    .match-content {
        padding: 2rem 1.5rem;
    }
    
    .match-title {
        font-size: 2rem;
    }
    
    .match-card-content h3 {
        font-size: 1.125rem;
    }
    
    .match-card-content > p {
        font-size: 0.875rem;
    }
    
    .card-tags {
        flex-wrap: wrap;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .modal-form {
        padding: 1rem;
    }
    
    .card-details-container {
        padding: 0 0.5rem;
    }
    
    .card-details-panel[style*="display: block"] {
        padding: 1rem;
    }
    
    .card-details-title {
        font-size: 1.25rem;
    }
    
    .card-details-description {
        font-size: 0.9375rem;
    }
    
    .card-expand-btn {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .expand-text {
        font-size: 0.8125rem;
    }
}

/* ===== TITLE ACCENT ===== */
.title-accent {
    background: linear-gradient(135deg, var(--electric-blue), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== AUTH RESPONSIVE ===== */
/* Tablet / ventana media: panel un poco más ancho, sigue vertical, tamaños contenidos */
@media (min-width: 360px) and (max-width: 768px) {
    body .auth-screen { padding: 1.25rem !important; }
    body .auth-container {
        max-width: 440px !important;
        width: 100% !important;
        max-height: calc(100vh - 2.5rem) !important;
        overflow-y: auto !important;
        padding: 2rem 1.75rem !important;
        border-radius: 20px !important;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25) !important;
    }
    body .auth-container .auth-header .logo {
        width: 72px !important; height: 72px !important; margin-bottom: 0.75rem !important;
    }
    body .auth-container .auth-title { font-size: 1.625rem !important; }
    body .auth-container .auth-subtitle { font-size: 0.875rem !important; }
    body .auth-container .auth-tabs { margin-bottom: 1.25rem !important; }
    body .auth-container .auth-tab { padding: 0.65rem 0.5rem !important; font-size: 0.9375rem !important; }
    body .auth-container .auth-form { gap: 1.125rem !important; }
    body .auth-container .form-group input,
    body .auth-container .form-group textarea,
    body .auth-container .form-group select {
        padding: 0.65rem 0.875rem !important; font-size: 0.9375rem !important;
    }
    body .auth-container .user-type-selector { gap: 0.75rem !important; }
    body .auth-container .radio-label { padding: 0.75rem !important; }
    body .auth-container .auth-button { padding: 0.75rem 1.5rem !important; font-size: 0.9375rem !important; }
}

/* Desktop: layout horizontal (bienvenida izquierda, formulario derecha) */
@media (min-width: 769px) {
    body .auth-screen {
        padding: 2rem !important;
    }
    body .auth-container {
        display: flex !important;
        flex-direction: row !important;
        max-width: 880px !important;
        width: 100% !important;
        max-height: calc(100vh - 4rem) !important;
        min-height: 0 !important;
        padding: 0 !important;
        border-radius: 20px !important;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3) !important;
        overflow: hidden !important;
    }
    /* Columna izquierda: bienvenida (referencia imagen) */
    body .auth-container .auth-header {
        flex: 0 0 42% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 2rem 1.75rem !important;
        margin: 0 !important;
        text-align: center !important;
        background: linear-gradient(160deg, #5a67d8 0%, #4c51bf 50%, #434190 100%) !important;
        color: #fff !important;
    }
    body .auth-container .auth-header .logo {
        width: 72px !important;
        height: 72px !important;
        margin: 0 auto 1rem !important;
        background: rgba(255,255,255,0.2) !important;
        color: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 800 !important;
    }
    body .auth-container .auth-header .auth-title {
        font-size: 1.5rem !important;
        color: #fff !important;
        margin-bottom: 0.35rem !important;
    }
    body .auth-container .auth-header .auth-title .title-accent {
        color: #e0e7ff !important;
        -webkit-text-fill-color: #e0e7ff !important;
        background: none !important;
        background-clip: unset !important;
    }
    body .auth-container .auth-header .auth-subtitle {
        color: rgba(255,255,255,0.9) !important;
        font-size: 0.875rem !important;
    }
    /* Columna derecha: formulario (scroll interno para ver siempre el botón) */
    body .auth-container .auth-form-panel {
        flex: 1 1 0 !important;
        min-height: 0 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 2rem 1.75rem !important;
        background: var(--white) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    body .auth-container .auth-form-panel .auth-tabs {
        margin-bottom: 1.25rem !important;
    }
    body .auth-container .auth-form-panel .auth-tab {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.9375rem !important;
    }
    body .auth-container .auth-form-panel .auth-form {
        gap: 1.125rem !important;
    }
    body .auth-container .auth-form-panel .form-group input,
    body .auth-container .auth-form-panel .form-group textarea,
    body .auth-container .auth-form-panel .form-group select {
        padding: 0.65rem 0.875rem !important;
        font-size: 0.9375rem !important;
    }
    body .auth-container .auth-form-panel .user-type-selector {
        gap: 0.75rem !important;
    }
    body .auth-container .auth-form-panel .radio-label {
        padding: 0.75rem !important;
    }
    body .auth-container .auth-form-panel .auth-button {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9375rem !important;
    }
}

/* ===== MATCHES EXPANDIDO: card (imagen + título + botones) a la izquierda; Detalles a la derecha ===== */
@media (min-width: 769px) {
    .matches-container .matches-grid .match-card.details-expanded {
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 0 !important;
    }
    .matches-container .matches-grid .match-card.details-expanded .match-card-main {
        flex: 0 0 320px !important;
        max-width: 320px !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        border-right: 2px solid var(--light-gray) !important;
    }
    .matches-container .matches-grid .match-card.details-expanded .match-card-image-container {
        width: 100% !important;
        height: 180px !important;
        min-height: 180px !important;
        flex: 0 0 auto !important;
    }
    .matches-container .matches-grid .match-card.details-expanded .match-card-content {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 1rem 1.25rem !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .matches-container .matches-grid .match-card.details-expanded .match-profile-details.match-details-visible,
    .matches-container .matches-grid .match-card.details-expanded .match-profile-details[style*="display: block"] {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 1.25rem 1.5rem !important;
        border-top: none !important;
        border-left: none !important;
        background: var(--bg-gray) !important;
        display: block !important;
        overflow-y: auto !important;
    }
}
@media (max-width: 768px) {
    .matches-container .matches-grid .match-card.details-expanded {
        flex-direction: column !important;
    }
    .matches-container .matches-grid .match-card.details-expanded .match-card-main {
        flex: none !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .matches-container .matches-grid .match-card.details-expanded .match-card-image-container {
        width: 100% !important;
        height: 200px !important;
        flex: none !important;
    }
    .matches-container .matches-grid .match-card.details-expanded .match-profile-details.match-details-visible,
    .matches-container .matches-grid .match-card.details-expanded .match-profile-details[style*="display: block"] {
        flex: none !important;
        max-width: 100% !important;
        border-top: 2px solid var(--light-gray) !important;
    }
}

/* Desktop: tarjetas horizontal + paneles laterales (corazón izq, equis der) + contadores en el filtro */
@media (min-width: 769px) {
    /* Filtro y contadores en una sola fila */
    .discover-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        margin-bottom: 1rem;
        padding: 0.75rem 1rem;
        background: var(--white);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    .discover-header .category-filter {
        flex: 1;
        min-width: 0;
        margin: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
    .discover-header .discover-stats {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        gap: 1.5rem;
        margin: 0;
        flex-shrink: 0;
    }
    .discover-header .discover-stats .stat-item {
        flex-direction: row;
        gap: 0.35rem;
        align-items: baseline;
    }
    .discover-header .discover-stats .stat-label {
        font-size: 0.75rem;
    }
    .discover-header .discover-stats .stat-value {
        font-size: 1.25rem;
    }

    .swipe-container {
        max-width: 1000px;
    }
    /* Paneles laterales: mismo alto que la card; más estrechos para que la card destaque */
    .swipe-card-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: stretch;
        gap: 0;
        margin-bottom: 0.75rem;
    }
    .swipe-card-actions .action-interested {
        order: 1;
        flex-shrink: 0;
        width: 64px;
        min-width: 64px;
        height: auto;
        align-self: stretch;
        border-radius: 16px;
        font-size: 1.65rem;
        margin-right: 0.5rem;
        transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    }
    .swipe-card-actions .action-pass {
        order: 3;
        flex-shrink: 0;
        width: 64px;
        min-width: 64px;
        height: auto;
        align-self: stretch;
        border-radius: 16px;
        font-size: 1.65rem;
        margin-left: 0.5rem;
        transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    }
    .swipe-card-actions .action-interested:hover,
    .swipe-card-actions .action-pass:hover {
        transform: scale(1.03);
    }
    .swipe-card-actions .action-interested:active,
    .swipe-card-actions .action-pass:active {
        transform: scale(0.98);
    }
    .swipe-card-actions .cards-stack {
        order: 2;
        width: 800px;
        min-width: 320px;
    }
    .swipe-card-actions .swipe-container-empty {
        order: 2;
        width: 800px;
        min-width: 320px;
        min-height: 420px;
    }
    .cards-stack {
        height: 420px;
        flex: 0 1 auto;
        max-width: 800px;
    }
    .professional-card {
        max-width: 800px;
        height: 420px;
    }
    .professional-card .card-front {
        flex-direction: row;
    }
    .professional-card .card-image-container {
        width: 42%;
        min-width: 0;
        height: 100%;
        flex-shrink: 0;
    }
    .professional-card .card-content {
        flex: 1;
        min-width: 0;
        padding: 1.5rem 1.75rem;
        overflow-y: auto;
        justify-content: flex-start;
    }
    .professional-card .card-name {
        font-size: 1.5rem;
        margin-bottom: 0.35rem;
    }
    .professional-card .card-description {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    .professional-card .card-salary {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .professional-card .card-info {
        font-size: 0.8125rem;
        margin-bottom: 0.35rem;
    }
    .professional-card .card-tags {
        margin-bottom: 0.75rem;
    }
    .professional-card .tag {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }
    .professional-card .card-expand-btn {
        margin-top: 0.75rem;
        padding: 0.65rem 1rem;
        font-size: 0.875rem;
    }
}
