﻿/* ============================================
   LoveConnect Dating Components v1.8.0
   Modern Dating App UI with Theme Support
   Cards, Chat, Discovery, Profile Components
   ============================================ */

/* --- Discovery Grid --- */
.lc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--lc-space-4);
}

@media (min-width: 480px) { .lc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .lc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .lc-grid { grid-template-columns: repeat(3, 1fr); gap: var(--lc-space-6); } }

.lc-card {
    position: relative;
    background: var(--lc-card-bg);
    border-radius: var(--lc-card-radius);
    box-shadow: var(--lc-shadow-card);
    overflow: hidden;
    transition: transform var(--lc-transition-base) var(--lc-ease-in-out), box-shadow var(--lc-transition-base) var(--lc-ease-in-out);
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.lc-card:active { transform: scale(0.98); }

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

.lc-card-img-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--lc-brand-primary-light);
}

.lc-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--lc-transition-slow) var(--lc-ease-in-out);
}

.lc-card:hover .lc-card-img { transform: scale(1.03); }

.lc-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: var(--lc-space-8) var(--lc-space-4) var(--lc-space-4);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lc-card-name {
    font-size: var(--lc-font-size-lg);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--lc-space-1);
}

.lc-card-age {
    font-weight: 400;
    opacity: 0.9;
}

.lc-card-verified {
    width: 18px;
    height: 18px;
    background: var(--lc-info);
    border-radius: var(--lc-radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lc-card-verified svg { width: 12px; height: 12px; stroke: white; }

.lc-card-location {
    font-size: var(--lc-font-size-sm);
    opacity: 0.85;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lc-card-distance {
    background: var(--lc-card-name-bg);
    padding: 2px 8px;
    border-radius: var(--lc-radius-full);
    font-size: var(--lc-font-size-xs);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lc-card-body {
    padding: var(--lc-space-4);
}

.lc-card-bio {
    color: var(--lc-text-secondary);
    font-size: var(--lc-font-size-sm);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lc-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lc-space-1);
    margin-top: var(--lc-space-2);
}

.lc-tag {
    padding: 4px 10px;
    background: var(--lc-brand-primary-light);
    color: var(--lc-brand-primary);
    border-radius: var(--lc-radius-full);
    font-size: var(--lc-font-size-xs);
    font-weight: 600;
}

/* --- Card Actions (Like / Pass / Super Like) --- */
.lc-card-actions {
    display: flex;
    justify-content: center;
    gap: var(--lc-space-4);
    padding: var(--lc-space-2) var(--lc-space-4) var(--lc-space-4);
}

.lc-action-btn {
    width: 52px;
    height: 52px;
    border-radius: var(--lc-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all var(--lc-transition-base) var(--lc-ease-out);
    box-shadow: var(--lc-shadow-md);
    -webkit-tap-highlight-color: transparent;
}

.lc-action-btn:active { transform: scale(0.85); }
.lc-action-btn svg { width: 24px; height: 24px; }

.lc-action-pass { background: var(--lc-bg-secondary); color: var(--lc-error); border: 2px solid var(--lc-error); opacity: 0.2; }
.lc-action-pass:hover { background: var(--lc-error); opacity: 0.1; }

.lc-action-like { background: var(--lc-brand-gradient); color: var(--lc-text-inverse); width: 64px; height: 64px; }
.lc-action-like:hover { box-shadow: var(--lc-shadow-primary); transform: scale(1.05); }
.lc-action-like svg { width: 28px; height: 28px; }

.lc-action-super { background: var(--lc-bg-secondary); color: var(--lc-info); border: 2px solid var(--lc-info); opacity: 0.2; }
.lc-action-super:hover { background: var(--lc-info); opacity: 0.1; }

/* --- Chat List --- */
.lc-chat-list { list-style: none; }

.lc-chat-item {
    display: flex;
    align-items: center;
    gap: var(--lc-space-4);
    padding: var(--lc-space-4);
    border-bottom: 1px solid var(--lc-border-light);
    transition: background var(--lc-transition-base) var(--lc-ease-in-out);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.lc-chat-item:active { background: var(--lc-border-light); }
@media (hover: hover) { .lc-chat-item:hover { background: var(--lc-border-light); } }

.lc-chat-item-avatar { position: relative; }

.lc-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    background: var(--lc-success);
    border-radius: var(--lc-radius-full);
    border: 2px solid var(--lc-surface);
}

.lc-chat-item-content {
    flex: 1;
    min-width: 0;
}

.lc-chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.lc-chat-item-name {
    font-weight: 600;
    font-size: var(--lc-font-size-base);
    color: var(--lc-text-primary);
}

.lc-chat-item-time {
    font-size: var(--lc-font-size-xs);
    color: var(--lc-text-tertiary);
    flex-shrink: 0;
}

.lc-chat-item-preview {
    font-size: var(--lc-font-size-sm);
    color: var(--lc-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-chat-item-unread .lc-chat-item-name { color: var(--lc-text-primary); }
.lc-chat-item-unread .lc-chat-item-preview { color: var(--lc-text-primary); font-weight: 600; }

.lc-chat-unread-count {
    min-width: 20px;
    height: 20px;
    background: var(--lc-brand-primary);
    color: white;
    border-radius: var(--lc-radius-full);
    font-size: var(--lc-font-size-xs);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
}

/* --- Chat Messages --- */
.lc-messages {
    display: flex;
    flex-direction: column;
    gap: var(--lc-space-1);
    padding: var(--lc-space-4);
}

.lc-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: var(--lc-font-size-base);
    word-wrap: break-word;
    animation: lc-bubble-in 0.2s var(--lc-ease-in-out);
}

@keyframes lc-bubble-in {
    from { opacity: 0; transform: translateY(8px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.lc-bubble-sent {
    background: var(--lc-chat-sent);
    color: var(--lc-chat-sent-text);
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

.lc-bubble-received {
    background: var(--lc-chat-received);
    color: var(--lc-chat-received-text);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    border: 1px solid var(--lc-border-light);
}

.lc-bubble-time {
    font-size: var(--lc-font-size-xs);
    color: var(--lc-text-tertiary);
    margin-top: 2px;
}

.lc-bubble-sent .lc-bubble-time { color: rgba(255, 255, 255, 0.7); text-align: right; }

/* Chat input */
.lc-chat-input-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--lc-bg-secondary);
    border-top: 1px solid var(--lc-border-light);
    padding: var(--lc-space-2) var(--lc-space-4);
    padding-bottom: max(var(--lc-space-2), var(--lc-safe-area-bottom));
    display: flex;
    align-items: flex-end;
    gap: var(--lc-space-2);
    z-index: var(--lc-z-sticky);
}

.lc-chat-input {
    flex: 1;
    padding: 10px 16px;
    background: var(--lc-bg-tertiary);
    border: 2px solid var(--lc-border);
    border-radius: 24px;
    font-size: var(--lc-font-size-base);
    max-height: 120px;
    resize: none;
    color: var(--lc-text-primary);
    min-height: 44px;
}

.lc-chat-input:focus { border-color: var(--lc-brand-primary); }

.lc-chat-send {
    width: 44px;
    height: 44px;
    border-radius: var(--lc-radius-full);
    background: var(--lc-brand-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
    transition: transform var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-chat-send:active { transform: scale(0.9); }
.lc-chat-send svg { width: 20px; height: 20px; }

/* --- Profile Detail --- */
.lc-profile-hero {
    position: relative;
    border-radius: var(--lc-radius-lg);
    overflow: visible;
    margin-bottom: var(--lc-space-6);
}

.lc-profile-hero-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    max-height: 400px;
}

.lc-profile-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--lc-space-16) var(--lc-space-6) var(--lc-space-6);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lc-profile-name {
    font-size: var(--lc-font-size-2xl);
    font-weight: 800;
    margin: 0;
}

.lc-pronouns {
    font-size: 0.9rem;
    color: var(--lc-text-secondary);
    font-weight: 400;
}

/* Profile action overlay buttons (heart + message on profile photo) */
/* ISS-011: Hide like/heart button on discovery cards */
.lc-profile-actions,
.lc-profile-card .lc-like-btn {
    display: none !important;
}

.lc-profile-actions-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}
.lc-profile-actions-overlay .lc-action-btn {
    pointer-events: auto;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
    flex: 0 0 36px !important;
    gap: 0;
    font-weight: normal;
    color: inherit;
}
.lc-profile-actions-overlay .lc-action-btn:hover { transform: scale(1.15); }
.lc-profile-actions-overlay .lc-action-btn:active { transform: scale(0.9); }
.lc-profile-actions-overlay .lc-action-btn svg { width: 18px; height: 18px; }
.lc-profile-actions-overlay .lc-like-action svg { fill: none; stroke: #6B7280; stroke-width: 2; }
.lc-profile-actions-overlay .lc-like-action.lc-liked svg { fill: #EF4444; stroke: #EF4444; }
.lc-profile-actions-overlay .lc-message-action svg { fill: none; stroke: #6B7280; stroke-width: 2; }
.lc-profile-actions-overlay .lc-message-action.lc-has-unread svg { stroke: #EF4444; fill: #EF4444; }
[data-theme="night"] .lc-profile-actions-overlay .lc-action-btn { background: rgba(30,30,30,0.9); }
[data-theme="night"] .lc-profile-actions-overlay .lc-like-action svg { stroke: #D1D5DB; }
[data-theme="night"] .lc-profile-actions-overlay .lc-message-action svg { stroke: #D1D5DB; }
.lc-profile-hero { position: relative; }

.lc-like-btn.lc-liked .lc-icon-heart { color: #EF4444; }
.lc-like-btn.lc-liked { background: rgba(239,68,68,0.1); }
.lc-suggested-card { position: relative; }
.lc-suggested-heart { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.85); display: flex; align-items: center; justify-content: center; }
.lc-suggested-heart.lc-liked svg { fill: #EF4444; stroke: #EF4444; }

.lc-profile-section {
    background: linear-gradient(135deg, #6A1B4D 0%, #A0306A 50%, #E91E63 100%);
    color: #fff;
    border-radius: var(--lc-radius-lg);
    padding: var(--lc-space-6);
    margin-bottom: var(--lc-space-4);
    box-shadow: 0 4px 15px rgba(106, 27, 77, 0.3);
    border: none;
}

.lc-profile-section h3 {
    font-size: var(--lc-font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--lc-space-2);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

[data-theme="night"] .lc-profile-section {
    background: linear-gradient(135deg, #4A0E35 0%, #7B1F50 50%, #C2185B 100%);
    box-shadow: 0 4px 15px rgba(74, 14, 53, 0.5);
}

/* Force ALL text inside profile sections to white (W-FIX-319) */
.lc-profile-section,
.lc-profile-section p,
.lc-profile-section span,
.lc-profile-section a,
.lc-profile-section .lc-profile-bio,
.lc-profile-section .lc-desires-count,
.lc-profile-section .lc-desires-category h4,
.lc-profile-section .lc-empty-state,
.lc-profile-section .lc-empty-state p {
    color: #fff;
}
.lc-profile-section a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.lc-profile-section a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Seeking tags in profile view — brand pink, NOT violet (W-FIX-319) */
.lc-profile-section .lc-desires-tags .lc-tag.selected {
    background: #E91E63;
    border-color: #C2185B;
    box-shadow: 0 4px 0 #AD1457, 0 4px 8px rgba(233, 30, 99, 0.25);
}
.lc-profile-section .lc-desires-tags .lc-tag.selected:hover {
    background: #D81B60;
    border-color: #AD1457;
}
[data-theme="night"] .lc-profile-section .lc-desires-tags .lc-tag.selected {
    background: #E91E63;
    border-color: #C2185B;
    box-shadow: 0 4px 0 #880E4F, 0 4px 8px rgba(233, 30, 99, 0.3);
}
.lc-profile-section .lc-btn-secondary {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}
.lc-profile-section .lc-btn-secondary:hover {
    background: rgba(255,255,255,0.35);
    color: #fff;
}

/* Section header with inline edit link (W-FIX-322H) */
.lc-section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.lc-section-edit-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s;
}
.lc-section-edit-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
[data-theme="night"] .lc-profile-section .lc-btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

/* --- Match animation --- */
.lc-match-overlay {
    position: fixed;
    inset: 0;
    background: var(--lc-bg-overlay);
    z-index: var(--lc-z-modal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--lc-space-6);
    color: white;
    animation: lc-fade-in 0.3s var(--lc-ease-in-out);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lc-match-title {
    font-size: var(--lc-font-size-3xl);
    font-weight: 800;
    background: var(--lc-brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lc-match-pop 0.5s var(--lc-ease-out);
}

@keyframes lc-match-pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Mobile-specific enhancements --- */
@media (max-width: 767px) {
    .lc-grid {
        grid-template-columns: 1fr;
        gap: var(--lc-space-3);
    }

    .lc-card-overlay {
        padding: var(--lc-space-6) var(--lc-space-3) var(--lc-space-3);
    }

    .lc-card-actions {
        gap: var(--lc-space-3);
        padding: var(--lc-space-2) var(--lc-space-3) var(--lc-space-3);
    }

    .lc-action-btn {
        width: 48px;
        height: 48px;
    }

    .lc-action-like {
        width: 56px;
        height: 56px;
    }
}

/* --- Desktop enhancements --- */
@media (min-width: 1024px) {
    .lc-card:hover .lc-card-overlay {
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    }

    .lc-profile-hero-overlay {
        padding: var(--lc-space-16) var(--lc-space-8) var(--lc-space-8);
    }

    .lc-profile-section {
        padding: var(--lc-space-8);
    }
}

/* --- Theme-specific adjustments --- */
[data-theme="night"] .lc-card-overlay,
[data-theme="night"] .lc-profile-hero-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

[data-theme="night"] .lc-match-overlay {
    background: rgba(13, 13, 26, 0.95);
}

@keyframes lc-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   LoveConnect Discovery Cards — Mockup Match
   ============================================

   ISTRUZIONI PER FADEGE:

   In dating.css, CERCA e CANCELLA tutte le regole per queste classi:
     .lc-discovery-page
     .lc-discovery-header
     .lc-discovery-label
     .lc-discovery-title  (la seconda copia, riga ~582)
     .lc-discovery-count / .lc-results-count
     .lc-filter-bar       (la seconda copia, riga ~593)
     .lc-filter-tab
     .lc-filter-tab--active
     .lc-filter-panel
     .lc-filter-panel--collapsed
     .lc-cards-grid       (e TUTTE le sue @media)
     .lc-profile-card
     .lc-profile-card:hover
     .lc-card-link
     .lc-card-photo
     .lc-card-img / .lc-card-image
     .lc-card-info
     .lc-card-name (dentro .lc-card-info)
     .lc-card-details
     .lc-like-btn
     .lc-like-btn:hover
     .lc-profile-info
     .lc-profile-name (dentro card, NON quello del profilo page)
     .lc-profile-meta (dentro card)
     .lc-profile-actions
     .lc-card-heart
     .lc-view-toggle / .lc-view-btn
     .lc-load-more-container

   POI incolla TUTTO il contenuto qui sotto al loro posto.

   Le regole per .lc-card (vecchio sistema), .lc-card-overlay,
   .lc-grid etc. puoi lasciarle — non interferiscono perché
   le card discovery usano .lc-profile-card.
   ============================================ */


/* ═══════════════════════════════════════
   1. DISCOVERY PAGE LAYOUT
   ═══════════════════════════════════════ */

.lc-discovery-page {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
    box-sizing: border-box;
}

/* Override del container .lc-main quando contiene la discovery page */
.lc-main:has(.lc-discovery-page) {
    max-width: 100%;
}

@media (max-width: 600px) {
    .lc-discovery-page {
        padding: 16px 12px;
    }
}


/* ═══════════════════════════════════════
   2. HEADER (Discovery + title + count)
   ═══════════════════════════════════════ */

.lc-discovery-header {
    margin-bottom: 20px;
}

.lc-discovery-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--lc-brand-primary, #E91E63);
    margin-bottom: 6px;
}

.lc-discovery-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--lc-body-text);
    margin: 0 0 6px 0;
    line-height: 1.15;
    /* Non sticky, non centrato — allineato a sinistra come mockup */
    position: static;
    background: none;
    padding: 0;
    text-align: left;
}

.lc-results-count,
.lc-discovery-count {
    color: var(--lc-text-secondary, #6B7280);
    font-size: 0.9rem;
}

.lc-completion-banner {
    background: var(--lc-brand-primary-light);
    border: 1px solid var(--lc-brand-primary);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lc-completion-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.lc-completion-title {
    font-weight: 700;
    color: var(--lc-brand-primary);
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.lc-completion-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--lc-text-secondary);
}

.lc-completion-list a {
    color: var(--lc-brand-primary);
    font-weight: 600;
    text-decoration: none;
}

.lc-completion-list a:hover {
    text-decoration: underline;
}


/* ═══════════════════════════════════════
   3. TOOLBAR ROW (filters left, view toggle right)
   ═══════════════════════════════════════ */

.lc-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lc-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    position: static;
    background: none;
    border-bottom: none;
    z-index: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.lc-filter-tab {
    padding: 8px 22px;
    border: 1.5px solid var(--lc-border, #E5E7EB);
    border-radius: 50px;
    background: transparent;
    color: var(--lc-text-secondary, #6B7280);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.lc-filter-tab--active {
    background: var(--lc-primary);
    color: var(--lc-card-bg);
    border-color: var(--lc-primary);
}

.lc-filter-tab:hover:not(.lc-filter-tab--active) {
    border-color: var(--lc-primary);
    color: var(--lc-primary);
}


/* ═══════════════════════════════════════
   4. FILTER PANEL (collassabile)
   ═══════════════════════════════════════ */

.lc-filter-panel {
    background: var(--lc-card-bg);
    border-radius: 12px;
    padding: 24px;
    padding-bottom: 32px;
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: block;
    max-height: 80vh;
    overflow-y: auto;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 1;
}

.lc-filter-panel .lc-filter-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.lc-filter-panel--collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    border-color: transparent;
}

.lc-filter-actions {
    text-align: center;
    padding-top: 8px;
    grid-column: 1 / -1;
}

/* Tablet: 2 colonne orizzontali */
@media (min-width: 768px) {
    .lc-filter-panel .lc-filter-form {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Desktop: 3 colonne orizzontali */
@media (min-width: 1024px) {
    .lc-filter-panel .lc-filter-form {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

/* Desktop large: 5 colonne orizzontali (tutti i filtri in una riga) */
@media (min-width: 1280px) {
    .lc-filter-panel .lc-filter-form {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
}

/* --- Discovery Night Mode Overrides (W-FIX-307) --- */
[data-theme="night"] .lc-filter-panel {
    background: var(--lc-card-bg);
    border-color: var(--lc-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="night"] .lc-filter-group label:first-child {
    color: var(--lc-text-primary);
}

[data-theme="night"] .lc-checkbox-label {
    color: var(--lc-text-secondary);
}

[data-theme="night"] .lc-checkbox-label:hover {
    color: var(--lc-text-primary);
}

[data-theme="night"] .lc-checkbox-custom {
    border-color: var(--lc-border);
}

[data-theme="night"] .lc-distance-select {
    background: var(--lc-bg-tertiary);
    border-color: var(--lc-border);
    color: var(--lc-text-primary);
}

[data-theme="night"] .lc-completion-banner {
    background: var(--lc-brand-primary-light);
    border-color: var(--lc-brand-primary);
}

/* Filter group: ogni gruppo di filtri */
.lc-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lc-filter-group label:first-child {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--lc-body-text);
    margin-bottom: 4px;
}

/* Checkbox group: layout verticale compatto */
.lc-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--lc-text-secondary, #6B7280);
    cursor: pointer;
    padding: 4px 0;
}

.lc-checkbox-label:hover {
    color: var(--lc-body-text);
}

.lc-checkbox-custom {
    width: 16px;
    height: 16px;
    border: 2px solid var(--lc-border, #E5E7EB);
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
}

.lc-filter-checkbox:checked + .lc-checkbox-custom {
    background: var(--lc-brand-primary);
    border-color: var(--lc-brand-primary);
}

.lc-filter-checkbox:checked + .lc-checkbox-custom::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    margin: 1px auto 0;
    background: white;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.lc-filter-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Distance select */
.lc-distance-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--lc-border, #E5E7EB);
    background: var(--lc-card-bg);
    color: var(--lc-body-text);
    font-size: 0.85rem;
    width: 100%;
    cursor: pointer;
}


/* ═══════════════════════════════════════
   5. VIEW TOGGLE (right side of toolbar)
   ═══════════════════════════════════════ */

.lc-view-toggle {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin: 0;
}

.lc-view-btn {
    padding: 7px 18px;
    border: 1.5px solid var(--lc-border, #E5E7EB);
    border-radius: 50px;
    background: transparent;
    color: var(--lc-text-secondary, #6B7280);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.lc-view-btn-active,
.lc-view-btn:hover {
    background: var(--lc-dark);
    color: var(--lc-card-bg);
    border-color: var(--lc-dark);
}

/* Mobile: stack toolbar vertically */
@media (max-width: 600px) {
    .lc-toolbar-row {
        flex-direction: column;
        align-items: stretch;
    }
    .lc-view-toggle {
        align-self: flex-end;
    }
}


/* ═══════════════════════════════════════
   6. UNIVERSAL RESPONSIVE CARD GRID
   Used by: Discovery, Dashboard, Likes, Profile
   Breakpoints: 1/2/2/3/5 columns at 0/480/768/1024/1280px
   ═══════════════════════════════════════ */

.lc-responsive-grid,
.lc-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

@media (min-width: 480px) {
    .lc-responsive-grid,
    .lc-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .lc-responsive-grid,
    .lc-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .lc-responsive-grid,
    .lc-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1280px) {
    .lc-responsive-grid,
    .lc-cards-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
}

@media (max-width: 479px) {
    .lc-responsive-grid,
    .lc-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* Full-width page layout — remove max-width cap */
.lc-fullwidth-page {
    width: 100%;
    max-width: 100%;
    padding: 24px;
    box-sizing: border-box;
}

.lc-main:has(.lc-fullwidth-page) {
    max-width: 100%;
}

@media (max-width: 600px) {
    .lc-fullwidth-page {
        padding: 16px 12px;
    }
}

/* Cap width on very large screens — exclude map view */
@media (min-width: 1440px) {
    .lc-fullwidth-page {
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
    }
    /* Map must remain truly full-width */
    .lc-fullwidth-page:has(> .lc-map-container) {
        max-width: 100%;
    }
}


/* ═══════════════════════════════════════
   7. PROFILE CARD — Struttura base
   ═══════════════════════════════════════ */

.lc-profile-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--lc-bg-tertiary, #F0F1F6);
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Hover: leggero lift + ombra più pronunciata. NIENTE blur/darken */
@media (hover: hover) {
    .lc-profile-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }
}

/* Touch: leggero scale down */
.lc-profile-card:active {
    transform: scale(0.98);
}


/* ═══════════════════════════════════════
   8. CARD LINK (avvolge tutto)
   ═══════════════════════════════════════ */

.lc-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}


/* ═══════════════════════════════════════
   9. CARD IMAGE
   ═══════════════════════════════════════ */

.lc-card-img,
.lc-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ═══════════════════════════════════════
   10. CARD INFO — Frosted Glass Pill
   ═══════════════════════════════════════

   Questo è il cuore del design.
   Pillola arrotondata con sfondo bianco semi-trasparente
   e backdrop-filter blur, posizionata in basso con margine.
   ═══════════════════════════════════════ */

.lc-card-info {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    /* Ombra morbida sulla pillola */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    /* Reset: no gradient, no full-width bar */
    color: inherit;
}

/* Night mode: pillola scura */
[data-theme="night"] .lc-card-info {
    background: rgba(26, 26, 46, 0.82);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}


/* ═══════════════════════════════════════
   11. CARD TEXT — Nome, età, città
   ═══════════════════════════════════════ */

/* Il contenitore di testo (div dentro .lc-card-info) */
.lc-card-info > div:first-child {
    flex: 1;
    min-width: 0;   /* permette text-overflow */
}

/* Nome — h3.lc-profile-name dentro la pillola */
.lc-card-info .lc-profile-name,
.lc-card-info .lc-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--lc-body-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Reset: no text-shadow, no white color */
    text-shadow: none;
}

[data-theme="night"] .lc-card-info .lc-profile-name,
[data-theme="night"] .lc-card-info .lc-card-name {
    color: var(--lc-text-primary, #F0F0F5);
}

/* Meta info: età + città */
.lc-card-info .lc-profile-meta,
.lc-card-info .lc-card-details {
    font-size: 0.95rem;
    color: var(--lc-text-secondary, #6B7280);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Meta separator handled by JS (parts.join ' ◦ ') — no CSS pseudo needed */

[data-theme="night"] .lc-card-info .lc-profile-meta,
[data-theme="night"] .lc-card-info .lc-card-details {
    color: var(--lc-text-secondary, #9CA3AF);
}


/* ═══════════════════════════════════════
   12. LIKE BUTTON — Cerchio nella pillola
   ═══════════════════════════════════════ */

.lc-like-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--lc-text-tertiary, #9CA3AF);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    padding: 0;
}

.lc-like-btn:hover {
    background: var(--lc-primary);
    color: var(--lc-card-bg);
    transform: scale(1.1);
}

.lc-like-btn:active {
    transform: scale(0.9);
}

/* Icona cuore dentro il bottone */
.lc-like-btn .lc-icon,
.lc-like-btn .lc-icon-heart {
    font-size: 0.95rem;
    line-height: 1;
}

/* Stato liked */
.lc-like-btn[data-liked="true"] {
    background: var(--lc-primary);
    color: var(--lc-card-bg);
}

[data-theme="night"] .lc-like-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--lc-text-tertiary, #6B7280);
}

[data-theme="night"] .lc-like-btn:hover {
    background: var(--lc-brand-primary, #FF4081);
    color: #fff;
}


/* ═══════════════════════════════════════
   13. LOAD MORE BUTTON
   ═══════════════════════════════════════ */

.lc-load-more-container {
    text-align: center;
    padding: 32px 0 16px;
}

.lc-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--lc-brand-primary, #E91E63);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(233, 30, 99, 0.25);
}

.lc-load-more:hover {
    background: var(--lc-primary-hover);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.35);
    transform: translateY(-1px);
}

.lc-load-more:active {
    transform: scale(0.97);
}


/* ═══════════════════════════════════════
   14. LOADING SPINNER
   ═══════════════════════════════════════ */

.lc-loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 16px;
    color: var(--lc-text-secondary, #6B7280);
}

.lc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--lc-border, #E5E7EB);
    border-top-color: var(--lc-primary);
    border-radius: 50%;
    animation: lc-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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


/* ═══════════════════════════════════════
   15. NO RESULTS
   ═══════════════════════════════════════ */

.lc-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 16px;
}

.lc-no-results-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.lc-no-results h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lc-body-text);
    margin-bottom: 8px;
}

.lc-no-results p {
    color: var(--lc-text-secondary, #6B7280);
    font-size: 0.9rem;
    margin-bottom: 16px;
}


/* ═══════════════════════════════════════
   16. MAP CONTAINER
   ═══════════════════════════════════════ */

.lc-map-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px);
    max-height: 600px;
}

.lc-discovery-map {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.lc-map-controls {
    position: absolute;
    bottom: 80px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 1000;
}

.lc-map-controls .lc-btn {
    background: var(--lc-card-bg);
    border: 1px solid var(--lc-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

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


/* ═══════════════════════════════════════
   17. RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════ */

/* Mobile: cards più compatte */
@media (max-width: 479px) {
    .lc-profile-card {
        border-radius: 12px;
    }

    .lc-card-info {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 10px 12px;
        border-radius: 14px;
    }

    .lc-card-info .lc-profile-name,
    .lc-card-info .lc-card-name {
        font-size: 0.88rem;
    }

    .lc-like-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}

/* Desktop largo: card più grandi con info più spaziosa */
@media (min-width: 1280px) {
    .lc-card-info {
        padding: 14px 18px;
    }

    .lc-card-info .lc-profile-name,
    .lc-card-info .lc-card-name {
        font-size: 1rem;
    }
}


/* ═══════════════════════════════════════
   18. RESET / OVERRIDE sicurezza
   ═══════════════════════════════════════
   Queste regole annullano eventuali regole
   residue dal vecchio CSS che interferiscono.
   ═══════════════════════════════════════ */

/* Annulla il vecchio .lc-profile-info (gradient bar) se presente */
.lc-profile-card .lc-profile-info {
    display: none;
}

/* Annulla il vecchio .lc-profile-actions se presente */
.lc-profile-card .lc-profile-actions {
    display: none;
}

/* Annulla il vecchio .lc-card-heart se presente */
.lc-profile-card .lc-card-heart {
    display: none;
}

/* Il .lc-profile-name dentro .lc-card-info NON deve ereditare
   le regole del profilo page (font-size 1.5rem, white, text-shadow) */
.lc-card-info .lc-profile-name {
    font-size: 0.95rem !important;
    color: var(--lc-text-primary, #1A1A2E) !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

[data-theme="night"] .lc-card-info .lc-profile-name {
    color: var(--lc-text-primary, #F0F0F5) !important;
}

/* ============================================
   W-FIX-154d: Profile + UserProfile + Settings + Desires
   ============================================ */

/* --- Profile Page (Own Profile) --- */
.lc-profile {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--lc-space-4);
}

.lc-profile-header {
    text-align: center;
    margin-bottom: var(--lc-space-6);
}

.lc-profile-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: var(--lc-space-4);
}

.lc-profile-avatar img {
    width: 200px;
    height: 200px;
    border-radius: var(--lc-radius-full);
    object-fit: cover;
    border: 3px solid var(--lc-brand-primary);
}

.lc-camera-overlay {
    position: absolute;
    bottom: var(--lc-space-2);
    right: var(--lc-space-2);
    width: 36px;
    height: 36px;
    border-radius: var(--lc-radius-full);
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--lc-shadow-md);
    transition: transform var(--lc-transition-base) var(--lc-ease-out);
}

.lc-camera-overlay:hover {
    transform: scale(1.1);
}

.lc-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--lc-space-3);
    margin-bottom: var(--lc-space-6);
}

.lc-photo-slot {
    aspect-ratio: 1 / 1;
    border-radius: var(--lc-radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--lc-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform var(--lc-transition-base) var(--lc-ease-out);
}

.lc-photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lc-photo-empty {
    border: 2px dashed var(--lc-border);
    color: var(--lc-text-tertiary);
}

.lc-photo-empty:hover {
    transform: scale(1.02);
    border-color: var(--lc-brand-primary);
    color: var(--lc-brand-primary);
}

.lc-info-section {
    padding: var(--lc-space-5);
}

.lc-info-section h1 {
    font-size: var(--lc-font-size-2xl);
    font-weight: 700;
    color: var(--lc-text-primary);
    margin: 0 0 var(--lc-space-2) 0;
    text-align: center;
}

.lc-profile-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--lc-space-3);
    margin-bottom: var(--lc-space-4);
    color: var(--lc-text-secondary);
}

.lc-location {
    display: flex;
    align-items: center;
    gap: var(--lc-space-1);
}

.lc-distance {
    background: var(--lc-bg-tertiary);
    padding: 2px 8px;
    border-radius: var(--lc-radius-full);
    font-size: var(--lc-font-size-xs);
    margin-left: var(--lc-space-1);
}

.lc-bio {
    color: var(--lc-text-primary);
    margin: var(--lc-space-3) 0;
    line-height: 1.6;
    text-align: center;
}

.lc-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lc-space-2);
    justify-content: center;
    margin: var(--lc-space-4) 0;
}

.lc-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--lc-font-size-xs);
    font-weight: 500;
}

.lc-badge--gender {
    background: var(--lc-brand-primary-light);
    color: var(--lc-brand-primary);
}

.lc-badge--orientation {
    background: var(--lc-brand-primary-light);
    color: var(--lc-brand-primary);
}

.lc-badge--pronouns {
    background: var(--lc-bg-tertiary);
    color: var(--lc-text-secondary);
}

.lc-desires-section {
    margin: var(--lc-space-6) 0;
}

.lc-desires-section h3 {
    font-weight: 600;
    margin-bottom: var(--lc-space-3);
    color: var(--lc-text-primary);
}

.lc-desires-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lc-space-2);
}

.lc-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: var(--lc-font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--lc-transition-base) var(--lc-ease-in-out);
    border: none;
    text-decoration: none;
    display: inline-block;
}

.lc-chip--selected {
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
}

.lc-chip--shared {
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
}

.lc-chip--outline {
    border: 1px solid var(--lc-border);
    color: var(--lc-text-secondary);
    background: transparent;
}

.lc-add-desires {
    color: var(--lc-brand-primary);
    text-decoration: none;
    font-weight: 500;
}

.lc-completion-section {
    margin: var(--lc-space-6) 0;
    text-align: center;
}

.lc-completion-section p {
    color: var(--lc-text-secondary);
    margin-top: var(--lc-space-2);
}

.lc-theme-section {
    margin: var(--lc-space-6) 0;
}

.lc-theme-section label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--lc-space-3);
    color: var(--lc-text-primary);
}

.lc-theme-selector {
    display: flex;
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius-lg);
    overflow: hidden;
}

.lc-theme-option {
    flex: 1;
    padding: var(--lc-space-2) var(--lc-space-4);
    background: var(--lc-bg-secondary);
    color: var(--lc-text-secondary);
    border: none;
    cursor: pointer;
    transition: all var(--lc-transition-base) var(--lc-ease-in-out);
    font-size: var(--lc-font-size-sm);
}

.lc-theme-option:not(:last-child) {
    border-right: 1px solid var(--lc-border);
}

.lc-theme-option--active {
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
}

.lc-btn {
    display: inline-block;
    padding: var(--lc-space-3) var(--lc-space-4);
    border-radius: var(--lc-radius-lg);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all var(--lc-transition-base) var(--lc-ease-in-out);
    font-size: var(--lc-font-size-base);
}

.lc-btn--primary {
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
}

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

.lc-btn--secondary {
    background: var(--lc-bg-tertiary);
    color: var(--lc-text-primary);
}

.lc-btn--full {
    width: 100%;
    margin-top: var(--lc-space-4);
}

/* --- UserProfile Page (Viewing Others) --- */
.lc-user-profile {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 80px; /* Space for action bar */
}

.lc-photo-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lc-photo-gallery::-webkit-scrollbar {
    display: none;
}

.lc-gallery-photo {
    width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    aspect-ratio: 3 / 4;
}

.lc-gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lc-gallery-dots {
    display: flex;
    justify-content: center;
    gap: var(--lc-space-2);
    padding: var(--lc-space-3);
}

.lc-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--lc-radius-full);
    background: var(--lc-border);
    border: none;
    cursor: pointer;
    transition: background var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-gallery-dot--active {
    background: var(--lc-brand-primary);
}

.lc-match-banner {
    background: var(--lc-brand-gradient);
    color: var(--lc-text-inverse);
    padding: var(--lc-space-4);
    border-radius: var(--lc-radius-lg);
    text-align: center;
    margin: var(--lc-space-4);
    font-weight: 700;
    font-size: var(--lc-font-size-lg);
}

.lc-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--lc-nav-bg);
    box-shadow: var(--lc-nav-shadow);
    padding: var(--lc-space-3) var(--lc-space-4);
    padding-bottom: max(var(--lc-space-3), var(--lc-safe-area-bottom));
    display: flex;
    gap: var(--lc-space-3);
    align-items: center;
    z-index: var(--lc-z-fixed);
}

.lc-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--lc-space-2);
    padding: var(--lc-space-3);
    border-radius: var(--lc-radius-lg);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--lc-transition-base) var(--lc-ease-out);
    text-decoration: none;
    color: inherit;
}

.lc-action-btn--primary {
    flex: 1;
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
}

.lc-action-btn--primary:hover {
    background: var(--lc-brand-primary-hover);
    transform: scale(1.02);
}

.lc-action-btn:not(.lc-action-btn--primary) {
    flex: 1;
    background: var(--lc-bg-tertiary);
    color: var(--lc-text-primary);
}

.lc-action-btn--icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: var(--lc-radius-full);
    background: var(--lc-bg-tertiary);
    color: var(--lc-text-tertiary);
}

/* --- Settings Page --- */
.lc-settings {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--lc-space-4);
}

.lc-settings h1 {
    font-size: var(--lc-font-size-2xl);
    font-weight: 700;
    color: var(--lc-text-primary);
    margin-bottom: var(--lc-space-6);
    text-align: center;
}

.lc-settings-section {
    background: var(--lc-bg-secondary);
    border-radius: var(--lc-radius-lg);
    padding: var(--lc-space-4);
    margin-bottom: var(--lc-space-5);
    box-shadow: var(--lc-shadow-sm);
}

.lc-settings-section h2 {
    font-size: var(--lc-font-size-lg);
    font-weight: 600;
    color: var(--lc-text-primary);
    margin: 0 0 var(--lc-space-4) 0;
}

.lc-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--lc-space-3) 0;
}

.lc-settings-row:not(:last-child) {
    border-bottom: 1px solid var(--lc-border-light);
}

.lc-settings-row label {
    font-weight: 500;
    color: var(--lc-text-primary);
}

.lc-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.lc-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.lc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--lc-bg-tertiary);
    transition: var(--lc-transition-base);
    border-radius: 12px;
}

.lc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--lc-surface);
    transition: var(--lc-transition-base);
    border-radius: var(--lc-radius-full);
}

.lc-toggle-switch input:checked + .lc-toggle-slider {
    background: var(--lc-brand-primary);
}

.lc-toggle-switch input:checked + .lc-toggle-slider:before {
    transform: translateX(20px);
}

.lc-select {
    padding: var(--lc-space-2) var(--lc-space-3);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    background: var(--lc-bg-primary);
    color: var(--lc-text-primary);
    font-size: var(--lc-font-size-sm);
}

.lc-settings-link {
    display: flex;
    align-items: center;
    gap: var(--lc-space-3);
    padding: var(--lc-space-3) 0;
    color: var(--lc-text-primary);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    transition: color var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-settings-link:not(:last-child) {
    border-bottom: 1px solid var(--lc-border-light);
}

.lc-settings-link:hover {
    color: var(--lc-brand-primary);
}

.lc-settings-link--danger {
    color: var(--lc-error);
}

.lc-settings-link--danger:hover {
    color: var(--lc-error);
}

.lc-settings-link span {
    flex: 1;
    text-align: left;
}

.lc-app-version {
    color: var(--lc-text-tertiary);
    font-size: var(--lc-font-size-xs);
    text-align: center;
    margin-top: var(--lc-space-4);
}

.lc-settings-actions {
    margin-top: var(--lc-space-6);
}

/* --- Desires Page --- */
.lc-desires-page {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--lc-space-4);
}

.lc-desires-page h1 {
    font-size: var(--lc-font-size-2xl);
    font-weight: 700;
    color: var(--lc-text-primary);
    margin-bottom: var(--lc-space-2);
    text-align: center;
}

.lc-desires-page p {
    color: var(--lc-text-secondary);
    text-align: center;
    margin-bottom: var(--lc-space-6);
}

.lc-desires-counter {
    text-align: center;
    padding: var(--lc-space-3);
    border-radius: var(--lc-radius-lg);
    background: var(--lc-bg-secondary);
    margin-bottom: var(--lc-space-6);
    font-weight: 600;
    color: var(--lc-text-secondary);
}

.lc-counter-number {
    color: var(--lc-brand-primary);
    font-size: var(--lc-font-size-lg);
}

.lc-counter--complete {
    background: var(--lc-brand-primary-light);
    color: var(--lc-brand-primary);
}

.lc-desires-accordion {
    margin-bottom: var(--lc-space-6);
}

.lc-accordion-item {
    background: var(--lc-bg-secondary);
    border-radius: var(--lc-radius-lg);
    margin-bottom: var(--lc-space-3);
    overflow: hidden;
    box-shadow: var(--lc-shadow-sm);
}

.lc-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--lc-space-4);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--lc-text-primary);
    transition: background var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-accordion-header:hover {
    background: var(--lc-bg-tertiary);
}

.lc-accordion-header--active {
    background: var(--lc-brand-primary-light);
    color: var(--lc-brand-primary);
}

.lc-category-count {
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
    padding: 2px 8px;
    border-radius: var(--lc-radius-full);
    font-size: var(--lc-font-size-xs);
    margin-left: var(--lc-space-2);
}

.lc-accordion-chevron {
    transition: transform var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-accordion-header--active .lc-accordion-chevron {
    transform: rotate(180deg);
}

.lc-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-accordion-body--active {
    max-height: 1000px;
}

.lc-desires-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lc-space-2);
    padding: var(--lc-space-4);
}

.lc-desires-grid .lc-chip {
    border: 1px solid var(--lc-border);
    background: transparent;
    color: var(--lc-text-secondary);
}

.lc-desires-grid .lc-chip input {
    display: none;
}

.lc-desires-grid .lc-chip--selected {
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
    border-color: var(--lc-brand-primary);
}

.lc-desires-actions {
    display: flex;
    flex-direction: column;
    gap: var(--lc-space-3);
}

/* Desires page action buttons — violet 3D */
.lc-desires-tags ~ .lc-page-header .lc-btn-primary,
.lc-desires-form .lc-btn-primary,
form#lc-desires-form .lc-btn-primary {
    background: #9B59B6;
    border-radius: 8px;
    box-shadow: 0 4px 0 #6C2E8B, 0 4px 8px rgba(123, 47, 190, 0.3);
    transition: all 0.15s ease;
}

form#lc-desires-form .lc-btn-primary:hover {
    background: #8E44AD;
}

form#lc-desires-form .lc-btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #6C2E8B;
}

form#lc-desires-form .lc-btn-secondary {
    color: #9B59B6;
    border: 2px solid #9B59B6;
    border-radius: 8px;
    box-shadow: 0 4px 0 #D4A0FF;
    background: transparent;
    transition: all 0.15s ease;
}

form#lc-desires-form .lc-btn-secondary:hover {
    background: #F5EEFF;
}

form#lc-desires-form .lc-btn-secondary:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #D4A0FF;
}

/* --- Responsive Design --- */
@media (max-width: 640px) {
    .lc-profile-avatar img {
        width: 150px;
        height: 150px;
    }

    .lc-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--lc-space-2);
    }

    .lc-action-bar {
        padding: var(--lc-space-2) var(--lc-space-3);
    }

    .lc-action-btn {
        padding: var(--lc-space-2);
        font-size: var(--lc-font-size-sm);
    }

    .lc-theme-selector {
        flex-direction: column;
    }

    .lc-theme-option:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--lc-border);
    }
}

/* ============================================
   W-FIX-154e: Chat List + Conversation + Notifications
   ============================================ */

/* --- Chat List Page --- */
.lc-chat-page {
    max-width: 600px;
    margin: 0 auto;
}

.lc-chat-title {
    font-weight: 700;
    font-size: var(--lc-font-size-xl);
    padding: var(--lc-space-4) var(--lc-space-5);
    color: var(--lc-text-primary);
    margin: 0;
}

.lc-chat-list {
    display: flex;
    flex-direction: column;
}

.lc-chat-row {
    display: flex;
    align-items: center;
    padding: var(--lc-space-4) var(--lc-space-5);
    gap: var(--lc-space-4);
    cursor: pointer;
    border-bottom: 1px solid var(--lc-border-light);
    transition: background var(--lc-transition-base) var(--lc-ease-in-out);
    text-decoration: none;
    color: inherit;
}

.lc-chat-row:hover {
    background: var(--lc-bg-tertiary);
}

.lc-chat-row--unread {
    border-left: 4px solid var(--lc-brand-primary);
}

.lc-chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--lc-radius-full);
    flex-shrink: 0;
    object-fit: cover;
}

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

.lc-chat-name {
    font-weight: 600;
    font-size: var(--lc-font-size-base);
    color: var(--lc-text-primary);
    margin-bottom: 2px;
}

.lc-chat-name--unread {
    font-weight: 700;
}

.lc-chat-preview {
    font-size: var(--lc-font-size-sm);
    color: var(--lc-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-chat-preview--unread {
    color: var(--lc-text-primary);
    font-weight: 500;
}

.lc-chat-meta {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--lc-space-1);
}

.lc-chat-time {
    font-size: var(--lc-font-size-xs);
    color: var(--lc-text-tertiary);
}

.lc-chat-time--unread {
    color: var(--lc-brand-primary);
}

.lc-chat-badge {
    min-width: 20px;
    height: 20px;
    border-radius: var(--lc-radius-full);
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
    font-size: var(--lc-font-size-xs);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* --- Empty State --- */
.lc-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--lc-space-16) var(--lc-space-5);
    text-align: center;
}

.lc-empty-icon {
    color: var(--lc-text-tertiary);
    margin-bottom: var(--lc-space-4);
}

.lc-empty-text {
    font-size: var(--lc-font-size-lg);
    color: var(--lc-text-secondary);
    margin: 0 0 var(--lc-space-5) 0;
}

.lc-empty-btn {
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
    padding: var(--lc-space-3) var(--lc-space-8);
    border-radius: var(--lc-radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: background var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-empty-btn:hover {
    background: var(--lc-brand-primary-hover);
}

/* --- Chat Conversation Page --- */
.lc-conversation-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 600px;
    margin: 0 auto;
}

.lc-conv-topbar {
    position: fixed;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 56px;
    background: var(--lc-nav-bg);
    box-shadow: var(--lc-shadow-sm);
    display: flex;
    align-items: center;
    padding: 0 var(--lc-space-4);
    gap: var(--lc-space-3);
    z-index: var(--lc-z-fixed);
}

/* Instagram-style topbar info */
.lc-conv-topbar--ig {
    height: auto;
    min-height: 56px;
    padding: var(--lc-space-2) var(--lc-space-4);
    gap: var(--lc-space-3);
}
.lc-conv-topbar-avatar {
    position: relative;
    flex-shrink: 0;
}
.lc-conv-topbar-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}
.lc-conv-topbar-name {
    font-weight: 600;
    font-size: var(--lc-font-size-base);
    color: var(--lc-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lc-conv-topbar-sub {
    font-size: var(--lc-font-size-sm);
    color: var(--lc-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lc-conv-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: var(--lc-success);
    border-radius: 50%;
    border: 2px solid var(--lc-nav-bg);
}

.lc-conv-back {
    width: 32px;
    height: 32px;
    color: var(--lc-text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lc-conv-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--lc-radius-full);
    object-fit: cover;
}

.lc-conv-name {
    flex: 1;
    font-weight: 600;
    color: var(--lc-text-primary);
    position: relative;
}

.lc-online-dot {
    position: absolute;
    top: 2px;
    right: -12px;
    width: 8px;
    height: 8px;
    background: var(--lc-success);
    border-radius: var(--lc-radius-full);
    border: 2px solid var(--lc-nav-bg);
}

.lc-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 128px var(--lc-space-4) 80px;
    background: var(--lc-bg-primary);
    display: flex;
    flex-direction: column;
    gap: var(--lc-space-1);
}

.lc-message {
    max-width: 75%;
    padding: var(--lc-space-3) var(--lc-space-4);
    border-radius: 18px;
    word-wrap: break-word;
    margin-bottom: var(--lc-space-1);
}

.lc-message--sent {
    background: var(--lc-chat-sent);
    color: var(--lc-chat-sent-text);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.lc-message--received {
    background: var(--lc-chat-received);
    color: var(--lc-chat-received-text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.lc-message-time {
    text-align: center;
    font-size: var(--lc-font-size-xs);
    color: var(--lc-text-tertiary);
    margin: var(--lc-space-4) 0 var(--lc-space-2);
    clear: both;
}
/* Inline time inside bubble — Instagram style */
.lc-message-time-inline {
    display: block;
    font-size: 10px;
    margin-top: 3px;
    opacity: 0.65;
    text-align: right;
    line-height: 1;
}
.lc-message--sent .lc-message-time-inline {
    color: rgba(255,255,255,0.85);
}
.lc-message--received .lc-message-time-inline {
    color: var(--lc-text-tertiary);
}

.lc-conv-inputbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: var(--lc-nav-bg);
    box-shadow: 0 -1px 4px var(--lc-shadow-sm);
    padding: var(--lc-space-2) var(--lc-space-4);
    padding-bottom: calc(var(--lc-space-2) + var(--lc-safe-area-bottom));
    display: flex;
    gap: var(--lc-space-3);
    align-items: center;
    z-index: var(--lc-z-fixed);
}
.lc-inputbar-inner {
    display: flex;
    gap: var(--lc-space-2);
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.lc-conv-inputbar form,
#lc-chat-form {
    width: 100%;
    display: flex;
}

.lc-conv-input {
    flex: 1;
    padding: var(--lc-space-3) var(--lc-space-4);
    border-radius: 24px;
    border: 1px solid var(--lc-border);
    background: var(--lc-bg-tertiary);
    color: var(--lc-text-primary);
    font-size: var(--lc-font-size-base);
    outline: none;
    transition: border-color var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-conv-input:focus {
    border-color: var(--lc-brand-primary);
}

.lc-conv-send {
    width: 44px;
    height: 44px;
    border-radius: var(--lc-radius-full);
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    border: none;
    transition: transform var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-conv-send:hover {
    transform: scale(1.05);
}

/* --- Notifications Page --- */
.lc-notifications-page {
    max-width: 600px;
    margin: 0 auto;
}

.lc-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--lc-space-4) var(--lc-space-5);
}

.lc-notif-title {
    font-weight: 700;
    font-size: var(--lc-font-size-xl);
    color: var(--lc-text-primary);
    margin: 0;
}

.lc-notif-mark-read {
    font-size: var(--lc-font-size-sm);
    color: var(--lc-brand-primary);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.lc-notif-list {
    display: flex;
    flex-direction: column;
}

.lc-notif-row {
    display: flex;
    gap: var(--lc-space-4);
    padding: var(--lc-space-4) var(--lc-space-5);
    border-bottom: 1px solid var(--lc-border-light);
    transition: background var(--lc-transition-base) var(--lc-ease-in-out);
    cursor: pointer;
    border-left: 4px solid transparent;
}

.lc-notif-row--unread {
    border-left-color: var(--lc-brand-primary);
    background: var(--lc-brand-primary-light);
}

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

.lc-notif-icon--like {
    background: var(--lc-brand-primary-light);
    color: var(--lc-brand-primary);
}

.lc-notif-icon--message {
    background: rgba(59,130,246,0.1);
    color: var(--lc-info);
}

.lc-notif-icon--match {
    background: var(--lc-brand-primary-light);
    color: var(--lc-brand-primary);
}

.lc-notif-icon--system {
    background: var(--lc-bg-tertiary);
    color: var(--lc-text-tertiary);
}

.lc-notif-content {
    flex: 1;
}

.lc-notif-text {
    font-size: var(--lc-font-size-base);
    color: var(--lc-text-primary);
    margin-bottom: 2px;
}

.lc-notif-text--unread {
    font-weight: 600;
}

.lc-notif-time {
    font-size: var(--lc-font-size-xs);
    color: var(--lc-text-tertiary);
}

/* --- Mobile Responsive --- */
@media (max-width: 800px) {
    .lc-conv-topbar {
        left: 0;
        transform: none;
        width: 100%;
        max-width: 600px;
    }

    .lc-conv-inputbar {
        left: 0;
        transform: none;
        width: 100%;
        max-width: 600px;
    }

    .lc-chat-title,
    .lc-notif-title {
        font-size: var(--lc-font-size-lg);
    }

    .lc-chat-row,
    .lc-notif-row {
        padding: var(--lc-space-3) var(--lc-space-4);
    }

    .lc-chat-avatar {
        width: 40px;
        height: 40px;
    }

    .lc-conv-avatar {
        width: 32px;
        height: 32px;
    }
}

.lc-map-container {
    position: relative;
    width: 100%;
}

.lc-map-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--lc-text-primary);
}

.lc-map-container #lc-map {
    width: 100%;
    height: 100%;
}

.lc-map-search-btn {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: var(--lc-bg-secondary);
    color: var(--lc-text-primary);
    padding: var(--lc-space-3) var(--lc-space-5);
    border-radius: 24px;
    box-shadow: var(--lc-shadow-md);
    font-size: var(--lc-font-size-sm);
    cursor: pointer;
    border: none;
    transition: all var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-map-search-btn:hover {
    transform: translateX(-50%) scale(1.02);
    box-shadow: var(--lc-shadow-lg);
}

.lc-map-privacy-note {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: var(--lc-bg-overlay);
    color: var(--lc-text-inverse);
    padding: var(--lc-space-1) var(--lc-space-3);
    border-radius: var(--lc-radius-lg);
    font-size: var(--lc-font-size-xs);
}

@media (max-width: 767px) {
    .lc-map-privacy-note {
        bottom: calc(var(--lc-nav-height) + 8px);
    }
}

.lc-map-popup {
    background: var(--lc-card-bg);
    border-radius: var(--lc-radius-lg);
    box-shadow: var(--lc-shadow-md);
    padding: var(--lc-space-3);
    width: 200px;
    text-align: center;
}

.lc-map-popup-photo {
    width: 60px;
    height: 60px;
    border-radius: var(--lc-radius-full);
    object-fit: cover;
    margin: 0 auto var(--lc-space-2);
}

.lc-map-popup-name {
    font-weight: 600;
    color: var(--lc-text-primary);
    margin-bottom: var(--lc-space-1);
}

.lc-map-popup-city {
    color: var(--lc-text-secondary);
    font-size: var(--lc-font-size-sm);
    margin-bottom: var(--lc-space-1);
}

.lc-map-popup-distance {
    color: var(--lc-text-tertiary);
    font-size: var(--lc-font-size-xs);
    margin-bottom: var(--lc-space-2);
}

.lc-map-popup-link {
    color: var(--lc-brand-primary);
    font-weight: 500;
    text-decoration: none;
    font-size: var(--lc-font-size-sm);
}

.lc-map-marker {
    background: transparent;
    border: none;
}

.lc-onboarding-bg {
    min-height: 100vh;
    background: var(--lc-brand-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--lc-space-5);
}

.lc-progress-dots {
    display: flex;
    gap: var(--lc-space-2);
    margin-bottom: var(--lc-space-8);
}

.lc-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--lc-radius-full);
    transition: all var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-dot--done {
    background: var(--lc-text-inverse);
}

.lc-dot--current {
    background: var(--lc-text-inverse);
    transform: scale(1.3);
}

.lc-dot--future {
    background: var(--lc-text-inverse);
    opacity: 0.4;
}

.lc-step-card {
    background: var(--lc-bg-secondary);
    border-radius: 20px;
    padding: var(--lc-space-8) var(--lc-space-6);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--lc-shadow-lg);
}

.lc-step-title {
    font-weight: 700;
    font-size: var(--lc-font-size-xl);
    text-align: center;
    color: var(--lc-text-primary);
    margin: 0 0 var(--lc-space-2) 0;
}

.lc-step-subtitle {
    color: var(--lc-text-secondary);
    text-align: center;
    margin: 0 0 var(--lc-space-5) 0;
}

.lc-onboarding-step {
    display: none;
}

.lc-onboarding-step.active {
    display: block;
}

.lc-photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lc-space-3);
    margin: var(--lc-space-5) 0;
}

.lc-photo-upload-slot {
    aspect-ratio: 1 / 1;
    border-radius: var(--lc-radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform var(--lc-transition-base) var(--lc-ease-out);
}

.lc-photo-upload-slot:hover {
    transform: scale(1.02);
}

.lc-photo-upload-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lc-photo-upload-empty {
    border: 2px dashed var(--lc-border);
    background: var(--lc-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-photo-upload-empty:hover {
    border-color: var(--lc-brand-primary);
}

.lc-upload-placeholder {
    color: var(--lc-text-tertiary);
}

.lc-drag-drop-text {
    text-align: center;
    color: var(--lc-text-secondary);
    font-size: var(--lc-font-size-sm);
    margin: var(--lc-space-3) 0 0 0;
}

.lc-form-group {
    margin-bottom: var(--lc-space-4);
}

.lc-form-input,
.lc-form-textarea {
    width: 100%;
    padding: var(--lc-space-3) var(--lc-space-4);
    border-radius: var(--lc-radius-lg);
    border: 1px solid var(--lc-border);
    background: var(--lc-bg-tertiary);
    color: var(--lc-text-primary);
    font-size: var(--lc-font-size-base);
    transition: border-color var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-form-input:focus,
.lc-form-textarea:focus {
    border-color: var(--lc-brand-primary);
    outline: none;
}

.lc-form-textarea {
    resize: none;
    height: 120px;
}

.lc-city-input {
    position: relative;
}

.lc-city-input svg {
    position: absolute;
    left: var(--lc-space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--lc-text-tertiary);
}

.lc-city-input .lc-form-input {
    padding-left: calc(var(--lc-space-4) + 16px + var(--lc-space-2));
}

.lc-form-label {
    display: block;
    font-weight: 600;
    color: var(--lc-text-primary);
    margin-bottom: var(--lc-space-2);
}

.lc-pill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--lc-space-2);
}

.lc-pill-option {
    padding: var(--lc-space-3) var(--lc-space-4);
    border-radius: var(--lc-radius-lg);
    border: 1px solid var(--lc-border);
    text-align: center;
    cursor: pointer;
    transition: all var(--lc-transition-base) var(--lc-ease-in-out);
    background: var(--lc-bg-tertiary);
    color: var(--lc-text-primary);
}

.lc-pill-option input {
    display: none;
}

.lc-pill-option--selected {
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
    border-color: var(--lc-brand-primary);
}

.lc-gdpr-text {
    color: var(--lc-text-secondary);
    font-size: var(--lc-font-size-sm);
    line-height: 1.6;
    margin-bottom: var(--lc-space-5);
}

.lc-gdpr-text a {
    color: var(--lc-brand-primary);
    text-decoration: none;
}

.lc-gdpr-label {
    display: flex;
    align-items: flex-start;
    gap: var(--lc-space-3);
    cursor: pointer;
    margin-bottom: var(--lc-space-3);
}

.lc-gdpr-checkbox {
    display: none;
}

.lc-checkbox-custom {
    width: 20px;
    height: 20px;
    border-radius: var(--lc-radius-sm);
    border: 2px solid var(--lc-border);
    flex-shrink: 0;
    position: relative;
    transition: all var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-gdpr-checkbox:checked + .lc-checkbox-custom {
    background: var(--lc-brand-primary);
    border-color: var(--lc-brand-primary);
}

.lc-gdpr-checkbox:checked + .lc-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--lc-text-inverse);
    font-size: var(--lc-font-size-xs);
    font-weight: 700;
}

.lc-checkbox-text {
    font-size: var(--lc-font-size-sm);
    color: var(--lc-text-primary);
    line-height: 1.4;
}

.lc-form-actions {
    display: flex;
    flex-direction: column;
    gap: var(--lc-space-3);
    margin-top: var(--lc-space-6);
}

.lc-onboarding-next,
.lc-onboarding-back {
    width: 100%;
    padding: var(--lc-space-4);
    border-radius: var(--lc-radius-lg);
    font-weight: 600;
    font-size: var(--lc-font-size-base);
    cursor: pointer;
    border: none;
    transition: all var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-onboarding-next {
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
}

.lc-onboarding-next:hover {
    background: var(--lc-brand-primary-hover);
}

.lc-onboarding-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lc-onboarding-back {
    background: transparent;
    color: var(--lc-text-secondary);
    font-size: var(--lc-font-size-sm);
}

.lc-auth-bg {
    min-height: 100vh;
    background: var(--lc-brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--lc-space-5);
}

.lc-auth-card {
    background: var(--lc-bg-secondary);
    border-radius: 20px;
    padding: var(--lc-space-10) var(--lc-space-8);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--lc-shadow-lg);
}

.lc-auth-logo {
    text-align: center;
    margin-bottom: var(--lc-space-6);
}

.lc-auth-logo h1 {
    color: var(--lc-brand-primary);
    font-size: var(--lc-font-size-2xl);
    font-weight: 800;
    margin: 0;
}

.lc-auth-title {
    font-weight: 700;
    font-size: var(--lc-font-size-xl);
    text-align: center;
    color: var(--lc-text-primary);
    margin: 0 0 var(--lc-space-6) 0;
}

.lc-auth-submit {
    width: 100%;
    padding: var(--lc-space-4);
    border-radius: var(--lc-radius-lg);
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
    font-weight: 600;
    font-size: var(--lc-font-size-base);
    border: none;
    cursor: pointer;
    transition: background var(--lc-transition-base) var(--lc-ease-in-out);
    margin-top: var(--lc-space-4);
}

.lc-auth-submit:hover {
    background: var(--lc-brand-primary-hover);
}

.lc-auth-submit--secondary {
    background: var(--lc-bg-tertiary);
    color: var(--lc-text-primary);
    margin-top: 0;
    margin-bottom: var(--lc-space-2);
}

.lc-remember-group {
    margin: var(--lc-space-3) 0;
}

.lc-remember-label {
    display: flex;
    align-items: center;
    gap: var(--lc-space-2);
    cursor: pointer;
    font-size: var(--lc-font-size-sm);
}

.lc-remember-checkbox {
    display: none;
}

.lc-remember-checkbox + .lc-checkbox-custom {
    width: 18px;
    height: 18px;
}

.lc-auth-links {
    text-align: center;
    margin-top: var(--lc-space-5);
    font-size: var(--lc-font-size-sm);
}

.lc-auth-links a {
    color: var(--lc-text-secondary);
    text-decoration: none;
}

.lc-link-separator {
    margin: 0 var(--lc-space-2);
    color: var(--lc-border);
}

.lc-auth-link {
    text-align: center;
    margin-top: var(--lc-space-5);
    padding-top: var(--lc-space-5);
    border-top: 1px solid var(--lc-border-light);
    font-size: var(--lc-font-size-sm);
    color: var(--lc-text-secondary);
}

.lc-auth-link a {
    color: var(--lc-brand-primary);
    font-weight: 600;
    text-decoration: none;
}

.lc-gdpr-section {
    margin: var(--lc-space-5) 0;
    padding: var(--lc-space-4);
    background: var(--lc-bg-tertiary);
    border-radius: var(--lc-radius-lg);
}

.lc-auth-card input[type="text"],
.lc-auth-card input[type="password"],
.lc-auth-card input[type="email"],
.lc-auth-card select,
.lc-auth-card textarea {
    width: 100%;
    padding: var(--lc-space-3) var(--lc-space-4);
    border-radius: var(--lc-radius-lg);
    border: 1px solid var(--lc-border);
    background: var(--lc-bg-tertiary);
    color: var(--lc-text-primary);
    font-size: var(--lc-font-size-base);
    margin-bottom: var(--lc-space-4);
    transition: border-color var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-auth-card input[type="text"]:focus,
.lc-auth-card input[type="password"]:focus,
.lc-auth-card input[type="email"]:focus,
.lc-auth-card select:focus,
.lc-auth-card textarea:focus {
    border-color: var(--lc-brand-primary);
    outline: none;
}

/* ISS-010: Force readable labels/placeholders inside white auth card */
.lc-auth-card label,
.lc-auth-card .form-label,
.lc-auth-card .control-label {
    color: #374151 !important;
    font-size: var(--lc-font-size-sm);
    font-weight: 600;
    margin-bottom: var(--lc-space-1);
    display: block;
}

.lc-auth-card input::placeholder,
.lc-auth-card textarea::placeholder {
    color: #9CA3AF !important;
}

.lc-auth-card .form-control,
.lc-auth-card .form-select {
    color: #1A1A2E !important;
    background: #F9FAFB !important;
    border: 1px solid #D1D5DB !important;
}

.lc-auth-card .form-control:focus,
.lc-auth-card .form-select:focus {
    border-color: var(--lc-brand-primary) !important;
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.15) !important;
}

.lc-auth-card .form-text,
.lc-auth-card .form-check-label,
.lc-auth-card span {
    color: #4B5563 !important;
}

@media (max-width: 640px) {
    .lc-step-card {
        padding: var(--lc-space-6) var(--lc-space-4);
    }

    .lc-auth-card {
        padding: var(--lc-space-8) var(--lc-space-5);
    }

    .lc-photo-upload-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lc-pill-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   W-FIX-157c: Dashboard Template Override
   ======================================== */

/* Welcome Banner */
.lc-welcome-banner {
    background: linear-gradient(135deg, var(--lc-dark) 0%, var(--lc-primary) 100%);
    color: white;
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--lc-shadow-sm);
}

.lc-welcome-avatar {
    flex-shrink: 0;
}

.lc-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--lc-card-bg);
    object-fit: cover;
}

.lc-welcome-text h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: white;
}

.lc-welcome-link {
    color: white;
    opacity: 0.9;
    text-decoration: none;
    font-size: 0.95rem;
}

.lc-welcome-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Stats Row - Gradient Cards */
.lc-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.lc-stat-card {
    border-radius: 12px;
    padding: 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--lc-shadow-sm);
}

.lc-stat-card--messages {
    background: linear-gradient(135deg, var(--lc-primary), #FF9800);
}

.lc-stat-card--likes {
    background: linear-gradient(135deg, #9C27B0, #E040FB);
}

.lc-stat-icon {
    font-size: 2rem;
}

.lc-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
}

.lc-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Quick Actions */
.lc-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.lc-quick-action {
    background: var(--lc-card-bg);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--lc-border-light);
    box-shadow: var(--lc-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lc-quick-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--lc-shadow-md);
}

.lc-quick-icon {
    font-size: 2rem;
    color: var(--lc-primary);
}

.lc-quick-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lc-quick-text strong {
    font-size: 1.1rem;
    color: var(--lc-dark);
}

.lc-quick-text span {
    font-size: 0.85rem;
    color: var(--lc-text-secondary);
}

.lc-quick-link {
    color: var(--lc-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.lc-quick-link:hover {
    text-decoration: underline;
}

.lc-quick-action-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Suggested Profiles Grid */
.lc-suggested-section {
    margin-bottom: 32px;
}

.lc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.lc-section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--lc-body-text);
    margin: 0;
}

.lc-see-all {
    color: var(--lc-primary);
    text-decoration: none;
    font-weight: 500;
}

.lc-see-all:hover {
    text-decoration: underline;
}

.lc-suggested-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.lc-suggested-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    background: var(--lc-bg-tertiary);
    border: 1px solid var(--lc-border-light);
    box-shadow: var(--lc-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lc-suggested-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

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

.lc-suggested-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lc-suggested-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lc-suggested-info strong {
    font-size: 1rem;
    font-weight: 600;
}

.lc-suggested-info span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Conversations Section */
.lc-conversations-section {
    margin-bottom: 32px;
}

.lc-conversations-list {
    background: var(--lc-surface, #fff);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.conversation-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Activity Stats */
.lc-activity-section {
    margin-bottom: 32px;
}

.lc-activity-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--lc-body-text);
    margin-bottom: 16px;
}

.lc-activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    background: linear-gradient(135deg, var(--lc-brand-primary) 0%, #FF6B9D 50%, #FFA07A 100%);
    border-radius: 12px;
    padding: 28px;
    border: none;
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.25);
    color: #fff;
}

.lc-activity-stat {
    text-align: center;
}

.lc-activity-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lc-activity-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
    .lc-stats-row {
        grid-template-columns: 1fr;
    }

    .lc-suggested-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .lc-quick-actions {
        grid-template-columns: 1fr;
    }

    .lc-welcome-banner {
        flex-direction: column;
        text-align: center;
    }

    .lc-activity-stats {
        grid-template-columns: 1fr;
    }
}

/* --- Dashboard Night Mode Overrides (W-FIX-307) --- */
[data-theme="night"] .lc-welcome-banner {
    background: linear-gradient(135deg, var(--lc-bg-tertiary) 0%, var(--lc-brand-primary) 100%);
}

[data-theme="night"] .lc-quick-action {
    background: var(--lc-card-bg);
    border-color: var(--lc-border);
}

[data-theme="night"] .lc-quick-action:hover {
    box-shadow: var(--lc-shadow-md);
}

[data-theme="night"] .lc-quick-text strong {
    color: var(--lc-text-primary);
}

[data-theme="night"] .lc-quick-text span {
    color: var(--lc-text-secondary);
}

[data-theme="night"] .lc-suggested-card {
    background: var(--lc-card-bg);
    border-color: var(--lc-border);
}

/* Missing chat classes */
.lc-chat-conversation {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--lc-bg-primary);
}

.lc-chat-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lc-chat-info {
    display: flex;
    align-items: center;
    gap: var(--lc-space-3);
}

.lc-chat-photo {
    position: relative;
}

.lc-chat-status {
    font-size: var(--lc-font-size-sm);
    color: var(--lc-text-secondary);
    display: flex;
    align-items: center;
    gap: var(--lc-space-1);
}

.lc-input-group {
    display: flex;
    gap: var(--lc-space-2);
    align-items: center;
    flex: 1;
}

.lc-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--lc-space-8);
    color: var(--lc-text-secondary);
}

.lc-message-body {
    line-height: 1.4;
    word-wrap: break-word;
}

.lc-message-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--lc-space-1);
    font-size: var(--lc-font-size-xs);
    color: var(--lc-text-tertiary);
}
/* In conversation view, header/sender are not rendered — rule kept for safety */
.lc-chat-conversation .lc-message-header { display: none; }
.lc-chat-conversation .lc-message-sender { display: none; }

.lc-message-sender {
    font-weight: 600;
}

.lc-no-messages {
    text-align: center;
    padding: var(--lc-space-8);
    color: var(--lc-text-secondary);
}

/* Night mode overrides for chat */
[data-theme="night"] .lc-chat-page {
    background: var(--lc-bg-primary);
}

[data-theme="night"] .lc-chat-row:hover {
    background: var(--lc-bg-tertiary);
}

[data-theme="night"] .lc-conv-topbar {
    background: var(--lc-nav-bg);
    border-color: var(--lc-border);
}

[data-theme="night"] .lc-conv-inputbar {
    background: var(--lc-nav-bg);
    box-shadow: 0 -1px 4px var(--lc-shadow-sm);
}

[data-theme="night"] .lc-conv-input {
    background: var(--lc-bg-tertiary);
    border-color: var(--lc-border);
    color: var(--lc-text-primary);
}

[data-theme="night"] .lc-conv-input:focus {
    border-color: var(--lc-brand-primary);
}

[data-theme="night"] .lc-message--sent {
    background: var(--lc-chat-sent);
    color: var(--lc-chat-sent-text);
}

[data-theme="night"] .lc-message--received {
    background: var(--lc-chat-received);
    color: var(--lc-chat-received-text);
}

[data-theme="night"] .lc-chat-badge {
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
}

[data-theme="night"] .lc-activity-stats {
    background: linear-gradient(135deg, var(--lc-brand-primary) 0%, #B388FF 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(255, 64, 129, 0.2);
}

[data-theme="night"] .conversation-item:hover {
    background: var(--lc-bg-tertiary);
}

/* Missing preferences and form classes */
.lc-preferences-page {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--lc-space-4);
}

.lc-form {
    display: flex;
    flex-direction: column;
    gap: var(--lc-space-6);
}

.lc-checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--lc-space-2);
    padding: var(--lc-space-2) 0;
    cursor: pointer;
    transition: background-color var(--lc-transition-base) var(--lc-ease-in-out);
}

.lc-checkbox-item:hover {
    background: var(--lc-bg-tertiary);
    border-radius: var(--lc-radius);
}

.lc-distance-control {
    display: flex;
    align-items: center;
    gap: var(--lc-space-3);
}

.lc-distance-control input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--lc-bg-tertiary);
    outline: none;
    -webkit-appearance: none;
}

.lc-distance-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--lc-brand-primary);
    cursor: pointer;
    box-shadow: var(--lc-shadow-sm);
}

.lc-distance-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--lc-brand-primary);
    cursor: pointer;
    box-shadow: var(--lc-shadow-sm);
    border: none;
}

.lc-distance-control span {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    color: var(--lc-text-primary);
}

/* Bootstrap-style button aliases */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--lc-space-3) var(--lc-space-6);
    border-radius: var(--lc-radius);
    font-size: var(--lc-font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--lc-transition-base) var(--lc-ease-in-out);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
    border-color: var(--lc-brand-primary);
}

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

.btn-secondary {
    background: transparent;
    color: var(--lc-text-primary);
    border-color: var(--lc-border);
}

.btn-secondary:hover {
    background: var(--lc-bg-tertiary);
    border-color: var(--lc-border);
    transform: translateY(-1px);
}

fieldset {
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius-lg);
    padding: var(--lc-space-4);
    margin: 0;
}

legend {
    font-weight: 600;
    color: var(--lc-text-primary);
    padding: 0 var(--lc-space-2);
    margin: 0;
}

/* Night mode overrides for settings and preferences */
[data-theme="night"] .lc-settings {
    background: var(--lc-bg-primary);
}

[data-theme="night"] .lc-settings-section {
    background: var(--lc-bg-secondary);
    border-color: var(--lc-border);
}

[data-theme="night"] .lc-settings-row {
    border-bottom-color: var(--lc-border);
}

[data-theme="night"] .lc-toggle-slider {
    background: var(--lc-bg-tertiary);
}

[data-theme="night"] .lc-toggle-slider:before {
    background: var(--lc-surface);
}

[data-theme="night"] .lc-select {
    background: var(--lc-bg-tertiary);
    border-color: var(--lc-border);
    color: var(--lc-text-primary);
}

[data-theme="night"] .lc-preferences-page {
    background: var(--lc-bg-primary);
}

[data-theme="night"] .lc-checkbox-item:hover {
    background: var(--lc-bg-tertiary);
}

[data-theme="night"] .lc-distance-control input[type="range"] {
    background: var(--lc-bg-tertiary);
}

[data-theme="night"] .btn-primary {
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
}

[data-theme="night"] .btn-secondary {
    background: transparent;
    color: var(--lc-text-primary);
    border-color: var(--lc-border);
}

[data-theme="night"] .btn-secondary:hover {
    background: var(--lc-bg-tertiary);
    border-color: var(--lc-border);
}

[data-theme="night"] fieldset {
    border-color: var(--lc-border);
}

[data-theme="night"] legend {
    color: var(--lc-text-primary);
}

/* Missing UserProfile classes */
.lc-user-profile .lc-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    border-radius: var(--lc-radius-full);
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
    font-size: var(--lc-font-size-4xl);
    font-weight: 700;
    text-transform: uppercase;
}

.lc-user-profile .lc-age {
    display: inline-block;
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
    padding: var(--lc-space-1) var(--lc-space-2);
    border-radius: var(--lc-radius-full);
    font-size: var(--lc-font-size-sm);
    font-weight: 600;
    margin-right: var(--lc-space-2);
}

.lc-user-profile .lc-location {
    display: inline-flex;
    align-items: center;
    gap: var(--lc-space-1);
    color: var(--lc-text-secondary);
    font-size: var(--lc-font-size-sm);
}

/* Night mode overrides for UserProfile */
[data-theme="night"] .lc-user-profile {
    background: var(--lc-bg-primary);
}

[data-theme="night"] .lc-user-profile .lc-avatar-placeholder {
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
}

[data-theme="night"] .lc-user-profile .lc-age {
    background: var(--lc-brand-primary);
    color: var(--lc-text-inverse);
}

[data-theme="night"] .lc-user-profile .lc-location {
    color: var(--lc-text-secondary);
}

[data-theme="night"] .lc-user-profile .lc-info-section {
    background: var(--lc-bg-secondary);
    border-color: var(--lc-border);
}

[data-theme="night"] .lc-user-profile .lc-action-bar {
    background: var(--lc-nav-bg);
    border-top-color: var(--lc-border);
}

/* ═══════════════════════════════════════
   Profile Sections Grid — Responsive Layout
   Used by: Profile page info boxes
   Breakpoints: 1/2/3 columns at mobile/768px/1200px
   ═══════════════════════════════════════ */

.lc-profile-sections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

.lc-profile-sections-grid > .lc-profile-section {
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .lc-profile-sections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .lc-profile-sections-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Bottom Navigation Bar (W-FIX-173)
   Joomla Menu-based mobile navigation via mod_menu override
   ═══════════════════════════════════════════════════════════════ */

.lc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--lc-z-fixed, 1000);
    background: var(--lc-nav-bg, var(--lc-bottomnav-bg, #fff));
    border-top: 1px solid var(--lc-border-light, #e9ecef);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: var(--lc-nav-height, 60px);
    padding-bottom: var(--lc-safe-area-bottom, env(safe-area-inset-bottom, 0));
    padding-left: var(--lc-safe-area-left, 0);
    padding-right: var(--lc-safe-area-right, 0);
    box-shadow: var(--lc-nav-shadow, 0 -2px 8px rgba(0,0,0,0.06));
}

.lc-bottom-nav__list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.lc-bottom-nav__item {
    flex: 1;
    text-align: center;
}

.lc-bottom-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px 6px;
    text-decoration: none;
    color: #888;
    font-size: 0.65rem;
    transition: color 0.2s;
}

.lc-bottom-nav__link:hover,
.lc-bottom-nav__item--active .lc-bottom-nav__link {
    color: var(--lc-bottomnav-active, #E91E63);
}

.lc-bottom-nav__icon {
    display: block;
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Icon definitions using CSS mask with inline SVG data URIs (Lucide Icons - MIT License) */

.lc-icon-home {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E");
}

.lc-icon-discover {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolygon points='16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76'%3E%3C/polygon%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolygon points='16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76'%3E%3C/polygon%3E%3C/svg%3E");
}

.lc-icon-map {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.lc-icon-chat {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E");
}

.lc-icon-profile {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
}

.lc-icon-default {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3C/svg%3E");
}

.lc-bottom-nav__label {
    display: block;
    font-weight: 500;
    white-space: nowrap;
}

/* Hide bottom nav on desktop (992px+) */
@media (min-width: 992px) {
    .lc-bottom-nav {
        display: none;
    }
}

/* Body padding to prevent content hidden under bottom nav on mobile */
@media (max-width: 991px) {
    body {
        padding-bottom: 70px;
    }
}

/* --- Desires Tags Interactive (W-FIX-292B) --- */
.lc-desires-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0;
}

/* --- Desires Tags: Viola Sensuale 3D (W-FIX-314) --- */
.lc-desires-tags .lc-tag {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    border: 1.5px solid #D4A0FF;
    color: #7B2FBE;
    background: #F5EEFF;
    display: inline-block;
}

.lc-desires-tags .lc-tag:hover {
    border-color: #9B59B6;
    background: #EDE0FA;
    transform: translateY(-1px);
}

.lc-desires-tags .lc-tag.selected {
    background: #9B59B6;
    color: #fff;
    border-color: #7D3C98;
    box-shadow: 0 4px 0 #6C2E8B, 0 4px 8px rgba(123, 47, 190, 0.25);
    transform: translateY(-1px);
}

.lc-desires-tags .lc-tag.selected:hover {
    background: #8E44AD;
    border-color: #6C2E8B;
}

.lc-desires-tags .lc-tag.selected:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #6C2E8B;
}

.lc-desires-tags .lc-tag:not(.selected):active {
    transform: translateY(1px);
}

/* Desires night mode */
[data-theme="night"] .lc-desires-tags .lc-tag {
    border-color: #7B2FBE;
    color: #D4A0FF;
    background: rgba(155, 89, 182, 0.1);
}

[data-theme="night"] .lc-desires-tags .lc-tag:hover {
    border-color: #9B59B6;
    background: rgba(155, 89, 182, 0.2);
}

[data-theme="night"] .lc-desires-tags .lc-tag.selected {
    background: #9B59B6;
    color: #fff;
    border-color: #7D3C98;
    box-shadow: 0 4px 0 #4A148C, 0 4px 8px rgba(123, 47, 190, 0.4);
}

/* --- Desires Category Cards (W-FIX-314B) --- */

/* Category boxes: more spacing between them */
.lc-fullwidth-page form#lc-desires-form .lc-card {
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid #D4A0FF;
    background: linear-gradient(135deg, #FDFAFF 0%, #F3E8FF 50%, #EDE0FA 100%);
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.08);
    padding: 20px 24px;
    cursor: default;
    transform: none;
}

.lc-fullwidth-page form#lc-desires-form .lc-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.08);
}

.lc-fullwidth-page form#lc-desires-form .lc-card:active {
    transform: none;
}

/* Category titles: more space from edge, violet color */
.lc-fullwidth-page form#lc-desires-form .lc-card-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(155, 89, 182, 0.15);
}

.lc-fullwidth-page form#lc-desires-form .lc-card-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #6A1B9A;
    letter-spacing: 0.08em;
}

/* Night mode: desires category cards */
[data-theme="night"] .lc-fullwidth-page form#lc-desires-form .lc-card {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.08) 0%, rgba(155, 89, 182, 0.12) 100%);
    border-color: #7B2FBE;
}

[data-theme="night"] .lc-fullwidth-page form#lc-desires-form .lc-card-header h3 {
    color: #D4A0FF;
}

[data-theme="night"] .lc-fullwidth-page form#lc-desires-form .lc-card-header {
    border-bottom-color: rgba(155, 89, 182, 0.25);
}

/* Desires count banner: orange warning, hidden when >= 5 */
.lc-desires-count-banner {
    background: rgba(245, 158, 11, 0.12);
    color: #D97706;
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.lc-desires-count-banner.lc-alert-success {
    display: none;
}

[data-theme="night"] .lc-desires-count-banner {
    background: rgba(245, 158, 11, 0.08);
    color: #FBBF24;
    border-color: rgba(245, 158, 11, 0.3);
}

/* Desires header: compact spacing (W-FIX-314C) */
.lc-desires-header {
    margin-bottom: 12px;
}

.lc-desires-header h2 {
    margin-bottom: 4px;
}

.lc-desires-count-banner {
    margin-bottom: 16px;
}

/* --- Alert Banners (W-FIX-292B) --- */
.lc-alert {
    padding: var(--lc-space-2, 0.5rem) var(--lc-space-4, 1rem);
    border-radius: var(--lc-radius, 0.5rem);
    font-size: var(--lc-font-size-sm, 0.875rem);
    font-weight: 600;
    margin-bottom: var(--lc-space-4, 1rem);
}

.lc-alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--lc-success, #10B981);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.lc-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--lc-warning, #F59E0B);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* --- Profile Page Additions (W-FIX-293) --- */

/* Card header inside profile sections */
.lc-card-header {
    margin-bottom: var(--lc-space-2, 0.5rem);
}

.lc-card-header h3 {
    font-size: var(--lc-font-size-sm, 0.875rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lc-text-secondary, #6B7280);
    margin: 0;
}

/* === Profile info cards — vibrant gradient + padded headers (W-FIX-319) === */
.lc-profile-section .lc-card {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FFC947 100%);
    padding: 16px 20px;
    overflow: visible;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    cursor: default;
    color: #fff;
    border-radius: 12px;
}
.lc-profile-section .lc-card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}
.lc-profile-section .lc-card:active {
    transform: none;
}
.lc-profile-section .lc-card-header {
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.lc-profile-section .lc-card-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    padding: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
[data-theme="night"] .lc-profile-section .lc-card {
    background: linear-gradient(135deg, #CC4444 0%, #CC6B33 50%, #CC9E2E 100%);
    box-shadow: 0 4px 12px rgba(204, 68, 68, 0.3);
}
[data-theme="night"] .lc-profile-section .lc-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}
[data-theme="night"] .lc-profile-section .lc-card-header h3 {
    color: #fff;
}

/* 2-column grid for info cards */
.lc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--lc-space-4, 1rem);
    margin-bottom: var(--lc-space-4, 1rem);
}

@media (max-width: 480px) {
    .lc-grid-2 { grid-template-columns: 1fr; }
}

/* Profile bio text */
.lc-profile-bio {
    color: var(--lc-text-secondary, #6B7280);
    line-height: 1.6;
    font-size: var(--lc-font-size-base, 1rem);
}

/* Badge success (verified) */
.lc-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--lc-success, #10B981);
    padding: 2px 8px;
    border-radius: var(--lc-radius-full, 9999px);
    font-size: var(--lc-font-size-xs, 0.75rem);
    font-weight: 600;
}

/* Desires category grouping */
.lc-desires-category {
    margin-bottom: var(--lc-space-4, 1rem);
}

.lc-desires-category h4 {
    font-size: var(--lc-font-size-sm, 0.875rem);
    color: var(--lc-text-secondary, #6B7280);
    margin-bottom: var(--lc-space-2, 0.5rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Desires count */
.lc-desires-count {
    font-size: var(--lc-font-size-sm, 0.875rem);
    color: var(--lc-text-secondary, #6B7280);
    margin-bottom: var(--lc-space-3, 0.75rem);
}

/* --- Profile Edit Additions (W-FIX-293) --- */

/* Form sections */
.lc-form-section {
    background: linear-gradient(135deg, #6A1B4D 0%, #A0306A 50%, #E91E63 100%);
    color: #fff;
    border-radius: var(--lc-radius-lg, 1rem);
    padding: var(--lc-space-6, 1.5rem);
    margin-bottom: var(--lc-space-4, 1rem);
    box-shadow: 0 4px 15px rgba(106, 27, 77, 0.3);
    border: none;
}

.lc-form-section h3 {
    font-size: var(--lc-font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--lc-space-4, 1rem);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.lc-form-section .lc-form-label,
.lc-form-section .lc-checkbox-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Inputs inside gradient form sections — borderless modern style */
.lc-form-section input,
.lc-form-section textarea,
.lc-form-section select,
.lc-form-section .lc-form-select,
.lc-form-section .lc-select {
    background: transparent;
    color: #fff;
    border: none;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    padding: 8px 0;
    font-size: 1rem;
}

.lc-form-section input::placeholder,
.lc-form-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.lc-form-section input:focus,
.lc-form-section textarea:focus,
.lc-form-section select:focus {
    border-bottom-color: #fff;
    box-shadow: none;
    outline: none;
}

.lc-form-section textarea {
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--lc-radius, 0.5rem);
    padding: 10px 12px;
}

.lc-form-section textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Select arrow override for gradient bg */
.lc-form-section .lc-form-select,
.lc-form-section .lc-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
}

/* Dropdown options — dark bg so text is readable */
.lc-form-section select option {
    background: #3D0F2F;
    color: #fff;
}

/* Form rows */
.lc-form-row {
    margin-bottom: var(--lc-space-4, 1rem);
}

/* Form select */
.lc-form-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--lc-border, #E5E7EB);
    border-radius: var(--lc-radius, 0.5rem);
    font-size: var(--lc-font-size-base, 1rem);
    color: var(--lc-text-primary, #1A1A2E);
    background: var(--lc-bg-secondary, #FFFFFF);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236B7280'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s ease;
}

.lc-form-select:focus {
    border-color: var(--lc-brand-primary, #E91E63);
    outline: none;
}

/* Profile edit container */
.lc-profile-container {
    max-width: 720px;
    margin: 0 auto;
}

.lc-profile-edit {
    padding: var(--lc-space-4, 1rem) 0;
}

/* --- Photos Grid (W-FIX-297C) --- */
.lc-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lc-space-sm, 0.5rem);
    margin: var(--lc-space-4, 1rem) 0;
}

@media (max-width: 768px) {
    .lc-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .lc-photos-grid {
        grid-template-columns: 1fr;
    }
}

.lc-photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--lc-radius, 0.5rem);
    background: var(--lc-gray-100, #f3f4f6);
}

.lc-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.lc-photo-item:hover img {
    transform: scale(1.05);
}

.lc-photo-star,
.lc-photo-trash {
    position: absolute;
    bottom: var(--lc-space-xs, 0.25rem);
    padding: var(--lc-space-xs, 0.25rem);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lc-photo-star {
    left: var(--lc-space-xs, 0.25rem);
}

.lc-photo-star.profile-pic {
    color: #fbbf24; /* Gold for profile picture */
    pointer-events: none;
}

.lc-photo-star:not(.profile-pic):hover {
    color: #fbbf24;
    transform: scale(1.1);
}

.lc-photo-trash {
    right: var(--lc-space-xs, 0.25rem);
    color: #ef4444; /* Red */
}

.lc-photo-trash:hover {
    color: #dc2626;
    transform: scale(1.1);
}

/* --- Theme Toggle Button — Topbar (W-FIX-310) --- */
.lc-theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.lc-theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.lc-theme-toggle-btn:active {
    transform: scale(0.9);
}

[data-theme="night"] .lc-theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="night"] .lc-theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* === Night mode: profile edit form (W-FIX-326) === */
[data-theme="night"] .lc-form-section {
    background: linear-gradient(135deg, #4A0E35 0%, #7B1F50 50%, #C2185B 100%);
    box-shadow: 0 4px 15px rgba(74, 14, 53, 0.5);
}

/* Night mode inputs inside gradient — same transparent borderless style */
[data-theme="night"] .lc-form-section input,
[data-theme="night"] .lc-form-section textarea,
[data-theme="night"] .lc-form-section select,
[data-theme="night"] .lc-form-section .lc-form-select,
[data-theme="night"] .lc-form-section .lc-select {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="night"] .lc-checkbox-label {
    color: #fff;
}


/* ═══════════════════════════════════════
   ADR-89 — Desires 5-Level Pill System (W-FIX-241)
   ═══════════════════════════════════════ */

/* Card overrides for desires page */
.lc-desires-card {
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid #D4A0FF;
    background: linear-gradient(135deg, #FDFAFF 0%, #F3E8FF 50%, #EDE0FA 100%);
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.08);
    padding: 20px 24px;
    cursor: default;
}

.lc-desires-card:hover,
.lc-desires-card:active {
    transform: none;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.08);
}

.lc-desires-card .lc-card-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(155, 89, 182, 0.15);
}

.lc-desires-card .lc-card-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #6A1B9A;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

[data-theme="night"] .lc-desires-card {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.08) 0%, rgba(155, 89, 182, 0.12) 100%);
    border-color: #7B2FBE;
}

[data-theme="night"] .lc-desires-card .lc-card-header h3 {
    color: #D4A0FF;
}

/* Row: desire label + pills */
.lc-desires-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lc-desire-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.lc-desire-label {
    flex: 1;
    font-size: 0.88rem;
    color: #4A148C;
    font-weight: 500;
    min-width: 0;
}

[data-theme="night"] .lc-desire-label {
    color: #D4A0FF;
}

.lc-level-pills {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* Base pill button */
.lc-level-pill {
    width: 32px;
    height: 28px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
    opacity: 0.35;
    background: transparent;
    line-height: 1;
    padding: 0;
    user-select: none;
}

/* Level colors — inactive (dimmed) */
.lc-level-1 { border-color: #10B981; color: #10B981; }
.lc-level-2 { border-color: #3B82F6; color: #3B82F6; }
.lc-level-3 { border-color: #F59E0B; color: #F59E0B; }
.lc-level-4 { border-color: #F97316; color: #F97316; }
.lc-level-5 { border-color: #9CA3AF; color: #9CA3AF; }

/* Hover: slightly more visible */
.lc-level-pill:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}

/* Active state: full color + 3D press effect */
.lc-level-pill.lc-level-active {
    opacity: 1;
    transform: translateY(-2px);
}

.lc-level-1.lc-level-active {
    background: #9CA3AF;
    border-color: #6B7280;
    color: #fff;
    box-shadow: 0 3px 0 #4B5563, 0 3px 8px rgba(156,163,175,0.3);
}

.lc-level-2.lc-level-active {
    background: #F97316;
    border-color: #EA580C;
    color: #fff;
    box-shadow: 0 3px 0 #C2410C, 0 3px 8px rgba(249,115,22,0.3);
}

.lc-level-3.lc-level-active {
    background: #F59E0B;
    border-color: #D97706;
    color: #fff;
    box-shadow: 0 3px 0 #B45309, 0 3px 8px rgba(245,158,11,0.3);
}

.lc-level-4.lc-level-active {
    background: #3B82F6;
    border-color: #2563EB;
    color: #fff;
    box-shadow: 0 3px 0 #1D4ED8, 0 3px 8px rgba(59,130,246,0.3);
}

.lc-level-5.lc-level-active {
    background: #E91E63;
    border-color: #C2185B;
    color: #fff;
    box-shadow: 0 3px 0 #880E4F, 0 3px 8px rgba(233,30,99,0.35);
}

/* Press animation */
.lc-level-pill.lc-level-active:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 currentColor;
}

/* Night mode adjustments */
[data-theme="night"] .lc-level-1 { border-color: #34D399; color: #34D399; }
[data-theme="night"] .lc-level-2 { border-color: #60A5FA; color: #60A5FA; }
[data-theme="night"] .lc-level-3 { border-color: #FBBF24; color: #FBBF24; }
[data-theme="night"] .lc-level-4 { border-color: #FB923C; color: #FB923C; }
[data-theme="night"] .lc-level-5 { border-color: #F06292; color: #F06292; }

/* Legend row */
.lc-level-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--lc-bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--lc-border-light);
}

.lc-level-legend .lc-level-pill {
    opacity: 1;
    width: auto;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: default;
    pointer-events: none;
}

/* Mobile: stack label above pills */
@media (max-width: 480px) {
    .lc-desire-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 6px 0;
        border-bottom: 1px solid rgba(155, 89, 182, 0.1);
    }

    .lc-desire-row:last-child {
        border-bottom: none;
    }

    .lc-level-pills {
        width: 100%;
        justify-content: flex-start;
    }

    .lc-level-pill {
        flex: 1;
        max-width: 48px;
    }
}


/* ═══════════════════════════════════════
   ADR-89 W-FIX-241b: Desires page — layout + palette rework
   ═══════════════════════════════════════ */

/* ── Card grid: 1 col mobile → 2 col tablet → 3 col desktop ── */
#lc-desires-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

/* Buttons row: full width, not a grid item */
#lc-desires-form > .lc-page-header {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    #lc-desires-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    #lc-desires-form {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Legend pills: palette rosa-rosso ── */
.lc-level-legend .lc-level-1 { border-color: #9CA3AF; color: #9CA3AF; }
.lc-level-legend .lc-level-2 { border-color: #7B1D46; color: #7B1D46; }
.lc-level-legend .lc-level-3 { border-color: #9C2752; color: #9C2752; }
.lc-level-legend .lc-level-4 { border-color: #C2185B; color: #C2185B; }
.lc-level-legend .lc-level-5 { border-color: #E91E63; color: #E91E63; }

/* ── Inactive pill borders: rosa-rosso scale ── */
.lc-level-1 { border-color: #E91E63; color: #E91E63; }
.lc-level-2 { border-color: #C2185B; color: #C2185B; }
.lc-level-3 { border-color: #9C2752; color: #9C2752; }
.lc-level-4 { border-color: #7B1D46; color: #7B1D46; }
.lc-level-5 { border-color: #9CA3AF; color: #9CA3AF; }

/* ── Active pill: filled rosa-rosso + 3D shadow ── */
.lc-level-1.lc-level-active {
    background: #9CA3AF;
    border-color: #6B7280;
    color: #fff;
    box-shadow: 0 3px 0 #4B5563, 0 3px 8px rgba(156,163,175,0.3);
}
.lc-level-2.lc-level-active {
    background: #7B1D46;
    border-color: #5A1533;
    color: #fff;
    box-shadow: 0 3px 0 #3A0D22, 0 3px 8px rgba(123,29,70,0.35);
}
.lc-level-3.lc-level-active {
    background: #9C2752;
    border-color: #7B1D46;
    color: #fff;
    box-shadow: 0 3px 0 #4E0F2C, 0 3px 8px rgba(156,39,82,0.35);
}
.lc-level-4.lc-level-active {
    background: #C2185B;
    border-color: #9C2752;
    color: #fff;
    box-shadow: 0 3px 0 #6A0F38, 0 3px 8px rgba(194,24,91,0.35);
}
.lc-level-5.lc-level-active {
    background: #E91E63;
    border-color: #C2185B;
    color: #fff;
    box-shadow: 0 3px 0 #880E4F, 0 3px 8px rgba(233,30,99,0.35);
}

/* ── Night mode: same hues, slightly brighter ── */
[data-theme="night"] .lc-level-1 { border-color: #D1D5DB; color: #D1D5DB; }
[data-theme="night"] .lc-level-2 { border-color: #9C2752; color: #9C2752; }
[data-theme="night"] .lc-level-3 { border-color: #C2185B; color: #C2185B; }
[data-theme="night"] .lc-level-4 { border-color: #E91E63; color: #E91E63; }
[data-theme="night"] .lc-level-5 { border-color: #F06292; color: #F06292; }

[data-theme="night"] .lc-level-1.lc-level-active { background: #9CA3AF; border-color: #6B7280; box-shadow: 0 3px 0 #4B5563, 0 3px 8px rgba(156,163,175,0.3); }
[data-theme="night"] .lc-level-2.lc-level-active { background: #9C2752; border-color: #7B1D46; box-shadow: 0 3px 0 #4E0F2C, 0 3px 8px rgba(156,39,82,0.4); }
[data-theme="night"] .lc-level-3.lc-level-active { background: #C2185B; border-color: #9C2752; box-shadow: 0 3px 0 #6A0F38, 0 3px 8px rgba(194,24,91,0.4); }
[data-theme="night"] .lc-level-4.lc-level-active { background: #E91E63; border-color: #C2185B; box-shadow: 0 3px 0 #880E4F, 0 3px 8px rgba(233,30,99,0.4); }


/* ═══════════════════════════════════════
   ADR-89 W-FIX-241d: Desires — PNG icon pills
   ═══════════════════════════════════════ */

/* ── Legenda flat ── */
.lc-level-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 20px;
    padding: 10px 0 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(155,89,182,0.12);
}
.lc-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: none;
    padding: 0;
    pointer-events: none;
}
.lc-legend-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}
.lc-legend-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.lc-legend-1 { color: #F06292; }
.lc-legend-2 { color: #E91E63; }
.lc-legend-3 { color: #C2185B; }
.lc-legend-4 { color: #9C2752; }
.lc-legend-5 { color: #6A1B4D; }

/* ── Mini-legenda icone dentro il box ── */
.lc-box-icon-legend {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    padding: 6px 0 8px 0;
    border-bottom: 1px solid rgba(155,89,182,0.1);
    margin-bottom: 6px;
}
.lc-box-icon-legend--bottom {
    border-bottom: none;
    border-top: 1px solid rgba(155,89,182,0.1);
    padding: 8px 0 4px 0;
    margin-top: 6px;
    margin-bottom: 0;
}
.lc-box-legend-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.35;
    display: block;
}

/* ── Pill button con icona PNG ── */
.lc-level-pill[data-level] {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid transparent;
    background: rgba(155,89,182,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    opacity: 0.4;
}
.lc-level-pill[data-level]:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}
.lc-pill-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* ── Stato attivo ── */
.lc-level-pill.lc-level-active {
    opacity: 1;
    transform: translateY(-2px) scale(1.12);
}
.lc-level-pill.lc-level-1.lc-level-active { background: #6A1B4D; border-color: #4A0E35; box-shadow: 0 3px 0 #2D0020, 0 4px 10px rgba(106,27,77,0.3); }
.lc-level-pill.lc-level-2.lc-level-active { background: #9C2752; border-color: #7B1D46; box-shadow: 0 3px 0 #4E0F2C, 0 4px 10px rgba(156,39,82,0.3); }
.lc-level-pill.lc-level-3.lc-level-active { background: #C2185B; border-color: #9C2752; box-shadow: 0 3px 0 #6D0D36, 0 4px 10px rgba(194,24,91,0.3); }
.lc-level-pill.lc-level-4.lc-level-active { background: #E91E63; border-color: #C2185B; box-shadow: 0 3px 0 #880E4F, 0 4px 10px rgba(233,30,99,0.3); }
.lc-level-pill.lc-level-5.lc-level-active { background: #F06292; border-color: #AD1457; box-shadow: 0 3px 0 #880E4F, 0 4px 10px rgba(240,98,146,0.3); }

/* Icona bianca quando attiva (filtro CSS) */
.lc-level-pill.lc-level-active .lc-pill-icon {
    filter: brightness(0) invert(1);
}

/* ── Night mode ── */
[data-theme="night"] .lc-level-pill[data-level] {
    background: rgba(155,89,182,0.15);
}
[data-theme="night"] .lc-level-legend {
    border-bottom-color: rgba(155,89,182,0.2);
}
[data-theme="night"] .lc-legend-label {
    color: rgba(255,255,255,0.6);
}

/* ── Remove old number/emoji pill overrides ── */
.lc-level-pill[data-level].lc-level-1,
.lc-level-pill[data-level].lc-level-2,
.lc-level-pill[data-level].lc-level-3,
.lc-level-pill[data-level].lc-level-4,
.lc-level-pill[data-level].lc-level-5 {
    color: transparent;
    font-size: 0;
}

/* ═══ W-FIX-241e: legenda solo icone + allineamento mini-legenda ═══ */

/* Legenda top: solo icone, 15% più grandi (32px → 37px) */
.lc-level-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(155,89,182,0.12);
    align-items: center;
}
.lc-legend-icon-img {
    width: 37px;
    height: 37px;
    object-fit: contain;
    display: block;
}

/* Mini-legenda TOP: usa stessa struttura di lc-desire-row
   — label vuota a sinistra, pills a destra → perfetto allineamento */
.lc-box-icon-legend-row {
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(155,89,182,0.1);
}
.lc-level-pill--legend {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 4px;
    cursor: default;
    pointer-events: none;
}
.lc-box-legend-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.35;
    display: block;
}

/* Nascondi lc-box-icon-legend--bottom (rimosso dal template ma per sicurezza) */
.lc-box-icon-legend--bottom { display: none; }

/* ═══ W-FIX-241h: pill inattivo = X CSS, attivo = icona ═══ */

/* Pill inattivo: nasconde img, mostra X */
.lc-pill-inactive {
    background: rgba(155,89,182,0.06) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    position: relative;
}
.lc-pill-inactive .lc-pill-icon {
    display: none !important;
}
.lc-pill-inactive::before {
    content: '✕';
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: rgba(155,89,182,0.35);
}
.lc-pill-inactive:hover::before {
    color: rgba(155,89,182,0.65);
}

/* Pill attivo: mostra icona, nessuna X */
.lc-level-active::before {
    content: none !important;
}
.lc-level-active .lc-pill-icon {
    display: block !important;
    filter: brightness(0) invert(1);
}

/* ═══ W-FIX-241i: mini-legend più visibile + pill attivo = X colorata ═══ */

/* Mini-legenda TOP: più visibile */
.lc-box-legend-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    opacity: 0.65;
    display: block;
}
.lc-box-icon-legend-row {
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 2px solid rgba(155,89,182,0.25);
}

/* Pill ATTIVO: X colorata (non mostra icona) */
.lc-level-active::before {
    content: '✕' !important;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}
.lc-level-active .lc-pill-icon {
    display: none !important;
}

/* Colori X attiva per ogni livello */
.lc-level-1.lc-level-active { background: #6A1B4D !important; border-color: #4A0E35 !important; box-shadow: 0 3px 0 #2D0020, 0 4px 10px rgba(106,27,77,0.35) !important; }
.lc-level-2.lc-level-active { background: #9C2752 !important; border-color: #7B1D46 !important; box-shadow: 0 3px 0 #4E0F2C, 0 4px 10px rgba(156,39,82,0.35) !important; }
.lc-level-3.lc-level-active { background: #C2185B !important; border-color: #9C2752 !important; box-shadow: 0 3px 0 #6D0D36, 0 4px 10px rgba(194,24,91,0.35) !important; }
.lc-level-4.lc-level-active { background: #E91E63 !important; border-color: #C2185B !important; box-shadow: 0 3px 0 #880E4F, 0 4px 10px rgba(233,30,99,0.35) !important; }
.lc-level-5.lc-level-active { background: #F06292 !important; border-color: #AD1457 !important; box-shadow: 0 3px 0 #880E4F, 0 4px 10px rgba(240,98,146,0.35) !important; }

/* ═══ W-FIX-241j: mini-legenda TOP più visibile ═══ */
.lc-box-icon-legend-row {
    padding: 6px 0 10px 0;
    margin-bottom: 8px;
    border-bottom: 2px solid rgba(155,89,182,0.3);
}
.lc-box-legend-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.75;
    display: block;
}
.lc-level-pill--legend {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(155,89,182,0.08);
    border: 1.5px solid rgba(155,89,182,0.2);
    border-radius: 8px;
    padding: 4px;
    cursor: default;
    pointer-events: none;
}

/* ═══ W-FIX-241k: mini-legenda TOP molto più visibile ═══ */
.lc-box-icon-legend-row {
    padding: 8px 0 12px 0;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(155,89,182,0.4);
}
.lc-level-pill--legend {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(155,89,182,0.15);
    border: 2px solid rgba(155,89,182,0.4);
    border-radius: 10px;
    padding: 5px;
    cursor: default;
    pointer-events: none;
}
.lc-box-legend-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 1;
    display: block;
}

/* ═══ W-FIX-241l: mini-legenda TOP — sfondo solido, piena visibilità ═══ */
.lc-box-icon-legend-row {
    padding: 10px 0 14px 0;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(155,89,182,0.5);
}
.lc-level-pill--legend {
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: 2px solid #C2185B !important;
    border-radius: 10px !important;
    padding: 6px !important;
    cursor: default !important;
    pointer-events: none !important;
    box-shadow: 0 2px 6px rgba(194,24,91,0.18) !important;
}
.lc-box-legend-icon {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain !important;
    opacity: 1 !important;
    display: block !important;
    filter: none !important;
}
[data-theme="night"] .lc-level-pill--legend {
    background: rgba(255,255,255,0.1) !important;
    border-color: #E91E63 !important;
}

/* ═══ W-FIX-241m: mini-legenda — allineamento esatto + dimensioni corrette ═══ */

/* Stessa struttura di lc-desire-row per allineamento perfetto */
.lc-box-icon-legend-row {
    padding: 6px 0 10px 0;
    margin-bottom: 8px;
    border-bottom: 2px solid rgba(194,24,91,0.35);
}

/* Pill legenda: stesse dimensioni dei pill reali (32px width, gap 4px) */
.lc-level-pills--legend {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.lc-level-pill--legend {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: 2px solid #C2185B !important;
    border-radius: 7px !important;
    padding: 3px !important;
    cursor: default !important;
    pointer-events: none !important;
    box-shadow: 0 1px 4px rgba(194,24,91,0.2) !important;
}
.lc-box-legend-icon {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    opacity: 1 !important;
    display: block !important;
}
[data-theme="night"] .lc-level-pill--legend {
    background: rgba(255,255,255,0.12) !important;
    border-color: #E91E63 !important;
}

/* ═══ W-FIX-241n: mini-legenda allineamento ESATTO — stesse dimensioni pill reali ═══ */
.lc-level-pills--legend {
    display: flex;
    gap: 4px;         /* identico a lc-level-pills */
    flex-shrink: 0;
}
.lc-level-pill--legend {
    width: 36px !important;   /* identico a lc-level-pill[data-level] */
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(194,24,91,0.12) !important;
    border: 1.5px solid rgba(194,24,91,0.5) !important;
    border-radius: 8px !important;
    padding: 4px !important;  /* identico al pill */
    cursor: default !important;
    pointer-events: none !important;
    box-shadow: none !important;
}
.lc-box-legend-icon {
    width: 24px !important;   /* identico a lc-pill-icon */
    height: 24px !important;
    object-fit: contain !important;
    opacity: 1 !important;
    display: block !important;
}


/* Dashboard suggested cards — tighter spacing (ISS-018) */
.lc-suggested-info {
    padding: 8px 10px 12px;
    line-height: 1.25;
}
.lc-suggested-info strong {
    display: block;
    margin-bottom: 1px;
    font-size: 1rem;
}
.lc-suggested-info span {
    display: block;
    font-size: 0.82em;
    opacity: 0.75;
}


/* === ISS-018: Profile toolbar buttons — visible on light background === */
.lc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.lc-btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}
.lc-profile-hero .lc-toolbar .lc-btn-primary {
    background: var(--lc-brand-primary, #E91E63);
    color: #fff;
    border: 2px solid var(--lc-brand-primary, #E91E63);
    font-weight: 700;
}
.lc-profile-hero .lc-toolbar .lc-btn-primary:hover {
    background: var(--lc-brand-dark, #C2185B);
    border-color: var(--lc-brand-dark, #C2185B);
}
.lc-profile-hero .lc-toolbar .lc-btn-secondary {
    background: transparent;
    color: var(--lc-brand-primary, #E91E63);
    border: 2px solid var(--lc-brand-primary, #E91E63);
    font-weight: 600;
}
.lc-profile-hero .lc-toolbar .lc-btn-secondary:hover {
    background: var(--lc-brand-primary, #E91E63);
    color: #fff;
}
/* Night mode */
[data-theme="night"] .lc-profile-hero .lc-toolbar .lc-btn-primary {
    background: var(--lc-brand-primary, #E91E63);
    color: #fff;
    border-color: var(--lc-brand-primary, #E91E63);
}
[data-theme="night"] .lc-profile-hero .lc-toolbar .lc-btn-secondary {
    background: transparent;
    color: var(--lc-brand-primary, #E91E63);
    border-color: var(--lc-brand-primary, #E91E63);
}

/* ═══════════════════════════════════════════════
   VALUES PAGE (Philia/Agape/Storge) — v2.8.0
   ═══════════════════════════════════════════════ */

/* Values card — same base as desires card but with colored left border */
.lc-values-card {
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid #D4A0FF;
    border-left: 4px solid #7C3AED;
    background: linear-gradient(135deg, #FDFAFF 0%, #F3E8FF 50%, #EDE0FA 100%);
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.08);
    padding: 20px 24px;
}
.lc-values-card--philia  { border-left-color: #7C3AED; }
.lc-values-card--agape   { border-left-color: #EC4899; }
.lc-values-card--storge  { border-left-color: #10B981; }

[data-theme="night"] .lc-values-card {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.08) 0%, rgba(155, 89, 182, 0.12) 100%);
    border-color: #7B2FBE;
}
[data-theme="night"] .lc-values-card--philia  { border-left-color: #A78BFA; }
[data-theme="night"] .lc-values-card--agape   { border-left-color: #F472B6; }
[data-theme="night"] .lc-values-card--storge  { border-left-color: #34D399; }

/* Subtitle under category name */
.lc-values-subtitle {
    font-size: 0.82rem;
    font-style: italic;
    color: #9B59B6;
    margin-top: 2px;
    margin-bottom: 8px;
    font-weight: 400;
}
[data-theme="night"] .lc-values-subtitle {
    color: #D4A0FF;
}

/* Value pills: numbered circles 1-5 */
.lc-value-pills {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.lc-value-pill {
    width: 32px;
    height: 28px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
    opacity: 0.35;
    background: transparent;
    line-height: 1;
    padding: 0;
    user-select: none;
}
/* Value level colors — 1=Non cerco(red) 2=Indifferente(gray) 3=Apprezzo(amber) 4=Importante(blue) 5=Fondamentale(purple) */
.lc-value-pill-1 { border-color: #EF4444; color: #EF4444; }
.lc-value-pill-2 { border-color: #9CA3AF; color: #9CA3AF; }
.lc-value-pill-3 { border-color: #F59E0B; color: #F59E0B; }
.lc-value-pill-4 { border-color: #3B82F6; color: #3B82F6; }
.lc-value-pill-5 { border-color: #7C3AED; color: #7C3AED; }

.lc-value-pill:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}
.lc-value-pill.lc-level-active {
    opacity: 1;
    transform: translateY(-2px);
}
.lc-value-pill-1.lc-level-active {
    background: #EF4444; border-color: #DC2626; color: #fff;
    box-shadow: 0 3px 0 #B91C1C, 0 3px 8px rgba(239,68,68,0.3);
}
.lc-value-pill-2.lc-level-active {
    background: #9CA3AF; border-color: #6B7280; color: #fff;
    box-shadow: 0 3px 0 #4B5563, 0 3px 8px rgba(156,163,175,0.3);
}
.lc-value-pill-3.lc-level-active {
    background: #F59E0B; border-color: #D97706; color: #fff;
    box-shadow: 0 3px 0 #B45309, 0 3px 8px rgba(245,158,11,0.3);
}
.lc-value-pill-4.lc-level-active {
    background: #3B82F6; border-color: #2563EB; color: #fff;
    box-shadow: 0 3px 0 #1D4ED8, 0 3px 8px rgba(59,130,246,0.3);
}
.lc-value-pill-5.lc-level-active {
    background: #7C3AED; border-color: #6D28D9; color: #fff;
    box-shadow: 0 3px 0 #5B21B6, 0 3px 8px rgba(124,58,237,0.3);
}
.lc-value-pill.lc-level-active:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 currentColor;
}

[data-theme="night"] .lc-value-pill-1 { border-color: #F87171; color: #F87171; }
[data-theme="night"] .lc-value-pill-2 { border-color: #D1D5DB; color: #D1D5DB; }
[data-theme="night"] .lc-value-pill-3 { border-color: #FBBF24; color: #FBBF24; }
[data-theme="night"] .lc-value-pill-4 { border-color: #60A5FA; color: #60A5FA; }
[data-theme="night"] .lc-value-pill-5 { border-color: #A78BFA; color: #A78BFA; }

/* Values legend */
.lc-values-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--lc-bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--lc-border-light);
}
.lc-values-legend .lc-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--lc-text-secondary);
}
.lc-value-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.lc-value-dot-1 { background: #EF4444; }
.lc-value-dot-2 { background: #9CA3AF; }
.lc-value-dot-3 { background: #F59E0B; }
.lc-value-dot-4 { background: #3B82F6; }
.lc-value-dot-5 { background: #7C3AED; }

/* Values form buttons — same as desires form */
form#lc-values-form .lc-btn-primary {
    background: var(--lc-brand-primary, #E91E63);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 8px;
}
form#lc-values-form .lc-btn-primary:hover {
    filter: brightness(1.1);
}
form#lc-values-form .lc-btn-secondary {
    background: transparent;
    color: var(--lc-brand-primary, #E91E63);
    border: 1.5px solid var(--lc-brand-primary, #E91E63);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 8px;
}

/* Profile values section */
.lc-profile-values-section {
    border-top: 2px solid rgba(124, 58, 237, 0.2);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}
.lc-profile-values-section h3 {
    color: #7C3AED;
}
[data-theme="night"] .lc-profile-values-section h3 {
    color: #A78BFA;
}
[data-theme="night"] .lc-profile-values-section {
    border-top-color: rgba(167, 139, 250, 0.2);
}

/* Value level tags on profile */
.lc-value-tag-5 { background: rgba(124, 58, 237, 0.12); color: #7C3AED; border: 1px solid rgba(124, 58, 237, 0.3); }
.lc-value-tag-4 { background: rgba(59, 130, 246, 0.12); color: #2563EB; border: 1px solid rgba(59, 130, 246, 0.3); }
.lc-value-tag-3 { background: rgba(245, 158, 11, 0.12); color: #B45309; border: 1px solid rgba(245, 158, 11, 0.3); }
.lc-value-tag-2 { background: rgba(156, 163, 175, 0.12); color: #6B7280; border: 1px solid rgba(156, 163, 175, 0.3); }
.lc-value-tag-1 { background: rgba(239, 68, 68, 0.12); color: #DC2626; border: 1px solid rgba(239, 68, 68, 0.3); }

[data-theme="night"] .lc-value-tag-5 { background: rgba(124, 58, 237, 0.2); color: #A78BFA; border-color: rgba(167, 139, 250, 0.3); }
[data-theme="night"] .lc-value-tag-4 { background: rgba(59, 130, 246, 0.2); color: #60A5FA; border-color: rgba(96, 165, 250, 0.3); }
[data-theme="night"] .lc-value-tag-3 { background: rgba(245, 158, 11, 0.2); color: #FBBF24; border-color: rgba(251, 191, 36, 0.3); }
[data-theme="night"] .lc-value-tag-2 { background: rgba(156, 163, 175, 0.2); color: #D1D5DB; border-color: rgba(209, 213, 219, 0.3); }
[data-theme="night"] .lc-value-tag-1 { background: rgba(239, 68, 68, 0.2); color: #F87171; border-color: rgba(248, 113, 113, 0.3); }

/* Value level label (small text inside tag) */
.lc-value-level-label {
    display: block;
    font-size: 0.68rem;
    opacity: 0.75;
    font-weight: 400;
    margin-top: 1px;
}

/* Mobile: stack value pills */
@media (max-width: 480px) {
    .lc-values-legend {
        gap: 6px;
        padding: 8px 12px;
    }
    .lc-values-legend .lc-legend-item {
        font-size: 0.75rem;
    }
}

/* Values cat subtitle */
.lc-values-cat-subtitle {
    font-size: 0.82rem;
    font-style: italic;
    color: #9B59B6;
    margin-top: 2px;
    margin-bottom: 8px;
    font-weight: 400;
    padding: 0 16px;
}
[data-theme="night"] .lc-values-cat-subtitle {
    color: #D4A0FF;
}
