/* Lists card styling */
.lists-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.lists-card .lists-header {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
}
.lists-card .lists-header h3 {
    margin: 0;
    font-size: 1.1rem;
}
.lists-card .lists-content {
    padding: 10px 14px 12px;
}
.lists-card .lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.lists-card .list-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    background: #fafafa;
}
.lists-card .list-item .list-link {
    text-decoration: none;
    color: inherit;
}
.lists-card .list-item h4 {
    margin: 0 0 6px 0;
    font-size: 1rem;
}
.lists-card .list-item p {
    margin: 0;
    color: #6b7280;
}
/* Viewing history block styling (profiller module) */
.profile-viewing-history h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
}
.profile-viewing-history .viewing-history-content {
    padding: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Streak Debugger */
.profile-streak-debug { 
    border: 1px solid #e5e7eb; 
    border-radius: 8px; 
    padding: 12px; 
    background: #ffffff; 
}
.profile-streak-debug .streak-debug-months {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.profile-streak-debug .streak-debug-month {
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 10px;
}
.profile-streak-debug .streak-debug-month-header {
    font-weight: 600;
    margin-bottom: 8px;
}
.profile-streak-debug .streak-debug-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 22px);
    gap: 6px;
    margin-bottom: 6px;
}
.profile-streak-debug .streak-debug-weekday {
    font-size: 10px;
    color: #6b7280;
    text-align: center;
}
.profile-streak-debug .streak-debug-grid { 
    margin-top: 8px; 
}
.profile-streak-debug .sd-cell { 
    outline: none; 
    transition: transform 0.06s ease, box-shadow 0.12s ease; 
    box-shadow: 0 0 0 0 rgba(0,0,0,0); 
}
.profile-streak-debug .sd-cell.sd-disabled {
    opacity: 0.5;
    cursor: default;
}
.profile-streak-debug .sd-cell:hover { 
    transform: translateY(-1px); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.08); 
}
.profile-streak-debug .sd-cell:focus { 
    box-shadow: 0 0 0 2px rgba(59,130,246,0.6); 
}
.profile-streak-debug .sd-missed { 
    background: #ef4444; 
}
.profile-streak-debug .sd-active { 
    background: #22c55e; 
}
.profile-streak-debug .sd-freeze { 
    background: #60a5fa; 
}
.profile-streak-debug .sd-unset {
    background: #9ca3af;
}
.profile-streak-debug .streak-debug-save { 
    background: #111827; 
    color: #ffffff; 
    border: 1px solid #111827; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: background 0.12s ease, transform 0.06s ease; 
}
.profile-streak-debug .streak-debug-save:hover { 
    background: #000000; 
    transform: translateY(-1px); 
}
.profile-streak-debug .streak-debug-save:active { 
    transform: translateY(0); 
}

.profile-viewing-history:hover .viewing-history-content {
    border-color: #39CCA8;
}
.profile-viewing-history .history-header {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
}
.profile-viewing-history .history-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.profile-viewing-history .profile-history-list {
    display: flex;
    flex-direction: column;
}
.profile-viewing-history .profile-history-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    border-radius: 8px;
}
.profile-viewing-history .history-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #555;
    border-radius: 50%;
}
.profile-viewing-history .history-title a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.profile-viewing-history .history-title a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}
.profile-viewing-history .history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #6b7280;
    font-size: 0.9rem;
}
.profile-viewing-history .history-meta > span + span:before {
    content: '·';
    margin: 0 4px 0 0;
    color: #9ca3af;
}
.profile-viewing-history .history-info {
    margin-top: 0;
    padding: 10px 14px;
    color: #6b7280;
    font-size: 0.9rem;
}
.profile-viewing-history .history-empty {
    color: #6b7280;
    padding: 16px 14px;
}

.profile-viewing-history .profile-history-item:last-child {
    border-bottom: none;
}

.profile-viewing-history .history-title a:hover {
    text-decoration: underline;
}
.profile-viewing-history .profile-history-item:hover {
    background: #fafafa;
}
/* Music Box - Profiles Frontend Styles */

/* Main Profile Container */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Profile Header Card - Main identity section */
.profile-header {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.profile-header:hover {
    border-color: #39CCA8;
}

.profile-header-content {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.profile-picture-container {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    position: relative;
}

.profile-picture-container img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 3px solid #39CCA8 !important;
    display: block !important;
    max-width: 100px !important;
    max-height: 100px !important;
}

.profile-picture-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: #39CCA8;
    border: 3px solid #39CCA8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    box-sizing: border-box;
}

.profile-picture-placeholder .dashicons {
    font-size: 30px !important;
    width: 30px !important;
    height: 30px !important;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1.2;
}

.profile-username {
    margin: 0 0 16px 0;
    color: #6c757d;
    font-size: 1.1em;
    font-weight: 500;
}

.profile-bio-text {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #495057;
    font-size: 1.05em;
}

.profile-social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #39CCA8;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #39CCA8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: #2a9d7f;
    border-color: #2a9d7f;
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(57, 204, 168, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Profile Stats Card - Social metrics and actions */
.profile-stats {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.profile-stats:hover {
    border-color: #39CCA8;
}

.profile-stats-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.profile-stats-numbers {
    display: flex;
    gap: 40px;
    align-items: center;
}

.stat-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.stat-item:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.stat-number {
    display: block;
    font-size: 2.2em;
    font-weight: 700;
    color: #39CCA8;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.profile-follow-button,
.profile-edit-button,
.profile-preview-button {
    margin: 0;
    display: flex;
    align-items: center;
}

.follow-btn,
.edit-profile-btn,
.preview-btn {
    padding: 12px 24px;
    border: 2px solid #39CCA8;
    background: #fff;
    color: #39CCA8;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}

.follow-btn:hover,
.edit-profile-btn:hover,
.preview-btn:hover {
    background: #39CCA8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 204, 168, 0.3);
    text-decoration: none;
}

.follow-btn.following {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.follow-btn.following:hover {
    background: #5a6268;
    border-color: #5a6268;
}

/* Secondary action buttons */
.edit-profile-btn,
.preview-btn {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    font-size: 0.9em;
    padding: 10px 20px;
}

.edit-profile-btn:hover,
.preview-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Profile Bio Card - Separate bio section */
.profile-bio {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.profile-bio:hover {
    border-color: #39CCA8;
}

.profile-bio h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f3f4;
}

/* Content Cards Layout */
.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.profile-content-full {
    grid-column: 1 / -1;
}

.profile-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.profile-section:hover {
    border-color: #39CCA8;
}

.profile-section h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f3f4;
}

.profile-lists {
    margin: 0;
}

.lists-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.lists-card:hover {
    border-color: #39CCA8;
}

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

.list-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #39CCA8;
}

.list-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.list-link h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.3;
}

.list-link p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95em;
    font-weight: 500;
}

/* Daily Streak Section */
.profile-daily-streak {
    margin: 0;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.profile-daily-streak:hover {
    border-color: #39CCA8;
}

.profile-daily-streak h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f3f4;
}


.streak-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Freeze credits UI */
.streak-freezes {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f1f5ff;
    border: 1px solid #e1e8ff;
    border-radius: 999px;
    font-weight: 600;
    color: #2b5cff;
    position: relative;
    cursor: help;
}
.streak-freezes .freeze-icon { font-size: 16px; line-height: 1; }
.streak-freezes .freeze-count { font-size: 13px; }
.streak-freezes .freeze-cooldown { font-size: 12px; color: #5c6c8a; }
.streak-freezes .freeze-used-indicator { 
    font-size: 14px; 
    margin-left: 4px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.streak-freezes:hover .freeze-used-indicator { opacity: 1; }

/* Tooltip */
.freeze-tooltip {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 280px;
    max-width: 320px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 12px 14px;
    font-weight: 500;
    color: #2c3e50;
    z-index: 5;
    display: none;
    font-size: 13px;
    line-height: 1.4;
}
.streak-freezes:hover .freeze-tooltip,
.streak-freezes:focus .freeze-tooltip {
    display: block;
}

@media (max-width: 640px) {
    .freeze-tooltip {
        right: -20px;
        min-width: 240px;
        max-width: 280px;
        font-size: 12px;
    }
}

/* Past 7 days grid */
.streak-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(36px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.day-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #ffffff;
    font-weight: 700;
    font-size: 12px;
    color: #6c757d;
}
.day-item .day-label { pointer-events: none; }
.day-item.day-active {
    background: #e8f5f3;
    border-color: #39CCA8;
    color: #1b5c4e;
}
.day-item.day-freeze {
    background: #e9f0ff;
    border-color: #2b5cff;
    color: #1b3db2;
}
.day-item.day-missed {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #9aa4b2;
}
.day-item.day-future {
    background: #ffffff;
    border-color: #e9ecef;
    color: #c0c7d1;
    opacity: 0.9;
}

.day-item.day-today {
    border-width: 3px !important;
    box-shadow: 0 4px 12px rgba(57, 204, 168, 0.3);
    z-index: 10;
    position: relative;
    animation: todayPulse 2s ease-in-out infinite;
}

@keyframes todayPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(57, 204, 168, 0.2);
    }
    50% {
        box-shadow: 0 4px 16px rgba(57, 204, 168, 0.35);
    }
}

/* Load More Button for Viewing History */
.history-load-more {
    text-align: center;
    margin-top: 20px;
    padding: 10px 14px;
}

.load-more-history {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #39CCA8;
    color: white;
    border: 2px solid #39CCA8;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px;
    justify-content: center;
}

.load-more-history:hover {
    background: #2a9d7f;
    border-color: #2a9d7f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 204, 168, 0.3);
    text-decoration: none;
}

.load-more-history:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(57, 204, 168, 0.3);
}

.load-more-history:disabled {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .streak-days { grid-template-columns: repeat(7, 1fr); gap: 6px; }
    .day-item { height: 30px; font-size: 11px; }
    .streak-freezes { padding: 5px 8px; gap: 5px; }
}

.streak-icon {
    flex-shrink: 0;
}

.streak-flame {
    font-size: 2em;
    color: #39CCA8;
}

.streak-flame.active {
    color: #ff6b35;
}

.streak-info h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
}

.streak-status {
    font-size: 1em;
    color: #6c757d;
    font-weight: 500;
}

.streak-status.preserved {
    color: #2b5cff;
    font-weight: 600;
}

.streak-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.streak-stat {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.streak-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.streak-stat .stat-number {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: #39CCA8;
    margin-bottom: 5px;
}

.streak-stat .stat-label {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
}

.streak-progress {
    margin-bottom: 15px;
}

.progress-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: #39CCA8;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8em;
    color: #6c757d;
    text-align: center;
}

.last-activity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.activity-label {
    font-weight: 500;
    color: #6c757d;
}

.activity-date {
    font-weight: 600;
    color: #2c3e50;
}

.streak-motivation {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.motivation-icon {
    font-size: 1.2em;
}

.motivation-text {
    font-weight: 500;
    font-size: 0.9em;
}

/* Featured List Section */
.profile-featured-list {
    margin: 0;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.profile-featured-list:hover {
    border-color: #39CCA8;
}

.profile-featured-list h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f3f4;
}

.featured-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.featured-list-header h4 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.featured-list-header h4 a {
    color: #39CCA8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-list-header h4 a:hover {
    color: #2a9d7f;
    text-decoration: none;
}

.change-featured-btn,
.select-featured-btn {
    padding: 8px 16px;
    background: #39CCA8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-featured-btn:hover,
.select-featured-btn:hover {
    background: #2a9d7f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(57, 204, 168, 0.3);
}

.featured-songs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.featured-song-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.featured-song-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.song-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.song-icon {
    font-size: 1.2em;
    color: #39CCA8;
}

.song-title {
    font-weight: 500;
    color: #2c3e50;
}

.more-songs {
    margin-top: 10px;
    text-align: center;
}

.more-songs a {
    color: #39CCA8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.more-songs a:hover {
    color: #2a9d7f;
    text-decoration: none;
}

.featured-empty {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.profile-featured-empty {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.profile-featured-empty p {
    margin: 0 0 15px 0;
}

/* Featured List Selector */
.featured-list-selector {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.featured-list-selector h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.available-lists {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.list-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.list-option:hover {
    background: #f8f9fa;
    border-color: #39CCA8;
}

.list-option.selected {
    background: #e8f5f3;
    border-color: #39CCA8;
}

.list-option input[type="radio"] {
    margin: 0;
    accent-color: #39CCA8;
}

.list-option label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
}

.selector-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.save-featured-btn,
.cancel-featured-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-featured-btn {
    background: #39CCA8;
    color: white;
}

.save-featured-btn:hover {
    background: #2a9d7f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(57, 204, 168, 0.3);
}

.cancel-featured-btn {
    background: #6c757d;
    color: white;
}

.cancel-featured-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Legacy favorites styles (keeping for compatibility) */
.profile-favorites {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.profile-favorites h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.favorite-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.favorite-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.profile-follow-button {
    margin-bottom: 30px;
}

.follow-btn {
    padding: 12px 24px;
    background: #39CCA8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background: #2a9d7f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 204, 168, 0.3);
}

.follow-btn.following {
    background: #6c757d;
}

.follow-btn.following:hover {
    background: #5a6268;
}

.profile-edit-button,
.profile-preview-button {
    margin-bottom: 20px;
}

.edit-profile-btn,
.preview-btn {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover,
.preview-btn:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.profile-error {
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.profile-lists-empty,
.profile-favorites-empty {
    padding: 40px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-container {
        padding: 16px;
        gap: 20px;
    }
    
    .profile-header {
        padding: 24px;
    }
    
    .profile-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-picture-container {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .profile-picture-container img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .profile-picture-placeholder {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .profile-name {
        font-size: 1.8em;
    }
    
    .profile-stats-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .profile-stats-numbers {
        gap: 30px;
    }
    
    .profile-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .lists-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-social-links {
        justify-content: center;
    }
    
    .featured-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .selector-actions {
        flex-direction: column;
    }
    
    .save-featured-btn,
    .cancel-featured-btn {
        width: 100%;
    }
    
    .streak-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .streak-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .streak-flame {
        font-size: 1.8em;
    }
    
    .last-activity {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .streak-motivation {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* Popup Styles for Followers/Following */
.profile-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.profile-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.profile-popup-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
}

.profile-popup-close {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-popup-close:hover {
    color: #2c3e50;
}

.profile-popup-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-popup-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.profile-popup-avatar {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.profile-popup-info {
    flex: 1;
}

.profile-popup-name {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-weight: 600;
}

.profile-popup-username {
    margin: 0;
    color: #6c757d;
    font-size: 0.9em;
}

.profile-popup-link {
    text-decoration: none;
    color: inherit;
}

.profile-popup-link:hover {
    text-decoration: none;
    color: inherit;
}

.profile-popup-private-notice {
    padding: 15px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    text-align: center;
    font-style: italic;
    margin-top: 15px;
}

/* Profile Streak Badge Styles */
.profile-streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    touch-action: none;
    background: linear-gradient(135deg, #FFECB3 0%, #FFE082 100%);
    color: #5d3a00;
    border-radius: 100px;
    padding: 6px 10px;
    font-weight: 600;
}

.profile-streak-badge-icon {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.profile-streak-badge-count {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Elementor integration - make container pass through clicks */
.elementor-widget-shortcode:has(.profile-streak-badge) {
    pointer-events: none !important;
}

.elementor-widget-shortcode:has(.profile-streak-badge) .elementor-shortcode {
    pointer-events: none !important;
}

/* Profile Edit Modal Styles */
.profile-edit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-edit-modal-overlay.show {
    opacity: 1;
}

.profile-edit-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-edit-modal-overlay.show .profile-edit-modal {
    transform: translate(-50%, -50%) scale(1);
}

.profile-edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #39CCA8 0%, #2a9d7f 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-edit-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.profile-edit-modal-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-edit-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-edit-modal-content {
    padding: 32px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.profile-edit-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.profile-edit-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-edit-section-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f3f4;
}

.profile-edit-section-description {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.profile-edit-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-edit-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.profile-edit-input,
.profile-edit-textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.profile-edit-input:focus,
.profile-edit-textarea:focus {
    outline: none;
    border-color: #39CCA8;
    box-shadow: 0 0 0 3px rgba(57, 204, 168, 0.1);
}

.profile-edit-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Social Media Fields */
.profile-edit-social-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-edit-social-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.social-icon {
    font-size: 1.1rem;
}

/* Privacy Settings */
.profile-edit-privacy-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.profile-edit-privacy-field:hover {
    background: #f1f3f4;
}

.privacy-field-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.privacy-field-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    margin: 0;
}

.privacy-field-description {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
}

.privacy-toggle-container {
    display: flex !important;
    align-items: center !important;
}

.privacy-toggle {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 12px !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    min-width: 120px !important;
    height: 36px !important;
    justify-content: space-between !important;
}

.privacy-toggle:hover {
    border-color: #39CCA8 !important;
    box-shadow: 0 2px 8px rgba(57, 204, 168, 0.1) !important;
}

.privacy-toggle-public {
    background: #e8f5f3 !important;
    border-color: #39CCA8 !important;
    color: #1b5c4e !important;
}

.privacy-toggle-private {
    background: #fff3cd !important;
    border-color: #ffc107 !important;
    color: #856404 !important;
}

.privacy-toggle-slider {
    position: absolute !important;
    top: 50% !important;
    left: 4px !important;
    width: 20px !important;
    height: 20px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    transition: transform 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    z-index: 3 !important;
    transform: translateY(-50%) !important;
}

.privacy-toggle-private .privacy-toggle-slider {
    transform: translateX(84px) translateY(-50%) !important;
}

.privacy-toggle-label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: 24px !important;
    position: relative !important;
    z-index: 1 !important;
}

.privacy-toggle-public-text,
.privacy-toggle-private-text {
    transition: opacity 0.3s ease !important;
    font-weight: 500 !important;
}

.privacy-toggle-public .privacy-toggle-private-text {
    opacity: 0 !important;
    position: absolute !important;
}

.privacy-toggle-private .privacy-toggle-public-text {
    opacity: 0 !important;
    position: absolute !important;
}

/* Form Actions */
.profile-edit-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.profile-edit-cancel-btn,
.profile-edit-save-btn {
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 120px !important;
}

.profile-edit-cancel-btn {
    background: #6c757d !important;
    color: white !important;
}

.profile-edit-cancel-btn:hover {
    background: #5a6268 !important;
    transform: translateY(-1px) !important;
}

.profile-edit-save-btn {
    background: linear-gradient(135deg, #39CCA8 0%, #2a9d7f 100%) !important;
    color: white !important;
    position: relative !important;
    overflow: hidden !important;
}

.profile-edit-save-btn:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(57, 204, 168, 0.3) !important;
}

.profile-edit-save-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.btn-loading {
    display: none;
}

/* Messages */
.profile-edit-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.profile-edit-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.profile-edit-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* Preview Mode Indicator */
.profile-preview-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    animation: slideInRight 0.3s ease;
}

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

/* Preview Mode Body Styles */
body.profile-preview-mode {
    position: relative;
}

body.profile-preview-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
    z-index: 10000;
}

/* Profile Picture Upload Styles */
.profile-picture-upload-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}

.current-profile-picture {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    position: relative;
}

.profile-picture-preview {
    position: relative;
    display: inline-block;
}

/* Profile picture styling - applies to all profile images */
.current-profile-picture img,
.profile-picture-preview img,
.current-profile-picture .profile-picture-preview img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 3px solid #39CCA8 !important;
    display: block !important;
    max-width: 80px !important;
    max-height: 80px !important;
}

.remove-profile-picture-btn {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 8px !important;
    background: #dc3545 !important;
    color: white !important;
    border: 2px solid #dc3545 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    z-index: 10 !important;
}

.remove-profile-picture-btn:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4) !important;
}

.remove-profile-picture-btn svg {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    stroke-width: 2 !important;
    stroke: white !important;
    color: white !important;
    fill: none !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.profile-picture-placeholder-upload {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 3px solid #39CCA8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-align: center;
    box-sizing: border-box;
}

.profile-picture-placeholder-upload svg {
    margin-bottom: 4px;
}

.profile-picture-placeholder-upload p {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
}

.profile-picture-upload-area {
    flex: 1;
}

.upload-profile-picture-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    background: #39CCA8 !important;
    color: white !important;
    border: 2px solid #39CCA8 !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    min-height: 44px !important;
    justify-content: center !important;
}

.upload-profile-picture-btn:hover {
    background: #2a9d7f !important;
    border-color: #2a9d7f !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(57, 204, 168, 0.3) !important;
    text-decoration: none !important;
}

.upload-profile-picture-btn svg {
    flex-shrink: 0;
}

.upload-progress {
    margin-top: 12px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #39CCA8 0%, #2a9d7f 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-edit-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .profile-edit-modal-header {
        padding: 20px 24px;
    }
    
    .profile-edit-modal-content {
        padding: 24px;
    }
    
    .profile-edit-modal-title {
        font-size: 1.25rem;
    }
    
    .profile-edit-privacy-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .privacy-toggle-container {
        width: 100%;
        justify-content: flex-end;
    }
    
    .profile-edit-actions {
        flex-direction: column;
    }
    
    .profile-edit-cancel-btn,
    .profile-edit-save-btn {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .profile-edit-modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .profile-edit-modal-header {
        padding: 16px 20px;
    }
    
    .profile-edit-modal-content {
        padding: 20px;
    }
}
