/* FILE: public/assets/css/compare.css */
/* Compare Feature — tray, toggle, toast, compare page grid, mobile */

/* ═══════════════════════════════════════════════════════════════════
   1. COMPARE TOGGLE BUTTON (on cards)
   ═══════════════════════════════════════════════════════════════════ */

.compare-toggle {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.45);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0;
    line-height: 1;
}
.compare-toggle:hover {
    background: rgba(59,130,246,0.7);
    border-color: rgba(59,130,246,0.8);
    transform: scale(1.1);
}
.compare-toggle.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}
.compare-toggle.active:hover {
    background: #ef4444;
    border-color: #ef4444;
}
.compare-toggle.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Keep compact-card position:relative for card-shine and other overlay elements */
.compact-card {
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════════
   2. COMPARE TRAY (global sticky bottom bar)
   ═══════════════════════════════════════════════════════════════════ */

.compare-tray {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(15,15,25,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 12px 20px;
    width: max-content;
    max-width: 94vw;
    transition: bottom 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.compare-tray.visible {
    bottom: 24px;
}
.compare-tray-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.compare-tray-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
}
.compare-tray-icon {
    font-size: 1.1rem;
    color: #3b82f6;
}
.compare-tray-count {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    min-width: 16px;
    text-align: center;
}
.compare-tray-actions {
    display: flex;
    gap: 8px;
}
.compare-tray-btn {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.compare-tray-view {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}
.compare-tray-view:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 12px rgba(59,130,246,0.35);
}
.compare-tray-view.disabled {
    opacity: 0.4;
    pointer-events: none;
}
.compare-tray-clear {
    background: rgba(255,255,255,0.08);
    color: #aaa;
}
.compare-tray-clear:hover {
    background: rgba(239,68,68,0.2);
    color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════════════
   3. COMPARE TOAST
   ═══════════════════════════════════════════════════════════════════ */

.compare-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15,15,25,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.compare-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════
   4. NAV COMPARE BADGE
   ═══════════════════════════════════════════════════════════════════ */

.nav-compare-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.compare-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #3b82f6;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   5. PROFILE PAGE COMPARE CTA
   ═══════════════════════════════════════════════════════════════════ */

.profile-compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 2px solid rgba(59,130,246,0.3);
    background: rgba(59,130,246,0.08);
    color: #3b82f6;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
}
.profile-compare-btn:hover {
    background: rgba(59,130,246,0.18);
    border-color: #3b82f6;
}
.profile-compare-btn.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}
.profile-compare-btn.active:hover {
    background: #ef4444;
    border-color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════════════
   6. COMPARE PAGE
   ═══════════════════════════════════════════════════════════════════ */

.compare-page {
    min-height: 70vh;
    padding-top: 120px;
    padding-bottom: 60px;
}
.compare-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}
.compare-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.compare-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.compare-header-count {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}
.compare-header-actions {
    display: flex;
    gap: 8px;
}
.compare-header-actions a,
.compare-header-actions button {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #ccc;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.compare-header-actions a:hover,
.compare-header-actions button:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Category warning banner */
.compare-cross-category-notice {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #f59e0b;
}
.compare-cross-category-notice i {
    font-size: 1rem;
}

/* COMPARE GRID */
.compare-grid {
    display: grid;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}
.compare-grid.cols-2 { grid-template-columns: 200px repeat(2, 1fr); }
.compare-grid.cols-3 { grid-template-columns: 200px repeat(3, 1fr); }
.compare-grid.cols-4 { grid-template-columns: 200px repeat(4, 1fr); }

/* Sticky header row */
.compare-row {
    display: contents;
}
.compare-cell {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.88rem;
    color: #e0e0e0;
    display: flex;
    align-items: center;
}
.compare-cell:first-child {
    background: rgba(255,255,255,0.03);
    color: #999;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile header cells */
.compare-profile-header {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    background: rgba(255,255,255,0.03);
    border-bottom: 2px solid rgba(255,255,255,0.08);
}
.compare-profile-header .cp-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}
.compare-profile-header .cp-initial {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--cp-c1, #3b82f6), var(--cp-c2, #2563eb));
}
.compare-profile-header .cp-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}
.compare-profile-header .cp-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #111;
    text-transform: uppercase;
}

/* Action row */
.compare-action-cell {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}
.compare-action-cell a,
.compare-action-cell button {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}
.cp-btn-profile {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
    border: 1px solid rgba(59,130,246,0.2) !important;
}
.cp-btn-profile:hover {
    background: rgba(59,130,246,0.3);
}
.cp-btn-call {
    background: rgba(16,185,129,0.12);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.2) !important;
}
.cp-btn-call:hover {
    background: rgba(16,185,129,0.25);
}
.cp-btn-web {
    background: rgba(139,92,246,0.12);
    color: #8b5cf6;
    border: 1px solid rgba(139,92,246,0.2) !important;
}
.cp-btn-web:hover {
    background: rgba(139,92,246,0.25);
}
.cp-btn-remove {
    background: rgba(239,68,68,0.08);
    color: #999;
    border: 1px solid rgba(255,255,255,0.06) !important;
}
.cp-btn-remove:hover {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

/* Compare empty state */
.compare-empty {
    text-align: center;
    padding: 80px 20px;
}
.compare-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}
.compare-empty h2 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 8px;
}
.compare-empty p {
    color: #888;
    font-size: 0.92rem;
    margin-bottom: 24px;
}
.compare-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.compare-empty-cta:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

/* ═══════════════════════════════════════════════════════════════════
   7. HOMEPAGE COMPARE CTA (pathway section)
   ═══════════════════════════════════════════════════════════════════ */

.compare-discovery-card {
    background: rgba(59,130,246,0.06);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-top: 32px;
}
.compare-discovery-card h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 6px;
}
.compare-discovery-card p {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 16px;
}
.compare-discovery-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.compare-discovery-cta:hover {
    filter: brightness(1.15);
}

/* ═══════════════════════════════════════════════════════════════════
   8. SUGGESTIONS / GOLDEN RAIL COMPARE TOGGLE
   ═══════════════════════════════════════════════════════════════════ */

.suggest-card,
.rail-card {
    position: relative;
}

.suggest-card .compare-toggle {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
    width: 28px;
    height: 28px;
    font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   9. MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .compare-tray {
        left: 8px;
        right: 8px;
        transform: none;
        width: auto;
        max-width: none;
        border-radius: 14px;
        padding: 10px 14px;
    }
    .compare-tray.visible {
        bottom: 16px;
    }
    .compare-tray-inner {
        gap: 10px;
    }
    .compare-tray-label {
        display: none;
    }
    .compare-tray-btn {
        padding: 7px 12px;
        font-size: 0.78rem;
    }
    .compare-toast {
        bottom: 90px;
        max-width: 85vw;
        font-size: 0.8rem;
    }

    /* Compare page mobile: row-based grid — each row is its own grid */
    .compare-grid {
        display: block;
        overflow: hidden;
    }
    /* Each row becomes a self-contained micro-grid */
    .compare-row {
        display: grid !important;
    }
    /* cols-2: 85px label + 2 equal provider columns */
    .compare-grid.cols-2 .compare-row {
        grid-template-columns: 85px 1fr 1fr;
    }
    /* cols-3: 75px label + 3 equal provider columns */
    .compare-grid.cols-3 .compare-row {
        grid-template-columns: 75px 1fr 1fr 1fr;
    }
    /* cols-4: no way around horizontal scroll with 4 providers on mobile */
    .compare-grid.cols-4 {
        display: grid;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        grid-template-columns: 80px repeat(4, minmax(110px, 1fr));
    }
    .compare-grid.cols-4 .compare-row {
        display: contents !important;
    }
    /* Compact padding & text across all cells */
    .compare-cell {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    .compare-cell:first-child {
        padding: 8px 6px;
        font-size: 0.68rem;
        letter-spacing: 0;
    }
    .compare-profile-header {
        padding: 16px 8px;
    }
    .compare-profile-header .cp-name {
        font-size: 0.85rem;
    }
    .compare-profile-header .cp-initial,
    .compare-profile-header .cp-logo {
        width: 44px;
        height: 44px;
    }
    .compare-action-cell {
        padding: 12px 8px;
    }
    .compare-action-cell a,
    .compare-action-cell button {
        font-size: 0.72rem;
        padding: 7px 8px;
    }
    .compare-header-actions a,
    .compare-header-actions button {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .compare-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .compare-toggle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .compare-page {
        padding-top: 80px;
    }
    .compare-grid.cols-2 .compare-row {
        grid-template-columns: 70px 1fr 1fr;
    }
    .compare-grid.cols-3 .compare-row {
        grid-template-columns: 62px 1fr 1fr 1fr;
    }
    .compare-cell {
        padding: 8px 5px;
        font-size: 0.76rem;
    }
    .compare-cell:first-child {
        font-size: 0.6rem;
        padding: 8px 4px;
    }
    .compare-profile-header {
        padding: 12px 5px;
    }
    .compare-profile-header .cp-name {
        font-size: 0.78rem;
    }
    .compare-profile-header .cp-initial,
    .compare-profile-header .cp-logo {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .compare-action-cell {
        padding: 10px 5px;
    }
    .compare-header h1 {
        font-size: 1.15rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   10. LIGHT MODE OVERRIDES
   ═══════════════════════════════════════════════════════════════════ */

.light-mode .compare-tray {
    background: rgba(255,255,255,0.95);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.light-mode .compare-tray-left { color: #444; }
.light-mode .compare-tray-count { color: #111; }
.light-mode .compare-tray-clear { color: #666; background: rgba(0,0,0,0.05); }
.light-mode .compare-tray-clear:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

.light-mode .compare-toast {
    background: rgba(255,255,255,0.95);
    color: #111;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.light-mode .compare-toggle {
    background: rgba(255,255,255,0.85);
    border-color: rgba(0,0,0,0.15);
    color: #444;
}
.light-mode .compare-toggle:hover {
    background: rgba(59,130,246,0.8);
    color: #fff;
}
.light-mode .compare-toggle.active {
    background: #3b82f6;
    color: #fff;
}

/* Header actions */
.light-mode .compare-header-actions a,
.light-mode .compare-header-actions button {
    border-color: rgba(0,0,0,0.12);
    background: rgba(0,0,0,0.04);
    color: #222;
}
.light-mode .compare-header-actions a:hover,
.light-mode .compare-header-actions button:hover {
    background: rgba(0,0,0,0.09);
    color: #000;
}

/* Description & tagline inline-color override */
.light-mode .compare-cell[style*="color:#ccc"],
.light-mode .compare-cell[style*="color: #ccc"] {
    color: #222 !important;
}
.light-mode .compare-cell[style*="color:#aaa"],
.light-mode .compare-cell[style*="color: #aaa"] {
    color: #444 !important;
}

/* Desc toggle button */
.light-mode .cp-desc-toggle {
    border-color: rgba(79,70,229,0.3);
    color: #4f46e5;
}
.light-mode .cp-desc-toggle:hover {
    background: rgba(79,70,229,0.08);
    color: #3730a3;
}

.light-mode .compare-cell { color: #333; }
.light-mode .compare-cell:first-child { color: #666; background: rgba(0,0,0,0.02); }
.light-mode .compare-profile-header .cp-name { color: #111; }
.light-mode .compare-grid { border-color: rgba(0,0,0,0.08); }
.light-mode .compare-cell { border-bottom-color: rgba(0,0,0,0.06); }
.light-mode .compare-header h1 { color: #111; }
.light-mode .compare-empty h2 { color: #111; }
.light-mode .compare-empty p { color: #666; }
.light-mode .compare-cross-category-notice {
    background: rgba(245,158,11,0.08);
    border-color: rgba(245,158,11,0.15);
}
.light-mode .profile-compare-btn {
    border-color: rgba(59,130,246,0.2);
    background: rgba(59,130,246,0.05);
}

/* ═══════════════════════════════════════════════════════════════════
   11. DESCRIPTION EXPAND / COLLAPSE
   ═══════════════════════════════════════════════════════════════════ */

/* Paragraph spacing inside the rendered description HTML */
.cp-desc-full p,
.compare-cell > p {
    margin: 0 0 0.6em;
}
.cp-desc-full p:last-child,
.compare-cell > p:last-child {
    margin-bottom: 0;
}
.cp-desc-full ul,
.cp-desc-full ol {
    margin: 0.3em 0 0.6em 1.2em;
    padding: 0;
}
.cp-desc-full li {
    margin-bottom: 0.2em;
}

.cp-desc-toggle {
    display: inline;
    margin-left: 5px;
    padding: 1px 7px;
    background: none;
    border: 1px solid rgba(99,102,241,0.4);
    border-radius: 4px;
    color: #a5b4fc;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    vertical-align: baseline;
}
.cp-desc-toggle:hover {
    background: rgba(99,102,241,0.15);
    color: #c7d2fe;
}

/* ═══════════════════════════════════════════════════════════════════
   12. PHONE PICKER MODAL
   ═══════════════════════════════════════════════════════════════════ */

.cp-phone-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cp-phone-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(3px);
}
.cp-phone-modal-box {
    position: relative;
    z-index: 1;
    background: #1a1a2e;
    border: 1px solid rgba(99,102,241,0.35);
    border-radius: 16px;
    padding: 28px 28px 24px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    text-align: center;
}
.cp-phone-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 8px;
}
.cp-phone-modal-number {
    font-size: 1.1rem;
    color: #10b981;
    font-weight: 600;
    margin: 0 0 20px;
    letter-spacing: 0.04em;
}
.cp-phone-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cp-phone-opt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.1s;
}
.cp-phone-opt:hover { opacity: 0.88; transform: translateY(-1px); }
.cp-phone-opt-call  { background: #10b981; color: #fff; }
.cp-phone-opt-wa    { background: #25d366; color: #fff; }
.cp-phone-opt-viber { background: #7360f2; color: #fff; }

.cp-phone-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s;
}
.cp-phone-modal-close:hover { color: #fff; }

/* cp-btn-call as button (no <a>) */
button.cp-btn-call {
    cursor: pointer;
    font-family: inherit;
}
.light-mode .compare-discovery-card {
    background: rgba(59,130,246,0.04);
    border-color: rgba(59,130,246,0.1);
}
.light-mode .compare-discovery-card h3 { color: #111; }

/* ═══════════════════════════════════════════════════════════════════
   13. SINGLE-PROFILE INTERACTIVE PICKER
   ═══════════════════════════════════════════════════════════════════ */

.compare-one-layout {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: start;
    gap: 0;
    padding: 48px 0 60px;
}

.co-selected-side,
.co-picker-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
}

/* ── Shared card base ── */
.co-selected-card,
.co-alt-card {
    width: 100%;
    max-width: 340px;
    background: rgba(20,20,40,0.75);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    padding: 28px 22px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 9px;
    position: relative;
    backdrop-filter: blur(6px);
}
.co-selected-card {
    border-color: rgba(99,102,241,0.35);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.18), 0 12px 40px rgba(0,0,0,0.35);
}

.co-selected-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 2px;
}

.co-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
}
.co-initial {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cp-c1, #4f46e5), var(--cp-c2, #7c3aed));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.co-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-top: 2px;
}
.co-badge {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251,191,36,0.12);
    border: 1px solid rgba(251,191,36,0.28);
    border-radius: 20px;
    padding: 2px 10px;
}
.co-service {
    font-size: 0.82rem;
    color: #94a3b8;
}
.co-city {
    font-size: 0.8rem;
    color: #64748b;
}
.co-city i { color: #6366f1; margin-right: 3px; }
.co-rating {
    font-size: 0.85rem;
    color: #fbbf24;
    font-weight: 600;
}
.co-rating-count {
    color: #64748b;
    font-weight: 400;
    font-size: 0.78rem;
}

.co-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
}
.co-btn-profile {
    padding: 7px 16px;
    background: rgba(99,102,241,0.13);
    border: 1px solid rgba(99,102,241,0.32);
    border-radius: 8px;
    color: #a5b4fc;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.15s;
}
.co-btn-profile:hover { background: rgba(99,102,241,0.26); color: #c7d2fe; }

.co-btn-remove {
    width: 32px;
    height: 32px;
    background: rgba(239,68,68,0.09);
    border: 1px solid rgba(239,68,68,0.22);
    border-radius: 8px;
    color: #f87171;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.15s;
}
.co-btn-remove:hover { background: rgba(239,68,68,0.2); }

/* ── VS divider ── */
.co-vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 110px;
}
.co-vs-divider span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(99,102,241,0.1);
    border: 2px solid rgba(99,102,241,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #818cf8;
}

/* ── Picker header ── */
.co-picker-header {
    text-align: center;
    margin-bottom: 18px;
}
.co-picker-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 5px;
}
.co-picker-header p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
}

/* ── Alt slider ── */
.co-alt-slider-wrap {
    width: 100%;
    max-width: 340px;
    min-height: 300px;
    position: relative;
}
.co-alt-card { display: none; }
.co-alt-card.active { display: flex; }

.co-alt-badge-prem {
    position: absolute;
    top: 14px;
    right: 14px;
}
.co-alt-add-btn {
    margin-top: 6px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: opacity 0.15s, transform 0.12s;
}
.co-alt-add-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.co-alt-add-btn:active { transform: translateY(0); }

/* ── Navigation ── */
.co-alt-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}
.co-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.22);
    color: #818cf8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.15s;
}
.co-nav-btn:hover { background: rgba(99,102,241,0.22); }
.co-nav-btn:active { transform: scale(0.92); }
.co-alt-counter {
    font-size: 0.82rem;
    color: #64748b;
    min-width: 46px;
    text-align: center;
}

/* ── No alternatives fallback ── */
.co-no-alts {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

/* ── Mobile ── */
@media (max-width: 720px) {
    .compare-one-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 32px 0 40px;
    }
    .co-vs-divider {
        flex-direction: row;
        padding-top: 0;
        padding: 12px 0;
        width: 100%;
        gap: 12px;
    }
    .co-vs-divider::before,
    .co-vs-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(99,102,241,0.18);
    }
}

/* ── Light mode overrides ── */
body.light-mode .co-selected-card,
body.light-mode .co-alt-card {
    background: rgba(255,255,255,0.9);
    border-color: rgba(99,102,241,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
body.light-mode .co-selected-card { border-color: rgba(99,102,241,0.4); }
body.light-mode .co-name { color: #1e293b; }
body.light-mode .co-selected-label { color: rgba(0,0,0,0.35); }
body.light-mode .co-picker-header h2 { color: #1e293b; }
body.light-mode .co-vs-divider span { background: rgba(99,102,241,0.08); color: #4f46e5; }
