/* ============================================================
   WILY GLOBAL STYLE - LE COEUR DU DESIGN
   ============================================================ */

/* 1. IMPORTATION DES POLICES (LORA + POPPINS) */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

/* 2. DÉFINITION DES COULEURS */
:root {
    --brand-red: #B11226;
    --brand-yellow: #FFC107;
    --brand-black: #000000;
    --brand-white: #ffffff;

    /* DÉFAUT (ROUGE) */
    --primary: var(--brand-red);
    --on-primary: var(--brand-white);

    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: #eeeeee;
}

/* 3. MODE JAUNE (Via classe .theme-yellow) */
body.theme-yellow {
    --primary: var(--brand-yellow);
    --on-primary: var(--brand-black);
}

/* 4. BASE & TYPOGRAPHIE */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    /* Texte normal */
    font-size: 11px;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 15px;
    padding-bottom: 120px;
    /* Espace pour le footer */
    transition: 0.3s;
}

/* LE STYLE "RESTAURANT" (Police Lora Élégante) */
.w-title,
.item-name,
.item-total,
.total-price-display,
.total-amount,
.receipt-title {
    font-family: 'Lora', serif !important;
}

/* 5. COMPOSANTS UNIVERSELS */

/* Titres des pages */
.w-title {
    font-size: 18px !important;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin: 0;
}

/* Les Cartes Blanches (Panier, Livraison, etc.) */
.cart-item,
.w-card,
.receipt-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    display: block;
}

/* Design des items dans le panier */
.item-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    color: #222;
}

.item-details {
    font-size: 10px;
    opacity: 0.6;
    margin-bottom: 4px;
}

.item-calc {
    font-size: 10px;
    color: #555;
    font-weight: 600;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.item-total {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    margin-top: 5px;
    text-align: right;
}

.btn-back {
    width: 35px;
    height: 35px;
    background: var(--card-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-right: 15px;
    border: 1px solid var(--border-color);
}

/* Boutons d'action (Continuer, Payer...) */
.btn-go,
.btn-confirm,
.btn-pay {
    background: var(--primary);
    color: var(--on-primary);
    padding: 14px 25px;
    border-radius: 30px;
    border: none;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(177, 18, 38, 0.35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
}

/* Barre Fixe en bas (Pages de paiement) */
.bottom-bar,
.pay-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    padding: 15px 20px;
    padding-bottom: max(15px, env(safe-area-inset-bottom));
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

/* LE BOUTON VIDER */
.btn-clear {
    background: #e0e0e0;
    color: #333;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: 0.2s;
    white-space: nowrap;
}

.btn-clear:hover {
    background: #ccc;
}

/* Désactiver l'œil natif de Windows/Edge */
input::-ms-reveal,
input::-ms-clear {
    display: none !important;
}

/* ============================================================
   BARRE DE NAVIGATION (STYLE FLOTTANT NOIR - MISE À JOUR)
   ============================================================ */

.bottom-nav {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: #000000;
    padding: 0 5px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    height: 55px;
}

.nav-item {
    position: relative;
    list-style: none;
    width: 50px;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}

/* Icône inactive (Blanche et bien visible) */
.nav-item .icon {
    font-size: 24px;
    transition: 0.5s;
    color: #ffffff;
    opacity: 0.7;
}

/* Texte inactif (Caché en bas) */
.nav-item .text {
    position: absolute;
    color: white;
    font-weight: 700;
    font-size: 9px;
    opacity: 0;
    transform: translateY(15px);
    transition: 0.5s;
}

/* --- QUAND L'ONGLET EST ACTIF --- */

/* 1. L'icône remonte et devient une bulle blanche */
.nav-item.active .icon {
    transform: translateY(-25px);
    background: white;
    color: var(--primary);
    /* Prends la couleur du thème (Jaune/Rouge) */
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

/* 2. Le texte remonte et devient visible */
.nav-item.active .text {
    opacity: 1;
    transform: translateY(10px);
}

.wise-eta-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(22, 163, 74, 0.85);
    backdrop-filter: blur(4px);
    color: white;
    padding: 3px 7px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.2s;
}

.wise-eta-badge ion-icon {
    font-size: 11px;
}

.wise-eta-badge:hover {
    transform: translateY(-1px);
    background: #16a34a;
}

/* ============================================================
   WORKER ONLINE STATUS BADGES
   ============================================================ */

/* Container du statut */
.worker-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

/* Pulse dot - indicateur visuel */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* En ligne - vert avec animation pulse */
.pulse-dot.online {
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Récent - jaune/orange */
.pulse-dot.recent {
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
}

/* Aujourd'hui - gris */
.pulse-dot.today {
    background: #64748b;
}

/* Hors ligne - gris clair */
.pulse-dot.offline {
    background: #94a3b8;
}

/* Texte du statut */
.status-text {
    color: #1e293b;
    white-space: nowrap;
}

/* Variantes de couleur pour le texte */
.worker-status.online .status-text {
    color: #16a34a;
}

.worker-status.recent .status-text {
    color: #d97706;
}

.worker-status.today .status-text {
    color: #64748b;
}

.worker-status.offline .status-text {
    color: #94a3b8;
}

/* Badge de statut complet (dot + texte) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.status-badge.online {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.status-badge.recent {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-badge.today {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.status-badge.offline {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

/* ============================================================
   WORKER COMPARATOR STYLES
   Système de comparaison côte-à-côte des prestataires
   ============================================================ */

/* ── CHECKBOX SUR LES CARDS ── */
.compare-checkbox-wrapper {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 10;
}

.compare-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.95);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.compare-checkbox:hover {
    transform: scale(1.1);
    background: #fff;
}

.compare-checkbox.checked {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    border-color: #4f46e5;
}

.compare-checkbox.checked::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* ── BOUTON COMPARER SUR CARD ── */
.gc-compare-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 700;
    color: #4f46e5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.15s ease;
}

.gc-compare-btn:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-1px);
}

.gc-compare-btn.active {
    background: #4f46e5;
    color: white;
}

.gc-compare-btn svg {
    width: 12px;
    height: 12px;
}

/* ── MOBILE: Ajustements pour éviter le chevauchement ── */
@media (max-width: 480px) {
    .compare-checkbox-wrapper {
        top: 5px;
        left: 5px;
    }
    .compare-checkbox {
        width: 20px;
        height: 20px;
    }
    .gc-compare-btn {
        bottom: 6px;
        right: 6px;
        padding: 4px 6px;
        font-size: 9px;
        border-radius: 6px;
    }
    .gc-compare-btn svg {
        width: 10px;
        height: 10px;
    }
}

/* ── FLOATING ACTION BUTTON ── */
.comparison-fab {
    position: fixed;
    bottom: 90px;
    right: 16px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.comparison-fab.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #1A2B3C 0%, #243447 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26, 43, 60, 0.35);
    transition: all 0.2s ease;
}

.fab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(26, 43, 60, 0.45);
}

.fab-btn:active {
    transform: scale(0.96);
}

.fab-badge {
    background: #D4AF37;
    color: #1A2B3C;
    font-size: 11px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.fab-clear {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.1);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.15s ease;
}

.fab-clear:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ── MODAL DE COMPARAISON ── */
.comparison-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.comparison-modal.closing {
    animation: fadeOut 0.2s ease forwards;
}

.comparison-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.comparison-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 95vh;
    margin: 16px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 100px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.comparison-title h2 {
    margin: 0;
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1A2B3C;
    letter-spacing: -0.5px;
}

.comparison-subtitle {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

.comparison-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: rgba(0,0,0,0.05);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.comparison-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.comparison-body {
    flex: 1;
    overflow: auto;
    padding: 0;
}

/* ── TABLEAU COMPARATIF ── */
.comparison-table-container {
    overflow-x: auto;
    padding: 24px;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Inter', 'Poppins', sans-serif;
    min-width: 600px;
}

.comparison-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-row-header th {
    background: white;
    padding: 16px 12px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    vertical-align: top;
}

.comparison-label-cell {
    width: 160px;
    min-width: 160px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 12px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    vertical-align: middle;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-label-cell svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.comparison-worker-cell {
    min-width: 200px;
    background: white;
}

.comparison-worker-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 8px;
}

.comparison-worker-photo {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
}

.comparison-worker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
}

.comparison-verified {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #D4AF37 0%, #f0cc5a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 800;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.comparison-worker-info h3 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1A2B3C;
}

.comparison-category {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    background: rgba(79, 70, 229, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
}

.comparison-remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.05);
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.comparison-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ── CELLULES DU TABLEAU ── */
.comparison-row {
    border-bottom: 1px solid #e2e8f0;
}

.comparison-row:hover {
    background: rgba(241, 245, 249, 0.5);
}

.comparison-cell {
    padding: 16px 12px;
    text-align: center;
    vertical-align: middle;
    font-size: 13px;
    color: #334155;
    border-right: 1px solid rgba(226, 232, 240, 0.5);
}

.comparison-cell:last-child {
    border-right: none;
}

/* ── HIGHLIGHT MEILLEURES VALEURS ── */
.comparison-highlight {
    background: rgba(34, 197, 94, 0.08) !important;
    position: relative;
}

.comparison-highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #22c55e;
}

/* ── STYLES DES VALEURS ── */
.comparison-rating {
    font-size: 16px;
    font-weight: 800;
    color: #1A2B3C;
}

.comparison-reviews {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    margin-left: 4px;
}

.comparison-price {
    font-size: 16px;
    font-weight: 800;
    color: #D4AF37;
}

.comparison-unit {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.comparison-value {
    font-size: 14px;
    font-weight: 700;
    color: #1A2B3C;
}

.comparison-sub {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
    text-transform: lowercase;
}

.comparison-empty {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

.comparison-response {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.comparison-response.fast {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.comparison-response.slow {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.comparison-availability {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.comparison-availability.available {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.comparison-availability.unavailable {
    background: rgba(148, 163, 184, 0.12);
    color: #64748b;
}

.comparison-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #D4AF37 0%, #f0cc5a 100%);
    color: #1A2B3C;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.comparison-location {
    font-size: 12px;
    color: #64748b;
}

/* ── SKILLS ── */
.comparison-skills-cell {
    padding: 12px;
}

.comparison-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.comparison-skill {
    padding: 3px 8px;
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.comparison-skill-more {
    padding: 3px 8px;
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

/* ── PORTFOLIO ── */
.comparison-portfolio {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.comparison-portfolio img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.comparison-portfolio-more {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

/* ── ACTIONS ── */
.comparison-actions-row {
    background: #f8fafc;
}

.comparison-actions-row .comparison-label-cell {
    background: #f1f5f9;
}

.comparison-actions-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.comparison-btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.comparison-btn-profile {
    background: white;
    color: #1A2B3C;
    border: 1.5px solid #e2e8f0;
}

.comparison-btn-profile:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.comparison-btn-contact {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: white;
}

.comparison-btn-contact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* ── LOADING STATE ── */
.comparison-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    gap: 20px;
}

.comparison-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(79, 70, 229, 0.1);
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.comparison-loading p {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .comparison-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .comparison-table-container {
        padding: 16px;
    }
    
    .comparison-table {
        min-width: 500px;
    }
    
    .comparison-label-cell {
        width: 120px;
        min-width: 120px;
        font-size: 11px;
        padding: 12px 8px;
    }
    
    .comparison-worker-cell {
        min-width: 160px;
    }
    
    .comparison-worker-photo {
        width: 56px;
        height: 56px;
    }
    
    .comparison-worker-info h3 {
        font-size: 13px;
    }
    
    .comparison-cell {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .comparison-fab {
        bottom: 80px;
        right: 12px;
    }
    
    .fab-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .comparison-header {
        padding: 16px;
    }
    
    .comparison-title h2 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .comparison-table {
        min-width: 400px;
    }
    
    .comparison-worker-cell {
        min-width: 140px;
    }
    
    .comparison-portfolio img,
    .comparison-portfolio-more {
        width: 40px;
        height: 40px;
    }
}
