/* --- Variables & Reset --- */
:root {
    --pop-primary: #8b5cf6;
    /* Violet */
    --pop-secondary: #ec4899;
    /* Pink */
    --pop-dark: #1e293b;
    --pop-gray: #64748b;
    --pop-bg: #f8fafc;
    --pop-glass: rgba(255, 255, 255, 0.2);
    --pop-radius: 24px;
}

.pop-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    padding: 0;
    /* Removed padding */
    background: transparent;
    width: 100%;
}

.pop-card {
    width: 100%;
    max-width: 100%;
    /* Full width */
    background: #fff;
    border-radius: 0;
    /* No radius */
    box-shadow: none;
    overflow: hidden;
    position: relative;
    border: none;
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* Full viewport height */
    max-height: 100vh;
}

/* --- HERO SECTION --- */
.pop-hero {
    height: 380px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    /* Prevent hero from shrinking */
}

.pop-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.7s ease;
}

.pop-card:hover .pop-hero-bg {
    transform: scale(1.05);
}

.pop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.pop-hero-top {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.pop-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    background: var(--pop-glass);
    backdrop-filter: blur(8px);
    transition: background 0.2s;
}

.pop-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pop-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 10;
    color: white;
    transform: translateY(10px);
    transition: transform 0.3s;
}

.pop-card:hover .pop-hero-content {
    transform: translateY(0);
}

.pop-title-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.pop-title-row h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: white;
    line-height: 1;
}

.pop-age-badge {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
}

.pop-tags-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pop-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--pop-glass);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- TABS --- */
.pop-tabs {
    display: flex;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 12px;
    flex-grow: 1;
}

.pop-tab {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--pop-gray);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    white-space: nowrap;
}

.pop-tab.active {
    background: white;
    color: var(--pop-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pop-tab:nth-child(2).active {
    color: var(--pop-secondary);
}

/* --- BODY CONTENT --- */
.pop-body {
    padding: 24px;
    padding-bottom: 80px;
    /* Space for Nav Bar */
    min-height: 320px;
    overflow-y: auto;
    /* Scrollable content */
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll iOS */
}

.pop-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.pop-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pop-section-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.pop-bio-text {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 24px;
}

.pop-hobbies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.pop-hobbies span {
    font-size: 12px;
    font-weight: 600;
    color: var(--pop-primary);
    background: #f5f3ff;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #ddd6fe;
}

.pop-promo {
    background: linear-gradient(135deg, var(--pop-primary), var(--pop-secondary));
    padding: 16px;
    border-radius: 16px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.4);
}

.pop-promo p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.pop-btn-small {
    background: white;
    color: var(--pop-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

/* --- CHART --- */
.pop-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pop-compare-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pop-gray);
}

.pop-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

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

.pop-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 20px;
}

.pop-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.pop-slider {
    background-color: var(--pop-secondary);
}

input:checked+.pop-slider:before {
    transform: translateX(16px);
}

.pop-chart-container {
    height: 250px;
    margin-bottom: 20px;
}

.pop-stats-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pop-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.pop-stat-item.green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.pop-stat-item.orange {
    background: #fff7ed;
    border-color: #fed7aa;
}

.pop-stat-item .icon-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.pop-stat-item.green .icon-box {
    background: #dcfce7;
    color: #16a34a;
}

.pop-stat-item.orange .icon-box {
    background: #ffedd5;
    color: #ea580c;
}

.pop-stat-item strong {
    font-size: 12px;
    display: block;
    color: #334155;
}

.pop-stat-item p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

/* --- DRAWER (EDIT) --- */
.pop-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.pop-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.pop-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 380px;
    background: white;
    z-index: 9999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 24px;
    overflow-y: auto;
}

.pop-drawer.open {
    transform: translateX(0);
}

.pop-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.pop-drawer-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--pop-dark);
}

.pop-close-drawer {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pop-dark);
}

.pop-form .pop-field {
    margin-bottom: 20px;
}

.pop-form label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 8px;
}

.pop-form input,
.pop-form select,
.pop-form textarea {
    width: 100%;
    padding: 12px 16px;
    min-height: 48px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: var(--pop-dark);
    transition: all 0.2s;
}

.pop-form input:focus {
    outline: none;
    border-color: var(--pop-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.pop-row {
    display: flex;
    gap: 16px;
}

.pop-row .pop-field {
    flex: 1;
}

.bg-gray {
    background: #f1f5f9 !important;
    color: #64748b;
}

.pop-btn-save {
    width: 100%;
    padding: 16px;
    background: var(--pop-dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    transition: transform 0.1s;
}

.pop-btn-save:active {
    transform: scale(0.98);
}

/* --- CAROUSEL --- */
.pop-carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.pop-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.pop-carousel-slide.active {
    opacity: 1;
}

.pop-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: 0.2s;
}

.pop-hero:hover .pop-carousel-nav {
    opacity: 1;
}

.pop-carousel-nav.prev {
    left: 10px;
}

.pop-carousel-nav.next {
    right: 10px;
}

.pop-carousel-dots {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
    z-index: 20;
    padding: 0 20px;
}

.pop-dot {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    max-width: 40px;
    transition: background 0.3s;
}

.pop-dot.active {
    background: white;
}

/* --- PHOTO UPLOAD --- */
.pop-upload-container {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    margin-bottom: 16px;
}

.pop-upload-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pop-file-input {
    display: none;
}

.pop-upload-btn {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pop-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.pop-upload-btn:hover {
    border-color: var(--pop-primary);
    color: var(--pop-primary);
}

.pop-extra-photos-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.pop-photo-slot {
    flex: 1;
    aspect-ratio: 1;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    color: #cbd5e1;
    font-size: 24px;
    transition: all 0.2s;
}

.pop-photo-slot:hover {
    border-color: var(--pop-primary);
    color: var(--pop-primary);
}

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

.pop-photo-slot.has-img img {
    display: block;
}

.pop-photo-slot.has-img span {
    display: none;
}

/* PSYCHO TAB BUTTONS */
.pop-actions-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.pop-action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.pop-action-btn.primary {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.pop-action-btn.secondary {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* FULL PAGE DRAWER OVERRIDE */
.pop-drawer.pop-drawer-full {
    top: 0;
    left: 0;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    transform: translateY(100%);
    border-radius: 0;
    padding: 0;
    z-index: 10000;
}

.pop-drawer.pop-drawer-full.open {
    transform: translateY(0);
}

.pop-close-full-page {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #334155;
    transition: transform 0.2s;
}

.pop-close-full-page:hover {
    transform: scale(1.1);
}

/* VISITOR LIST */
.pop-visitor-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar fine pour la liste */
.pop-visitor-list::-webkit-scrollbar {
    width: 4px;
}

.pop-visitor-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.pop-visitor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, background 0.2s;
}

.pop-visitor-item:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
    /* Violet shadow hint */
}

.pop-visitor-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.pop-visitor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pop-v-name {
    font-weight: 700;
    color: var(--pop-dark);
    font-size: 14px;
}

.pop-v-time {
    font-size: 11px;
    color: var(--pop-gray);
}

.pop-v-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--pop-primary);
    background: rgba(139, 92, 246, 0.1);
    transition: 0.2s;
}

.pop-v-link:hover {
    background: var(--pop-primary);
    color: white;
}

.pop-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--pop-gray);
    font-style: italic;
    background: rgba(241, 245, 249, 0.5);
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

/* ===================================
   MODE ÉDITION - NAVBAR INTEGRATION
   =================================== */

/* Cacher les champs d'édition par défaut */
.pop-edit-mode {
    display: none !important;
}

/* Afficher les champs d'édition quand le mode édition est actif */
.pop-card.edit-mode .pop-edit-mode {
    display: block !important;
}

/* Cacher les éléments en lecture seule en mode édition */
.pop-card.edit-mode .pop-view-mode {
    display: none !important;
}

/* Style des champs d'édition */
.pop-edit-field {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.pop-edit-field:focus {
    outline: none;
    border-color: var(--pop-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

textarea.pop-edit-field {
    resize: vertical;
    min-height: 120px;
}

/* Indicateur visuel du mode édition */
.pop-profile-card.edit-mode::before {
    content: "✏️ Mode Édition";
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* --- LOADING OVERLAY --- */
.pop-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pop-loading-overlay.active {
    display: flex;
    opacity: 1;
}

.pop-loading-content {
    background: white;
    padding: 32px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pop-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f1f5f9;
    border-top-color: var(--pop-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.pop-loading-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--pop-dark);
    margin: 0;
}

.pop-loading-subtext {
    font-size: 12px;
    color: var(--pop-gray);
    margin: 0;
}
/* --- MESSAGE BUTTON --- */
.pop-msg-btn {
    background: linear-gradient(135deg, var(--pop-primary), var(--pop-secondary));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: fit-content;
    backdrop-filter: blur(4px);
    margin-top: 15px;
    text-decoration: none;
}

.pop-msg-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.6);
    color: white;
}

.pop-msg-btn:active {
    transform: translateY(0) scale(0.98);
}


.pop-msg-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #94a3b8, #64748b);
    pointer-events: none;
}

.pop-msg-btn.disabled:hover {
    transform: none;
    box-shadow: 0 10px 20px -5px rgba(100, 116, 139, 0.3);
}



/* --- CONTENEUR NAVIGATION (BOUTON + TABS) --- */
.pop-nav-bar {
    padding: 16px 12px 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BOUTON MESSAGE CARR */
.pop-msg-btn {
    background: linear-gradient(135deg, var(--pop-primary), var(--pop-secondary));
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px -4px rgba(139, 92, 246, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.pop-msg-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px -4px rgba(139, 92, 246, 0.6);
    color: white;
}

.pop-msg-btn:active {
    transform: translateY(0) scale(0.95);
}

.pop-msg-btn svg {
    pointer-events: none;
}

/* --- TOAST NOTIFICATION --- */
.pop-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pop-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10001;
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 90%;
    width: max-content;
}

.pop-toast.show {
    top: 30px;
}




/* FIX: Message button icon display */
.pop-msg-btn {
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.pop-msg-btn img {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
}

/* --- DROPDOWN MENU --- */
.pop-more-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: none;
    z-index: 40;
    min-width: 150px;
    border: 1px solid #f1f5f9;
}

.pop-more-menu.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.pop-menu-item {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.pop-menu-item:hover {
    background: #f8fafc;
}

.pop-menu-item.danger {
    color: #ef4444;
}

/* --- TOAST NOTIFICATION --- */
.pop-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    z-index: 99999;
    transition: top 0.5s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 90%;
}

.pop-toast.show {
    top: 30px;
}

/* --- REPORT MODAL --- */
.pop-report-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pop-report-modal.active {
    display: flex;
}

.pop-report-content {
    background: white;
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pop-report-option {
    padding: 12px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

.pop-report-option:hover {
    background: #f8fafc;
    border-color: #8b5cf6;
}

.pop-report-footer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.pop-btn-cancel {
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
}

.pop-btn-cancel:hover {
    background: #e2e8f0;
}


/* FORCE NAVBAR ON TOP */
.pop-nav-bar {
    position: relative !important;
    z-index: 50 !important;
}


/* Enhanced Report Modal Styles */
.pop-report-option.selected {
    border-color: #8b5cf6;
    background: #f5f3ff;
    color: #8b5cf6;
}

.pop-report-textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 13px;
    margin: 10px 0;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

.pop-report-textarea:focus {
    border-color: #8b5cf6;
}

.pop-btn-submit-report {
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    background: #0f172a;
    color: white;
    transition: opacity 0.2s;
}

.pop-btn-submit-report:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* --- PASSIONS --- */
.pop-hobbies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.pop-hobbies span {
    font-size: 12px;
    font-weight: 600;
    color: #8b5cf6;
    background: #f5f3ff;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #ddd6fe;
    transition: all 0.2s;
    cursor: default;
}

/* --- PASSION SELECTOR IN DRAWER --- */
.pop-passion-selector {
    margin-top: 10px;
}
.pop-passion-category {
    margin-bottom: 15px;
}
.pop-category-name {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.pop-passion-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pop-passion-chip {
    padding: 6px 10px;
    border-radius: 10px;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    user-select: none;
}
.pop-passion-chip:hover {
    background: #e2e8f0;
}
.pop-passion-chip.selected {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.2);
}
.pop-passion-chip.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pop-passion-count {
    font-size: 11px;
    font-weight: 700;
    color: #8b5cf6;
    float: right;
}

/* --- FIX TAB NAVIGATION & REVIEWS --- */
.pop-pane { display: none !important; animation: popFadeIn 0.3s ease-out; }
.pop-pane.active { display: block !important; }

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

/* Styling for Review Drawer if needed */
.pop-rating-stars { display: flex; gap: 8px; justify-content: center; margin: 20px 0; }
.pop-star-input { font-size: 32px; color: #d1d5db; cursor: pointer; transition: color 0.2s; }
.pop-star-input:hover { color: #fde047; }


/* FIX TOAST BLOCKING CLICKS */
.pop-toast { pointer-events: none !important; }
.pop-toast.show { pointer-events: auto !important; }


/* Added by AI to improve visibility */
.pop-pill { background: rgba(255, 255, 255, 0.85) !important; backdrop-filter: blur(4px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); color: #1e293b !important; }
