/* Font Face Definitions */
@font-face {
    font-family: "Modern Era";
    src: url("https://db.onlinewebfonts.com/t/74613e9d0612d09be09dd6de7c898d50.eot");
    src: url("https://db.onlinewebfonts.com/t/74613e9d0612d09be09dd6de7c898d50.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/74613e9d0612d09be09dd6de7c898d50.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/74613e9d0612d09be09dd6de7c898d50.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/74613e9d0612d09be09dd6de7c898d50.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/74613e9d0612d09be09dd6de7c898d50.svg#Modern Era")format("svg");
}


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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #1A1A1A;
    overflow-x: hidden;
}

.app-container {
    max-width: 400px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f5f5f5;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Main Content */
.main-content {
    padding-bottom: 80px;
    min-height: calc(100vh - 80px);
}

.section {
    display: none;
    padding: 20px;
    position: relative;
}

.section.active {
    display: block;
}

/* Filter Pills */
.filter-pills {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.filter-pills::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.filter-pill {
    position: relative;
    background: #FFFEFD;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    white-space: nowrap;
}

.filter-pill:hover {
    border-color: #3E1768;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(62, 23, 104, 0.2);
}

.filter-pill.active {
    border-color: #3E1768;
    background: #f0f0ff;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
}

.filter-pill i {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.filter-pill.active i {
    transform: rotate(180deg);
    color: #3E1768;
}

/* Filter count indicator */
.filter-count {
    background: #3E1768;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
}

/* Reset filter button */
.filter-reset {
    background: #D45847 !important;
    border-color: #D45847 !important;
    color: white !important;
}

.filter-reset:hover {
    background: #c04a3a !important;
    border-color: #c04a3a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 88, 71, 0.3);
}

.filter-reset .filter-label {
    color: white !important;
}

.filter-reset i {
    color: white !important;
}


/* Filter Modal */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-modal.show {
    opacity: 1;
    visibility: visible;
}

.filter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-modal.show .filter-modal-overlay {
    opacity: 1;
}

.filter-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFEFD;
    border-radius: 20px 20px 0 0;
    height: 50vh;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.filter-modal.show .filter-modal-content {
    transform: translateY(0);
}

.filter-modal-drag-handle {
    width: 50px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 8px auto 0;
}


.filter-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    flex-shrink: 0;
}

.filter-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    text-align: center;
}

.filter-search-container {
    padding: 0 25px 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.filter-search-container i {
    position: absolute;
    left: 40px;
    top: calc(50% - 10px);
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
}

.filter-search-container input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    background: #FFFEFD;
    color: #1A1A1A;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.filter-search-container input:focus {
    outline: none;
    border-color: #3E1768;
    background: white;
    box-shadow: 0 0 0 4px rgba(62, 23, 104, 0.08);
}

.filter-search-container input::placeholder {
    color: #999;
}

.filter-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.filter-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.filter-options-container {
    padding: 20px 25px;
    flex: 1;
    overflow-y: auto;
}

.filter-option {
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    color: #1A1A1A;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 2px solid transparent;
}

.filter-option:hover {
    background: #f0f0ff;
    border-color: #3E1768;
}

.filter-option.selected {
    background: #3E1768;
    color: #FFFEFD;
    border-color: #3E1768;
}

/* Speaker Card */
.speaker-card {
    background: transparent;
    border-radius: 20px;
    overflow: visible;
    margin-bottom: 30px;
    position: relative;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    touch-action: pan-y;
    min-height: 600px;
    will-change: transform, opacity;
    z-index: 2;
}

/* Swipe Action Indicator (Behind Card) */
.swipe-action-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 9999;
    pointer-events: none;
}

.swipe-action-indicator.like {
    color: #3E1768;
}

.swipe-action-indicator.dislike {
    color: #D45847;
}

.swipe-action-indicator i {
    font-size: 80px;
    display: block;
}

.swipe-action-indicator span {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 4px;
    display: block;
}

.speaker-card.fade-out {
    opacity: 0;
}

.speaker-card.fade-in {
    opacity: 1;
}

/* Name Container */
.speaker-name-container {
    border-radius: 15px;
    padding: 0px 25px 20px 0px;
    text-align: left;
}

.speaker-name {
    font-size: 28px;
    font-weight: 600;
    color: #1A1A1A;
}

/* Photo Container */
.speaker-photo-container {
    background: #FFFEFD;
    padding: 0;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.speaker-photo {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.speaker-photo img.loading {
    opacity: 0.5;
}

/* Info Container */
.speaker-info-container {
    background: #FFFEFD;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

#one-liner-row #speaker-one-liner {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
    font-weight: 500;
}

.info-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.info-icon {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    color: #3E1768;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content {
    flex: 1;
    font-size: 16px;
    color: #1A1A1A;
    font-weight: 500;
}

.info-secondary {
    color: #666;
    font-weight: 400;
    margin-left: 30px;
}

/* Recommendation Badge */
.recommendation-badge {
    display: none !important;
    position: absolute;
    top: 0px;
    right: 15px;
    background: linear-gradient(135deg, #3E1768 0%, #6B46C1 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(62, 23, 104, 0.3);
    z-index: 10;
}

.recommendation-score {
    font-size: 14px;
    font-weight: 700;
}

.recommendation-label {
    font-size: 10px;
    opacity: 0.9;
}

.recommendation-info {
    font-size: 10px;
    opacity: 0.8;
    cursor: pointer;
    margin-left: 4px;
    transition: opacity 0.3s ease;
}

.recommendation-info:hover {
    opacity: 1;
}

/* Bio Container */
.speaker-topic-container {
    background: #FFFEFD;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.topic-prompt {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
    font-weight: 500;
}

.topic-content {
    font-family: 'Tiempos', serif;
    font-size: 30px;
    line-height: 1.6;
    color: #1A1A1A;
}

.speaker-bio-container {
    background: #FFFEFD;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bio-prompt {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
    font-weight: 500;
}

.bio-content {
    font-family: 'Tiempos', serif;
    font-size: 30px;
    line-height: 1.6;
    color: #1A1A1A;
}

/* Fixed Action Buttons - Spread to edges */
.action-buttons {
    position: fixed;
    bottom: 100px;
    left: 0;
    right: 0;
    display: flex; /* Show by default */
    justify-content: space-between;
    padding: 0 30px;
    z-index: 200;
    pointer-events: none;
    max-width: 400px;
    margin: 0 auto;
}

/* Hide action buttons by default - will be shown via JavaScript */
.action-buttons.hidden {
    display: none;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

.reject-btn {
    background: #FFFEFD;
    color: #D45847;
    border: 2px solid #D45847;
}

.reject-btn:hover {
    background: #D45847;
    color: #FFFEFD;
    transform: scale(1.1);
}

.reject-btn:active,
.reject-btn:focus {
    background: #D45847;
    color: #FFFEFD;
    transform: scale(1.1);
    outline: none;
}

/* Mobile touch handling */
@media (hover: none) and (pointer: coarse) {
    .reject-btn:active {
        background: #D45847;
        color: #FFFEFD;
        transform: scale(1.1);
    }
    
    .reject-btn:focus {
        background: #FFFEFD;
        color: #D45847;
        transform: none;
        outline: none;
    }
}

.like-btn {
    background: #FFFEFD;
    color: #3E1768;
    border: 2px solid #3E1768;
}

.like-btn:hover {
    background: #3E1768;
    color: #FFFEFD;
    transform: scale(1.1);
}

.like-btn:active,
.like-btn:focus {
    background: #3E1768;
    color: #FFFEFD;
    transform: scale(1.1);
    outline: none;
}

/* Mobile touch handling for like button */
@media (hover: none) and (pointer: coarse) {
    .like-btn:active {
        background: #3E1768;
        color: #FFFEFD;
        transform: scale(1.1);
    }
    
    .like-btn:focus {
        background: #FFFEFD;
        color: #3E1768;
        transform: none;
        outline: none;
    }
}

/* General mobile button focus handling */
@media (hover: none) and (pointer: coarse) {
    button:focus,
    .action-btn:focus,
    .nav-btn:focus {
        outline: none;
        box-shadow: none;
    }
    
    button:active,
    .action-btn:active,
    .nav-btn:active {
        transform: scale(0.95);
    }
}

/* Preference Modal Overlay */
.preference-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.preference-modal.show {
    display: flex;
}

.preference-modal-content {
    background: #FFFEFD;
    border-radius: 20px;
    padding: 30px;
    max-width: 350px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 14px;
    color: #666;
}

.speaker-modal-summary {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.speaker-modal-summary img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.speaker-modal-summary-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 2px;
}

.speaker-modal-summary-info p {
    font-size: 13px;
    color: #666;
}

.preference-levels h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 20px;
    text-align: center;
}

.preference-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preference-option {
    background: #FFFEFD;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preference-option:hover {
    border-color: #3E1768;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(62, 23, 104, 0.2);
}

.preference-option.selected {
    border-color: #3E1768;
    background: #f0f0ff;
}

.preference-option.occupied {
    border-color: #3E1768;
    background: #f0f0ff;
}

.preference-option.occupied .preference-level-badge {
    background: #3E1768;
}

.preference-option.free {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.preference-option.free .preference-level-badge {
    background: #6c757d;
}


.position-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3E1768;
    color: #FFFEFD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}


.option-speaker-info {
    flex: 1;
    text-align: left;
}

.option-speaker-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 2px;
}

.option-speaker-info p {
    font-size: 13px;
    color: #666;
}

.preference-option .speaker-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}



/* Preferences Section */
.preferences-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    margin-right: 15px;
    padding: 8px;
}

.preferences-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
}

.section-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.liked-speakers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.liked-speaker-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.liked-speaker-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-to-preferences-btn {
    background: #3E1768;
    color: #FFFEFD;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.add-to-preferences-btn:hover {
    background: #5A2A8F;
    transform: scale(1.1);
}

.add-to-preferences-btn i {
    font-size: 14px;
}

.speaker-summary {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.speaker-summary img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.speaker-summary-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.speaker-summary-info p {
    font-size: 14px;
    color: #666;
}

/* My Preferences */
.preferences-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preference-item {
    background: #FFFEFD;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.preference-speaker {
    flex-direction: column;
    align-items: stretch;
}

.preference-main-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preference-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.preference-item-info {
    flex: 1;
}

.preference-item-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.preference-item-info p {
    font-size: 14px;
    color: #666;
}

.preference-level-badge {
    background: #3E1768;
    color: #FFFEFD;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.preference-placeholder .preference-level-badge {
    background: #6c757d;
}

.preference-placeholder {
    opacity: 0.6;
    border: 2px dashed #e9ecef;
}


.preference-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.preference-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.preference-actions-left {
    display: flex;
    align-items: center;
    gap: 14px;
}


.comment-btn {
    color: #666;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.comment-btn:hover {
    background: #f8f9fa;
}

/* Comment button states */
.comment-btn.no-motivation {
    background: #3E1768;
    color: #fff;
}

.comment-btn.no-motivation:hover {
    background: #2a0f4a;
}

.comment-btn.has-motivation {
    color: #666;
}

.comment-btn.has-motivation:hover {
    background: #f8f9fa;
}

/* Comment Modal */
#comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#comment-modal.show {
    display: flex;
}

#comment-modal .modal-content {
    background: #fff;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
}

#comment-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

#comment-modal .modal-header h3 {
    margin: 0;
    color: #1A1A1A;
}

#comment-modal .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

#comment-modal .modal-body {
    padding: 20px;
}

#comment-modal #comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

#comment-modal #comment-textarea:focus {
    outline: none;
    border-color: #3E1768;
    box-shadow: 0 0 0 2px rgba(62, 23, 104, 0.1);
}

#comment-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

#comment-modal .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

#comment-modal .btn-secondary {
    background: #f8f9fa;
    color: #666;
}

#comment-modal .btn-primary {
    background: #3E1768;
    color: #fff;
}

.remove-preference-btn {
    background: none;
    border: none;
    color: #D45847;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 14px;
    width: 28px;
    height: 28px;
}

.remove-preference-btn:hover {
    background: rgba(212, 88, 71, 0.1);
    transform: scale(1.1);
}

.remove-preference-btn:active {
    transform: scale(0.95);
}

.drag-handle {
    color: #999;
    cursor: grab;
    padding: 18px;
    display: flex;
    align-items: center;
    width: 28px;
    height: 28px;
    justify-content: center;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Move up/down buttons */
.move-up-btn, .move-down-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: all 0.2s ease;
    font-size: 12px;
}

.move-up-btn:hover, .move-down-btn:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
}

.move-up-btn:active, .move-down-btn:active {
    transform: scale(0.95);
    background: #dee2e6;
}

.move-up-btn:disabled, .move-down-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #adb5bd;
}

.move-up-btn:disabled:hover, .move-down-btn:disabled:hover {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
}

.preference-speaker.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
    position: relative;
}

/* Drag ghost styling */
.drag-ghost {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.drag-ghost * {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Improve touch interaction on mobile */
@media (hover: none) and (pointer: coarse) {
    .drag-handle {
        padding: 12px;
    }
    
    .preference-speaker.dragging {
        transform: scale(1.05) rotate(2deg);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
}

.preference-item.drag-over {
    border-color: #3E1768;
    background: #f0f0ff;
}

/* Bottom Navigation */
/* Onboarding Modal */
.onboarding-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.onboarding-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.onboarding-content {
    position: relative;
    background: #FFFEFD;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.onboarding-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.onboarding-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 8px;
}

.onboarding-header p {
    color: #666;
    margin: 0 0 20px;
    font-size: 14px;
}

.onboarding-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3E1768, #6B46C1);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 25%;
}

.progress-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.onboarding-body {
    padding: 30px;
    min-height: 400px;
}

.onboarding-step {
    display: none;
}

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

.onboarding-step h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 8px;
}

.onboarding-step p {
    color: #666;
    margin: 0 0 25px;
    font-size: 14px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    border-color: rgba(62, 23, 104, 0.35);
    background: rgba(62, 23, 104, 0.03);
}

.checkbox-item:focus-within {
    outline: none;
    border-color: rgba(62, 23, 104, 0.35);
    box-shadow: 0 0 0 2px rgba(62, 23, 104, 0.08);
}

.checkbox-item.selected {
    border-color: #3E1768;
    background: rgba(62, 23, 104, 0.1);
}

.checkbox-item.suggested {
    border-color: #BBA3D4; /* lighter purple */
    background: rgba(62, 23, 104, 0.06);
    position: relative;
}

.checkbox-item .suggested-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #BBA3D4;
    color: #3E1768;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 8px;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #3E1768;
}

.checkbox-item label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
    cursor: pointer;
    flex: 1;
}

.language-skills {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.add-language-section {
    margin-bottom: 20px;
}

.add-language-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.add-language-controls select {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    color: #1A1A1A;
    transition: border-color 0.2s ease;
}

.add-language-controls select:focus {
    outline: none;
    border-color: #3E1768;
    box-shadow: 0 0 0 4px rgba(62, 23, 104, 0.1);
}

.add-language-controls .btn-secondary {
    padding: 12px 20px;
    white-space: nowrap;
}

.selected-languages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggested-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.suggested-language-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #3E1768;
    background: rgba(62, 23, 104, 0.1);
    color: #3E1768;
    border-radius: 20px;
    font-size: 14px;
}

.suggested-language-chip button {
    background: #3E1768;
    color: #FFFEFD;
    border: none;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.suggested-language-chip button:hover {
    background: #2A0F4A;
}

.language-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px solid #3E1768;
    border-radius: 12px;
    background: rgba(62, 23, 104, 0.05);
    transition: all 0.2s ease;
}

.language-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    margin-right: 12px;
}

.language-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    width: 60px;
    min-width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.language-level-select {
    padding: 8px 6px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #1A1A1A;
    min-width: 140px;
    width: 140px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.language-level-select:focus {
    outline: none;
    border-color: #3E1768;
    box-shadow: 0 0 0 2px rgba(62, 23, 104, 0.1);
}

.remove-language-btn {
    background: transparent;
    color: #D45847;
    border: none;
    width: auto;
    height: auto;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    font-size: 14px;
}

.remove-language-btn:hover {
    color: #B8453A;
    transform: scale(1.05);
}

.remove-language-btn:active {
    transform: scale(0.95);
}

.text-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.text-inputs .input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.text-inputs label {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
}

.text-inputs textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.text-inputs textarea:focus {
    outline: none;
    border-color: #3E1768;
    box-shadow: 0 0 0 4px rgba(62, 23, 104, 0.1);
}

.onboarding-footer {
    padding: 20px 30px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid #e9ecef;
}

/* Inline form feedback */
.form-inline-error {
    margin-top: 6px;
    font-size: 12px;
    color: #D45847;
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.4s ease;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3E1768, #6B46C1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(62, 23, 104, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #1A1A1A;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    background: #FFFEFD;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 15px;
    z-index: 100;
}

.nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    color: #999;
    transition: color 0.3s ease;
    flex: 1;
    min-width: 0;
}

.nav-btn.active {
    color: #3E1768;
}

.nav-btn i {
    font-size: 20px;
}

.nav-btn span {
    font-size: 12px;
    font-weight: 500;
}

/* Nav divider removed for three-tab layout */

/* Admin Section Styles */
.admin-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-header h2 {
    color: #3E1768;
    margin-bottom: 8px;
}

.admin-header p {
    color: #666;
    font-size: 14px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #FFFEFD;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card span {
    font-size: 24px;
    font-weight: 700;
    color: #3E1768;
}

.admin-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.admin-btn {
    background: #3E1768;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: #2d1250;
    transform: translateY(-1px);
}

.admin-btn i {
    font-size: 16px;
}

/* Login Page Styles */
body.login-page {
    height: 100dvh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

html.login-page {
    height: 100dvh;
    overflow: hidden;
}

.login-container {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #FFFEFD;
    overflow: hidden;
}

.login-image-section {
    height: 40vh;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    /* Reserved for image */
}

.login-image {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.login-form-section {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-content {
    width: 100%;
    max-width: 400px;
    text-align: left;
    padding: 1rem;
}

.login-content h1 {
    font-family: 'Tiempos', serif;
    font-size: 32px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 8px;
}

.login-content h3 {
    font-size: 16px;
    color: #666;
    margin: 0 0 40px;
    font-weight: 400;
}

.login-form-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}

.login-form {
    margin-bottom: 0;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #1A1A1A;
    box-sizing: border-box;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

.input-group input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(62, 23, 104, 0.08);
}

.input-group input::placeholder {
    color: #999;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #3E1768, #5A2A8F);
    color: #FFFEFD;
    border: none;
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(62, 23, 104, 0.25);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(62, 23, 104, 0.35);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(62, 23, 104, 0.25);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 16px rgba(62, 23, 104, 0.15);
}

.btn-spinner {
    font-size: 14px;
}


.login-footer {
    color: #999;
    font-size: 14px;
    margin: 20px 0 0;
    line-height: 1.5;
    text-align: center;
}

/* Unauthorized Page Styles */
.unauthorized-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 20px;
}

.unauthorized-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.unauthorized-card i {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 20px;
}

.unauthorized-card h2 {
    font-family: 'Tiempos', serif;
    font-size: 24px;
    color: #1A1A1A;
    margin: 0 0 15px;
}

.unauthorized-card p {
    color: #666;
    margin: 0 0 15px;
    line-height: 1.5;
}

.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* User Info Styles - Removed */

/* Login Info Container */
.login-info-container {
    background: rgba(62, 23, 104, 0.08);
    border: 2px solid #3E1768;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-info-container.show {
    display: flex;
    opacity: 1;
}

.login-info-message {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #3E1768;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
}

.login-info-message i {
    color: #3E1768;
    font-size: 18px;
}


/* Alert System Styles (keeping for compatibility) */
.auth-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    min-width: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.auth-alert-info {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    color: #1976d2;
}

.auth-alert-success {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.auth-alert-error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

.auth-alert-warning {
    background: #fff3e0;
    border: 1px solid #ff9800;
    color: #ef6c00;
}

.alert-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
}

.alert-content i:first-child {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-content span {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Admin Styles */
.admin-section {
    padding: 20px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #FFFEFD;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-card span {
    font-size: 24px;
    font-weight: 600;
    color: #3E1768;
}

.preferences-overview h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 20px;
}

.preferences-table {
    background: #FFFEFD;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preference-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

.preference-row-info {
    flex: 1;
}

.preference-row-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 2px;
}

.preference-row-info p {
    font-size: 12px;
    color: #666;
}

/* Loading Overlay */
/* Loading overlay removed - no more loading screens */

/* Empty State Styles */
.restart-btn {
    background: #3E1768;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px auto 0;
    transition: all 0.2s ease;
    justify-content: center;
    width: 200px;
    height: 40px;
}

.restart-btn:hover {
    background: #2a0f4a;
    transform: translateY(-1px);
}

.restart-btn:active {
    transform: translateY(0);
}

.restart-btn i {
    font-size: 12px;
}

/* Completion Screen Styles */
/* Completion screen styled like a speaker card */
.completion-speaker-card {
    background: #FFFEFD;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #e9ecef;
}

.completion-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.completion-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 0;
}

.completion-content h2 {
    color: #333;
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

.completion-content p {
    color: #666;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.completion-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.completion-btn {
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.completion-btn.primary {
    background: #3E1768;
    color: white;
}

.completion-btn.primary:hover {
    background: #2d1250;
    transform: translateY(-2px);
}

.completion-btn.secondary {
    background: #f8f9fa;
    color: #3E1768;
    border: 2px solid #3E1768;
}

.completion-btn.secondary:hover {
    background: #3E1768;
    color: white;
    transform: translateY(-2px);
}

.completion-btn.tertiary {
    background: transparent;
    color: #666;
    border: 1px solid #e9ecef;
}

.completion-btn.tertiary:hover {
    background: #f8f9fa;
    color: #3E1768;
    border-color: #3E1768;
    transform: translateY(-2px);
}

.completion-btn i {
    font-size: 18px;
}

/* Skeleton Loading Styles */
.skeleton-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Photo Skeleton */
.photo-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px; /* Match the container border-radius */
    overflow: hidden;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-skeleton .skeleton-shimmer {
    width: 100%;
    height: 100%;
    border-radius: 15px; /* Match the container border-radius */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Skeleton line base styles */
.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-line-medium {
    height: 20px;
    width: 300px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-line-short {
    width: 150px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Info Skeleton */
.info-skeleton {
    position: absolute;
    top: 25px; /* Match container padding */
    left: 25px; /* Match container padding */
    right: 25px; /* Match container padding */
    bottom: 25px; /* Match container padding */
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.skeleton-row {
    display: flex;
    align-items: center;
    padding: 12px 0; /* Match actual info-row padding */
    border-bottom: 1px solid #f0f0f0; /* Match actual border */
    padding-left: 35px; /* Account for icon space (20px icon + 15px margin) */
}

.skeleton-row:last-child {
    border-bottom: none; /* Match actual last child */
}

.skeleton-row .skeleton-line {
    width: 100%;
    height: 16px; /* Match actual content height */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Topic Skeleton */
.topic-skeleton {
    position: absolute;
    top: 25px; /* Match container padding */
    left: 25px; /* Match container padding */
    right: 25px; /* Match container padding */
    bottom: 25px; /* Match container padding */
    display: flex;
    align-items: center;
    z-index: 2;
}

.topic-skeleton .skeleton-line {
    width: 100%;
    height: 30px; /* Match topic content height */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Bio Skeleton */
.bio-skeleton {
    position: absolute;
    top: 25px; /* Match container padding */
    left: 25px; /* Match container padding */
    right: 25px; /* Match container padding */
    bottom: 25px; /* Match container padding */
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bio-skeleton .skeleton-line {
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0;
}

.bio-skeleton .skeleton-line:last-child {
    width: 60%; /* Shorter last line like real text */
}

/* Hide skeleton when content is loaded */
.skeleton-hidden {
    display: none !important;
}

/* Smooth transitions for content elements */
#speaker-photo,
#speaker-position,
#speaker-company,
#speaker-industry,
#speaker-country,
#speaker-stage,
#speaker-topic,
#speaker-bio {
    transition: opacity 0.3s ease-in-out;
}

/* Ensure proper positioning for skeleton containers */
.speaker-photo {
    position: relative;
}

.speaker-name-container {
    position: relative;
}

.speaker-info-container {
    position: relative;
}

.speaker-topic-container {
    position: relative;
}

.speaker-bio-container {
    position: relative;
}

/* Animations */
.speaker-card {
    animation: slideInUp 0.5s ease-out;
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }
    
    .speaker-photo {
        height: 350px;
    }
    
    .action-buttons {
        padding: 0 20px;
    }
    
    .action-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .preference-modal-content {
        padding: 25px;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 12px;
    color: #ccc;
    display: block;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
    line-height: 1.5;
}

.reset-filters-btn {
    margin-top: 20px;
    padding: 18px 28px;
    background: linear-gradient(135deg, #3E1768, #5A2A8F);
    color: #FFFEFD;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(62, 23, 104, 0.3);
}

.reset-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(62, 23, 104, 0.4);
}

.reset-filters-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(62, 23, 104, 0.3);
}

.reset-filters-btn i {
    font-size: 14px;
    line-height: 1;
    display: flex !important;
    align-items: center;
}

/* Admin Panel Styles */
.admin-row {
    transition: all 0.2s ease;
}

.admin-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Lazy loading images */
.lazy-load-img {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lazy-loaded {
    opacity: 1;
}

/* Admin Skeleton Loading */
.skeleton-admin-row {
    pointer-events: none;
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(90deg, #E5E5E5 25%, #F0F0F0 50%, #E5E5E5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #E5E5E5 25%, #F0F0F0 50%, #E5E5E5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-line-lg {
    width: 70%;
    height: 16px;
}

.skeleton-line-md {
    width: 50%;
    height: 12px;
}

.skeleton-badge {
    width: 40px;
    height: 28px;
    border-radius: 20px;
    background: linear-gradient(90deg, #E5E5E5 25%, #F0F0F0 50%, #E5E5E5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* My List skeleton loading styles */
.skeleton-preference-item {
    pointer-events: none;
    animation: pulse 1.5s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.skeleton-preference-item.fade-out {
    opacity: 0;
}

.skeleton-drag-handle {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, #E5E5E5 25%, #F0F0F0 50%, #E5E5E5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-button {
    width: 120px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(90deg, #E5E5E5 25%, #F0F0F0 50%, #E5E5E5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(90deg, #E5E5E5 25%, #F0F0F0 50%, #E5E5E5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-liked-speaker-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #FFFEFD;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    animation: pulse 1.5s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.skeleton-liked-speaker-item.fade-out {
    opacity: 0;
}

.skeleton-liked-speaker-item .skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(90deg, #E5E5E5 25%, #F0F0F0 50%, #E5E5E5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-liked-speaker-item .liked-speaker-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-liked-speaker-item .skeleton-button {
    width: 100px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(90deg, #E5E5E5 25%, #F0F0F0 50%, #E5E5E5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Fade-in animations for actual content */
.preference-item.fade-in {
    animation: fadeInUp 0.4s ease-out;
}

.preference-item.fade-in:nth-child(1) { animation-delay: 0.1s; }
.preference-item.fade-in:nth-child(2) { animation-delay: 0.15s; }
.preference-item.fade-in:nth-child(3) { animation-delay: 0.2s; }
.preference-item.fade-in:nth-child(4) { animation-delay: 0.25s; }
.preference-item.fade-in:nth-child(5) { animation-delay: 0.3s; }

.liked-speaker-item.fade-in {
    animation: fadeInUp 0.4s ease-out;
}

.liked-speaker-item.fade-in:nth-child(1) { animation-delay: 0.1s; }
.liked-speaker-item.fade-in:nth-child(2) { animation-delay: 0.15s; }
.liked-speaker-item.fade-in:nth-child(3) { animation-delay: 0.2s; }
.liked-speaker-item.fade-in:nth-child(4) { animation-delay: 0.25s; }
.liked-speaker-item.fade-in:nth-child(5) { animation-delay: 0.3s; }
.liked-speaker-item.fade-in:nth-child(6) { animation-delay: 0.35s; }

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

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.buddy-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3E1768, #5A2A8F);
    color: #FFFEFD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.buddy-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3E1768, #5A2A8F);
    color: #FFFEFD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.admin-view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.admin-sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.admin-sort-controls label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.admin-count {
    background: linear-gradient(135deg, #3E1768, #5A2A8F);
    color: #FFFEFD;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(62, 23, 104, 0.3);
}

.sort-select {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    background: #FFFEFD;
    color: #1A1A1A;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
}

.sort-select:hover {
    border-color: #3E1768;
}

.sort-select:focus {
    border-color: #3E1768;
    box-shadow: 0 0 0 3px rgba(62, 23, 104, 0.1);
}

.toggle-btn {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #E5E5E5;
    border-radius: 15px;
    background: #FFFEFD;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.toggle-btn:hover {
    border-color: #3E1768;
    color: #3E1768;
    box-shadow: 0 2px 6px rgba(62, 23, 104, 0.1);
}

.toggle-btn.active {
    background: linear-gradient(135deg, #3E1768, #5A2A8F);
    border-color: #3E1768;
    color: #FFFEFD;
    box-shadow: 0 4px 12px rgba(62, 23, 104, 0.3);
}

.admin-view {
    display: none;
}

.admin-view.active {
    display: block;
}

/* Admin Modal Styles */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.admin-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal-content {
    background: #FFFEFD;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #E5E5E5;
}

.admin-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1A1A1A;
}

.admin-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.admin-modal-close:hover {
    background: #F0F0F0;
    color: #1A1A1A;
}

.admin-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Speaker Preferences by Level */
.speaker-preferences-by-level {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preference-level-section {
    border: 1px solid #E5E5E5;
    border-radius: 15px;
    overflow: hidden;
    background: #FFFEFD;
}

.preference-level-section h4 {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #3E1768, #5A2A8F);
    font-size: 16px;
    font-weight: 600;
    color: #FFFEFD;
    border-bottom: none;
}

.preference-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preference-list:empty::after {
    content: "No buddies at this level";
    color: #999;
    font-style: italic;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* Buddy Preferences with Matches */
.buddy-preferences-with-matches {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buddy-preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    background: #FFFEFD;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.buddy-preference-item:hover {
    border-color: #3E1768;
    box-shadow: 0 3px 10px rgba(62, 23, 104, 0.15);
    transform: translateY(-1px);
}

.buddy-preference-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.buddy-preference-level {
    background: #3E1768;
    color: #FFFEFD;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

.buddy-preference-name {
    font-weight: 600;
    color: #1A1A1A;
    font-size: 15px;
}

.buddy-preference-company {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.buddy-match-percentage {
    background: #34C759;
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    min-width: 65px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(52, 199, 89, 0.2);
}

.buddy-match-percentage.low {
    background: #FF9500;
    box-shadow: 0 2px 4px rgba(255, 149, 0, 0.2);
}

.buddy-match-percentage.very-low {
    background: #FF3B30;
    box-shadow: 0 2px 4px rgba(255, 59, 48, 0.2);
}

/* Responsive Admin Panel */
@media (max-width: 480px) {
    .admin-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .admin-modal-header {
        padding: 15px 20px;
    }
    
    .admin-modal-body {
        padding: 20px;
    }
    
    .toggle-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .buddy-preference-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .buddy-match-percentage {
        align-self: flex-end;
    }
}

/* Country Code Selector Styles */
:root {
    --border-color: #e0e0e0;
    --green: #1976d2;
    --border-radius: 10px;
    --dropdown-border-color: #e0e0e0;
    --dropdown-trigger-background-color: #f5f5f5;
    --dropdown-trigger-hover-background-color: #eeeeee;
    --input-label-color: #666;
    --input-prefix-color: #333;
    --input-phonenumber-color: #333;
    --input-error-color: #d32f2f;
    --list-item-hover-background: #f5f5f5;
}

.pn-select {
    position: relative;
    border: none;
    display: grid;
    grid-template-columns: 4.5em 1fr;
    border-radius: 50px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    z-index: 2;
    height: 50px;
    max-width: 500px;
    margin-bottom: 1rem;
    background: #f8f9fa;
    color: #1A1A1A;
    box-sizing: border-box;
}

.pn-select:focus,
.pn-select:focus-within {
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(62, 23, 104, 0.08);
}

.pn-dropdown {
    background: #ffffff;
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.135);
    opacity: 0;
    padding: 0.5em;
    pointer-events: none;
    position: absolute;
    top: 140%;
    transform-origin: left top;
    transition: all 0.3s ease;
    visibility: hidden;
    z-index: 999;
    width: 100%;
    min-width: 300px;
}

.pn-select--open .pn-dropdown {
    pointer-events: all;
    transform: none;
    opacity: 1;
    top: 120%;
    visibility: visible;
}

.pn-search {
    position: relative;
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0.5em;
}

.pn-search svg {
    display: block;
    height: 1.25rem;
    left: 0.5em;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
}

.pn-search input[type="search"] {
    padding-left: 2.5rem;
    height: 3rem;
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: #1A1A1A;
}

.pn-list {
    margin-right: -0.5em;
    max-height: 10.5em;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ffffff #ffffff;
    position: relative;
}

.pn-list::-webkit-scrollbar {
    width: 10px;
}

.pn-list:hover {
    --scrollbar-background: #ffffff;
    --thumb-background: #c0c4ca;

    scrollbar-color: var(--thumb-background) var(--scrollbar-background);
}

.pn-list:hover::-webkit-scrollbar-track {
    background: var(--scrollbar-background);
}

.pn-list:hover::-webkit-scrollbar-thumb {
    background-color: var(--thumb-background);
    border-radius: 6px;
    border: 3px solid var(--scrollbar-background);
}

.pn-list--no-scroll {
    margin-right: 0;
}

.pn-selected-prefix {
    align-items: center;
    appearance: none;
    background: transparent;
    border-radius: 50px 0 0 50px;
    border: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    margin: 0;
    outline: none;
    padding: 0;
    transition: all 0.3s ease;
}

.pn-selected-prefix:hover,
.pn-selected-prefix:focus {
    background: rgba(0, 0, 0, 0.05);
}

.pn-selected-prefix__flag {
    height: auto;
    width: 1.25rem;
}

.pn-selected-prefix__icon {
    display: block;
    height: 1.25rem;
    margin-left: 0.5em;
    margin-right: -0.25em;
    transition: all 0.15s ease-out;
    width: 1.25rem;
}

.pn-select--open .pn-selected-prefix__icon {
    transform: rotate(180deg);
}

.pn-input {
    background: transparent;
    border-radius: 0 50px 50px 0;
    line-height: 1;
    overflow: hidden;
    padding: 0.5em 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pn-input__container {
    display: flex;
    flex-direction: row;
    position: relative;
}

.pn-input__label {
    color: #666;
    font-size: 0.7rem;
    position: relative;
    top: -0.25em;
}

.pn-input__error {
    bottom: 0;
    color: var(--input-error-color);
    font-size: 0.785rem;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: all 0.2s ease-out;
    z-index: -1;
}

.pn-input__error:invalid + .pn-input__error {
    opacity: 1;
    transform: translateY(175%);
}

.pn-input__prefix {
    background: transparent;
    position: absolute;
    color: #1A1A1A;
    max-width: 3rem;
    pointer-events: none;
    border: none;
    outline: none;
    font-size: 16px !important;
    font-weight: 500;
}

.pn-input__phonenumber {
    color: #1A1A1A;
    padding-left: calc(calc(var(--prefix-length) * 1ch) + 1.5ch);
    font-weight: 500;
    border: none;
    outline: none;
    font-size: 16px !important;
    width: 100%;
    background: transparent;
}

.pn-list-item {
    align-items: center;
    border-radius: 0.5em;
    display: flex;
    font-weight: 400;
    padding: 0.6em 0.75em;
    transition: background-color 0.2s ease-out;
    cursor: pointer;
    outline: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.pn-list-item__flag {
    width: 1.25em;
    height: auto;
    margin-right: 1em;
    display: block;
}

.pn-list-item__country {
    margin-right: 0.25em;
}

.pn-list-item:hover,
.pn-list-item:focus {
    background-color: var(--list-item-hover-background);
}

.pn-list-item--selected {
    pointer-events: none;
    font-weight: 500;
    background-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='%23103155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-position: right 0.75em top 50%;
    background-repeat: no-repeat;
    background-size: 1.25rem;
}

.pn-list-item--no-results {
    pointer-events: none;
}

/* Help System Styles */
.help-info-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.help-info-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.speaker-name-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.preferences-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Help Popup Styles */
.help-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.help-popup {
    background: white;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: helpPopupSlideIn 0.3s ease-out;
}

@keyframes helpPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.help-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.help-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
}

.help-popup-close {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.help-popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.help-popup-content {
    padding: 20px 24px 24px;
}

.help-popup-content p {
    margin: 0;
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

/* Group Buddies Styles */
.group-buddies-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.group-buddy-card {
    background: #FFFEFD;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    transition: all 0.2s ease;
}

.group-buddy-card.group-buddy-me {
    background: #3E1768;
    color: white;
    box-shadow: 0 4px 12px rgba(62, 23, 104, 0.3);
}

.group-buddy-card.group-buddy-me .group-buddy-name {
    color: white;
    font-weight: 700;
}

.group-buddy-card.group-buddy-me .status-label {
    color: rgba(255, 255, 255, 0.9);
}

.group-buddy-card.group-buddy-me .status-time {
    color: rgba(255, 255, 255, 0.8);
}

.group-buddy-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-buddy-alert-icon {
    color: #F44336;
    font-size: 16px;
    flex-shrink: 0;
}

.group-buddy-me-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.group-buddy-name {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
}

.group-buddy-status {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-light.active {
    background-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.status-light.inactive {
    background-color: #F44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.5);
}

.status-light i {
    font-size: 8px;
    color: white;
}

.status-light.inactive i {
    color: white;
}

.status-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    min-width: 100px;
}

.status-time {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

/* Group Buddies Loading */
.group-buddies-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.group-buddies-loading i {
    font-size: 32px;
    color: #3E1768;
}

.group-buddies-loading p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Group Buddy Dropdown and Preferences */
.group-buddy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.group-buddy-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.group-buddy-dropdown-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #3E1768;
}

.group-buddy-dropdown-btn.active {
    color: #3E1768;
}

.group-buddy-dropdown-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.group-buddy-dropdown-btn.active i {
    transform: rotate(180deg);
}

.group-buddy-card.group-buddy-me .group-buddy-dropdown-btn {
    color: rgba(255, 255, 255, 0.8);
}

.group-buddy-card.group-buddy-me .group-buddy-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.group-buddy-card.group-buddy-me .group-buddy-dropdown-btn.active {
    color: white;
}

.group-buddy-preferences {
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.group-buddy-preferences.expanded {
    max-height: 1000px;
    opacity: 1;
    padding-top: 15px;
    margin-top: 15px;
}

.group-buddy-card.group-buddy-me .group-buddy-preferences {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.preferences-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    gap: 12px;
    color: #666;
}

.preferences-loading i {
    color: #3E1768;
    font-size: 20px;
}

.preferences-loading span {
    font-size: 14px;
}

.group-buddy-card.group-buddy-me .preferences-loading {
    color: rgba(255, 255, 255, 0.8);
}

.group-buddy-card.group-buddy-me .preferences-loading i {
    color: white;
}

.preferences-list-header {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
}

.group-buddy-card.group-buddy-me .preferences-list-header {
    color: rgba(255, 255, 255, 0.9);
}

.preferences-levels {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preference-level-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.group-buddy-card.group-buddy-me .preference-level-item {
    background: rgba(255, 255, 255, 0.1);
}

.preference-level-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3E1768;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.group-buddy-card.group-buddy-me .preference-level-number {
    background: rgba(255, 255, 255, 0.2);
}

.preference-level-content {
    flex: 1;
}

.preference-speaker-name {
    font-size: 14px;
    color: #1A1A1A;
    font-weight: 500;
}

.group-buddy-card.group-buddy-me .preference-speaker-name {
    color: white;
}

.preference-empty {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

.group-buddy-card.group-buddy-me .preference-empty {
    color: rgba(255, 255, 255, 0.6);
}

.preferences-error {
    padding: 20px;
    text-align: center;
    color: #D45847;
    font-size: 14px;
}

/* Preferences Frozen Banner */
.preferences-frozen-banner {
    background: #3E1768;
    color: white;
    padding: 16px 20px;
    margin: -20px -20px 20px -20px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(62, 23, 104, 0.2);
}

.preferences-frozen-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.preferences-frozen-banner-content i {
    font-size: 16px;
}

/* Fade out preference containers when frozen */
.preferences-list.preferences-frozen,
.liked-speakers-list.preferences-frozen {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
