/* ============================================
   Modern Dashboard Header - Mobile First
   ============================================ */

.dashboard-header-modern {
    padding: 1rem 0 0.75rem;
    margin-bottom: 0.5rem;
}

/* Artist identity row: avatar + name + refresh */
.artist-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.artist-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.artist-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.25rem;
}

.artist-name-wrap {
    flex: 1;
    min-width: 0;
}

.artist-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.2;
}

/* Artist subtitle - inline stats line */
.artist-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    display: block;
    margin-top: 0.125rem;
    line-height: 1.3;
}

/* Section header - compact inline */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: #111;
}

.section-meta {
    font-size: 0.8125rem;
    color: #6b7280;
}

.refresh-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.refresh-btn:hover {
    background: #f3f4f6;
    border-color: #1DB954;
    color: #1DB954;
}

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

.refresh-btn.syncing {
    color: #1DB954;
    border-color: #1DB954;
}

.refresh-btn.syncing i {
    animation: spin 1s linear infinite;
}

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

/* Sync banner - unified single banner */
.sync-banner {
    margin-top: 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
}

.sync-banner-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #166534;
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
}

.sync-progress-bar {
    height: 3px;
    background: #dcfce7;
    border-radius: 2px;
    overflow: hidden;
}

.sync-progress-fill {
    height: 100%;
    background: #22c55e;
    transition: width 0.3s ease;
}

/* Tablet+ (640px) */
@media (min-width: 640px) {
    .dashboard-header-modern {
        padding: 1rem 0;
    }

    .artist-avatar {
        width: 52px;
        height: 52px;
    }

    .artist-name {
        font-size: 1.25rem;
    }

    .artist-subtitle {
        font-size: 0.8125rem;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }
}

/* Desktop (1024px) - Compact header, full-width content */
@media (min-width: 1024px) {
    .dashboard-header-modern {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 0;
        margin-bottom: 1rem;
    }

    .artist-identity {
        gap: 1rem;
    }

    .artist-avatar {
        width: 56px;
        height: 56px;
    }

    .artist-name {
        font-size: 1.375rem;
    }

    .artist-subtitle {
        font-size: 0.875rem;
    }

    .songs-ranking-section {
        max-width: none;
    }

    .section-header {
        margin-bottom: 1rem;
    }

    .section-header h2 {
        font-size: 1.375rem;
    }
}

/* Artist Actions Row - Clean Mobile-First */
.artist-actions-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Filter button (only shows when multiple artists) */
.artist-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}

.artist-filter-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.artist-filter-btn i:first-child {
    color: #6b7280;
}

.artist-filter-btn i:last-child {
    font-size: 0.625rem;
    color: #9ca3af;
    margin-left: 0.25rem;
}

/* Dropdown menu */
.artist-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 220px;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 0.25rem;
}

.artist-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.artist-checkbox-label:hover {
    background: #f9fafb;
}

.artist-checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #1DB954;
}

.artist-checkbox-name {
    flex: 1;
    font-size: 0.875rem;
    color: #111;
}

.primary-star {
    color: #fbbf24;
    font-size: 0.75rem;
}

.apply-filter-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem;
    font-size: 0.8125rem;
}

/* Add Artist button - clean style */
.add-artist-btn-clean {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}

.add-artist-btn-clean:hover {
    background: #f9fafb;
    border-color: #1DB954;
    color: #1DB954;
}

.add-artist-btn-clean i {
    color: #1DB954;
}

.cost-pill {
    padding: 0.125rem 0.5rem;
    background: #ecfdf5;
    color: #059669;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
}

/* Position dropdown relative to filter button */
.artist-actions-row {
    position: relative;
}

/* Enhanced sync progress when active */
.sync-progress.active-sync {
    background: #f0f9ff;
    border: 2px solid #1db954;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
}

/* Sync Progress Styles */
.sync-progress {
    margin-top: 10px;
}

.progress-bar-container {
    width: 200px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1db954, #1ed760);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.sync-progress .sync-status {
    display: block;
    color: #666;
    font-size: 0.85em;
}

/* Popularity Education Styles */
.popularity-stat {
    position: relative;
}

.info-icon {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
    padding: 0;
    transition: color 0.2s;
}

.info-icon:hover {
    color: #1db954;
}

.popularity-context {
    display: block;
    font-size: 12px;
    color: #1db954;
    margin-top: 4px;
    font-weight: 500;
}

/* Sync Status Styles */
.dashboard-actions {
    display: flex;
    align-items: center;
}

.sync-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sync-status {
    color: #888;
    font-size: 11px;
    white-space: nowrap;
}

/* Scope green Spotify buttons to dashboard content only (not navbar) */
.container .btn-primary {
    background: #1db954;
    color: white;
    border: none;
}

.container .btn-primary:hover {
    background: #1aa34a;
}

.education-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
    animation: slideDown 0.3s ease;
}

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

.education-content {
    padding: 30px;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

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

.education-section {
    margin: 30px 0;
}

.education-section h3 {
    color: #333;
    margin-bottom: 20px;
}

.education-section h4 {
    color: #555;
    margin-bottom: 15px;
    font-size: 16px;
}

.factor-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.factor {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.factor-icon {
    font-size: 18px;
    font-weight: bold;
    color: #1db954;
    background: #f0f9ff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.factor strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

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

/* Threshold Chart */
.threshold-chart {
    margin: 20px 0;
}

.threshold-bar {
    display: flex;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.threshold-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.threshold-segment.basic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.threshold-segment.radio {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.threshold-segment.discover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.threshold-segment.viral {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.threshold-labels {
    display: flex;
    gap: 0;
    margin-top: 10px;
}

.threshold-label {
    padding: 10px 5px;
    text-align: center;
    font-size: 13px;
}

.threshold-label strong {
    color: #333;
}

.threshold-label small {
    color: #888;
    font-size: 12px;
}

.wisdom {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1db954;
}

.wisdom p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* ============================================
   Connect Artist Profile - Matches Auto-Submit
   ============================================ */

/* Full-height centered container */
.connect-artist-container {
    width: 100%;
}

/* Main step - centered content (matches auto-submit exactly) */
.connect-step {
    min-height: calc(100vh - 200px);
    min-height: calc(100dvh - 200px); /* Dynamic viewport for mobile */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Selected artist step - doesn't need full height */
.connect-step-selected {
    min-height: auto;
    padding: 1rem;
}

.connect-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.2;
}

.connect-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 2rem 0;
    text-align: center;
    max-width: 320px;
    line-height: 1.5;
}

/* Input group container - matches auto-submit exactly */
.connect-artist-container .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Input wrapper with dropdown */
.connect-artist-container .artist-input-wrapper {
    position: relative;
    width: 100%;
}

/* Search icon */
.connect-artist-container .input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
}

/* Input field - matches auto-submit exactly */
.connect-artist-container .artist-input {
    width: 100%;
    padding: 1.125rem 1.25rem 1.125rem 3.25rem;
    font-size: 1.0625rem;
    border: 2px solid #d1d5db;
    border-radius: 16px;
    transition: all 0.2s;
    min-height: 60px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    -webkit-appearance: none;
}

.connect-artist-container .artist-input::placeholder {
    color: #9ca3af;
}

.connect-artist-container .artist-input:focus {
    outline: none;
    border-color: #1DB954;
    box-shadow: 0 2px 12px rgba(29, 185, 84, 0.15);
}

/* Hint text below input - matches auto-submit exactly */
.connect-artist-container .input-hint {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    margin: 0.5rem 0 0 0;
}

/* Selected artist card */
.selected-artist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: #f8faf8;
    border: 2px solid #1db954;
    border-radius: 16px;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.selected-artist-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1db954;
}

.selected-artist-info {
    flex: 1;
}

.selected-artist-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 0.25rem 0;
}

.selected-artist-details {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Selected artist actions */
.selected-artist-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
    max-width: 400px;
}

.btn-connect {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-change-artist {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.btn-change-artist:hover {
    color: #1db954;
}

/* Tablet and up */
@media (min-width: 640px) {
    .connect-step {
        min-height: calc(70vh - 100px);
        padding: 2rem;
    }

    .connect-title {
        font-size: 2.25rem;
    }

    .connect-subtitle {
        font-size: 1.125rem;
        max-width: 400px;
    }

    .connect-artist-container .input-group {
        max-width: 584px; /* Google search box width */
    }

    .connect-artist-container .artist-input {
        font-size: 1.125rem;
        padding: 1.25rem 1.5rem 1.25rem 3.5rem;
        min-height: 64px;
    }

    .connect-artist-container .input-icon {
        left: 1.5rem;
    }

    .selected-artist-card {
        flex-direction: row;
        text-align: left;
        padding: 1.25rem 1.5rem;
        max-width: 500px;
    }

    .selected-artist-info {
        text-align: left;
    }

    .selected-artist-actions {
        flex-direction: row;
        max-width: 500px;
    }

    .btn-connect {
        width: auto;
        flex: 1;
    }
}

/* Large desktop */
@media (min-width: 1024px) {
    .connect-step {
        min-height: calc(60vh - 100px);
    }

    .connect-title {
        font-size: 2.5rem;
    }

    .connect-artist-container .input-group {
        max-width: 650px;
    }
}

/* Shared Spotify Artist Search Styles */
.artist-search-results,
#artist_search_results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Hide completely when empty - no border, no height */
.artist-search-results:empty,
#artist_search_results:empty {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
}

.spotify-artist-result,
.artist-result-item,
.artist-result {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.spotify-artist-result:hover,
.artist-result-item:hover,
.artist-result:hover,
.artist-result.focused {
    background: #f8f9fa;
}

.spotify-artist-result:last-child,
.artist-result-item:last-child,
.artist-result:last-child {
    border-bottom: none;
}

/* Keyboard navigation focus indicator */
.artist-result.focused {
    background: #e8f5e9;
    border-left: 3px solid #1db954;
}

.artist-result-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.artist-result-info {
    flex: 1;
}

.artist-result-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.artist-result-details {
    font-size: 12px;
    color: #666;
}

.verified-badge {
    color: #1db954;
    font-size: 16px;
    margin-left: auto;
    padding-right: 8px;
}

.search-loading, .search-error, .no-results,
.artist-search-status {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.search-error,
.artist-search-status.error {
    color: #dc3545;
}

.artist-search-status i {
    margin-right: 6px;
}

/* Song List Enhancements */
.section-help {
    font-size: 14px;
    color: #888;
    font-weight: normal;
    margin-left: 10px;
}

.popularity-foundation {
    color: #999;
}

.popularity-radio {
    color: #f5576c;
}

.popularity-discover {
    color: #00a8ff;
}

.popularity-viral {
    color: #1db954;
    font-weight: bold;
}

.proximity-indicator {
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
    color: #1db954;
    font-weight: bold;
    vertical-align: super;
}

.popularity-label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* Genre tags */
.genres-section {
    margin: 30px 0;
}

.genres-section h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

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

.genre-tag {
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Dashboard header styles */
.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: clamp(24px, 5vw, 36px);
    line-height: 1.2;
    color: #333;
    margin-bottom: 20px;
}

.artist-core-stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.core-stat {
    text-align: center;
}

.core-stat-value {
    font-size: clamp(24px, 5vw, 36px);
    line-height: 1.1;
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.core-stat-label {
    font-size: clamp(11px, 1.5vw, 13px);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.popularity-fill-foundation {
    background: #ddd;
}

.popularity-fill-radio {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.popularity-fill-discover {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.popularity-fill-viral {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
}

/* Removed duplicate - see consolidated styles below */

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Fix artist core stats for mobile */
    .artist-core-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }
    
    .core-stat {
        width: 100%;
    }
    
    /* .core-stat-value font-size now handled by clamp() */
    
    .dashboard-actions {
        width: 100%;
        margin: auto;
        text-align: center;
    }
    
    .sync-container {
        text-align: center;
    }
    
    /* Fix track names on mobile */
    .song-name {
        word-break: break-word;
        white-space: normal;
        line-height: 1.3;
    }
    
    /* Artist search mobile fixes */
    .artist-search-wrapper {
        max-width: 100% !important;
    }
    
    #artist_search_results,
    .artist-search-results {
        left: 0;
        right: 0;
        max-height: 300px;
    }
    
    .spotify-artist-result,
    .artist-result-item {
        padding: 15px;
        min-height: 60px;
    }

    /* Track list mobile - compact rows consistent with submissions */
    .songs-list {
        background: transparent;
        padding: 0;
        border-radius: 0;
        margin: 0;
    }

    .song-row-container {
        margin-bottom: 0.5rem;
        background: white;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        overflow: hidden;
    }

    .song-row-container:hover {
        transform: none;
    }

    /* Keep horizontal row on mobile - compact and scannable */
    .song-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0.5rem 0.625rem;
        gap: 0.5rem;
    }

    .song-rank {
        font-size: 0.65rem;
        min-width: 1.25rem;
        position: static;
        background: none;
        width: auto;
        height: auto;
        border-radius: 0;
    }

    .song-info {
        padding-left: 0;
        flex: 1;
        min-width: 0;
    }

    .song-name {
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #1a1a1a;
    }

    .song-album {
        font-size: 0.65rem;
        color: #6b7280;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Popularity - compact on mobile */
    .song-popularity {
        width: auto !important;
        min-width: unset !important;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.125rem;
        margin: 0;
    }

    .popularity-bar-mini {
        width: 40px;
        max-width: 40px;
    }

    .song-actions {
        width: auto;
        flex-shrink: 0;
    }

    /* Compact promote button on mobile */
    .btn-promote {
        width: auto;
        padding: 0.375rem 0.5rem;
        font-size: 0.65rem;
    }

    .btn-promote span {
        display: none; /* Hide "Promote" text on mobile */
    }
    
    /* Search bar mobile */
    .track-search-container {
        margin-bottom: 15px;
    }
    
    .search-input-wrapper {
        max-width: 100% !important;
    }
    
    /* Fix playlist modal for mobile */
    #playlistModal .modal-content {
        margin: 70px 10px 10px 10px;
        width: calc(100% - 20px);
        max-width: none;
        height: calc(100vh - 80px);
        max-height: calc(100vh - 80px);
    }
    
    #playlistModal .modal-content-wide {
        width: calc(100% - 20px);
        max-width: none;
    }
    
    .education-content {
        padding: 20px;
    }
    
    .threshold-labels {
        flex-direction: column;
    }
    
    .threshold-label {
        width: 100% !important;
        text-align: left;
        padding: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .factor {
        flex-direction: column;
        text-align: center;
    }
}

/* Artist Search Modal Styles - Matching existing modal design */
.cost-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.cost-text {
    font-weight: 600;
    font-size: 16px;
}

.cost-text.text-success {
    color: #28a745;
}

.cost-text.text-warning {
    color: #ff9800;
}

.balance-text {
    color: #666;
}

/* Search Input Wrapper */
.search-input-wrapper {
    position: relative;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

.search-input {
    padding-left: 36px !important;
}

/* Search Results Container */
.search-results-container {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 16px;
}

/* Artist Result Cards */
.spotify-artist-result {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.spotify-artist-result:hover {
    background: #f8f9fa;
    border-color: #28a745;
}

.artist-result-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.artist-result-info {
    flex: 1;
}

.artist-result-name {
    font-weight: 500;
    font-size: 15px;
    color: #333;
    margin-bottom: 2px;
}

.artist-result-details {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.verified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #28a745;
    font-size: 16px;
}

/* Loading and Status States */
.artist-search-loading {
    padding: 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.artist-search-success {
    padding: 20px;
    text-align: center;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    margin-top: 16px;
}

.artist-search-success i {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.token-info {
    font-size: 13px;
    margin-top: 6px;
    opacity: 0.9;
}

.no-results {
    padding: 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 12px 0;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}
    /* Artist Connection & Sync Status Styles */
    .artist-connection-status {
        padding: 20px;
        text-align: center;
    }

    .connection-success {
        margin-bottom: 20px;
    }

    .connection-success i.fa-check-circle {
        color: #28a745;
        font-size: 48px;
        margin-bottom: 10px;
    }

    .connection-success h4 {
        color: #212529;
        margin: 10px 0;
    }

    .connection-success .artist-name {
        font-size: 1.2em;
        font-weight: 600;
        color: #495057;
        margin: 5px 0;
    }

    .connection-success .token-info {
        color: #6c757d;
        font-size: 0.9em;
        margin-top: 10px;
    }

    .sync-status-container {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 20px;
        margin: 20px 0;
    }

    .sync-header {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
        font-weight: 600;
        color: #495057;
    }

    .sync-header i {
        color: #007bff;
    }

    .sync-progress {
        margin: 15px 0;
    }

    .progress-bar {
        height: 24px;
        background: #e9ecef;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #007bff, #0056b3);
        transition: width 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 0.85em;
    }

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

    .sync-note {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #6c757d;
        font-size: 0.85em;
        margin-top: 15px;
    }

    .sync-note i {
        color: #17a2b8;
    }

    .sync-complete {
        background: #d4edda;
        border: 1px solid #c3e6cb;
        border-radius: 8px;
        padding: 15px;
        margin: 20px 0;
        color: #155724;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .sync-complete i {
        font-size: 24px;
    }

    .sync-complete h4 {
        margin: 5px 0;
        color: #155724;
    }

    .modal-actions {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-top: 20px;
    }

    .modal-actions .btn {
        min-width: 150px;
    }

    @media (max-width: 576px) {
        .modal-actions {
            flex-direction: column;
        }
        
        .modal-actions .btn {
            width: 100%;
        }
    }
    
    /* Artist Connection Success Animation - Consistent with Token Modal */
    .artist-connection-success {
        text-align: center;
        padding: 60px 20px;
        animation: fadeIn 0.4s ease-in;
    }
    
    /* Reuse the fadeIn animation if not already defined */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Artist-specific success details */
    .artist-success-details {
        margin-top: 20px;
    }
    
    .artist-success-details h4 {
        color: #212529;
        margin: 15px 0 10px;
        font-size: 1.3em;
        font-weight: 600;
    }
    
    .artist-avatar-success {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        margin: 20px auto;
        border: 3px solid #28a745;
        object-fit: cover;
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    }
    
    /* Sync progress bar - more prominent */
    .sync-progress-success {
        margin: 20px auto;
        max-width: 300px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .sync-progress-success p {
        margin: 0 0 10px 0;
        color: #495057;
        font-size: 0.9em;
    }
    
    .sync-progress-bar {
        height: 6px;
        background: #e9ecef;
        border-radius: 3px;
        overflow: hidden;
        margin-bottom: 8px;
    }
    
    .sync-progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #1db954, #1ed760);
        transition: width 0.3s ease;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.8; }
    }
    
    /* Countdown indicator */
    .auto-close-countdown {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
    }
    
    .countdown-circle {
        stroke: #28a745;
        stroke-width: 2;
        stroke-dasharray: 88;
        stroke-dashoffset: 0;
        animation: countdown 1s linear forwards;
        fill: none;
    }
    
    @keyframes countdown {
        to { 
            stroke-dashoffset: 88; 
        }
    }
    
    /* Error state styling */
    .artist-connection-error {
        text-align: center;
        padding: 40px 20px;
    }
    
    .artist-connection-error .error-icon {
        font-size: 48px;
        color: #dc3545;
        margin-bottom: 20px;
    }
    
    .artist-connection-error h3 {
        color: #212529;
        margin-bottom: 15px;
    }
    
    .artist-connection-error .error-message {
        color: #6c757d;
        margin-bottom: 30px;
        font-size: 1.1em;
    }
    
    /* Modal connecting state */
    .modal.modal-connecting .modal-content {
        opacity: 0.95;
        transition: opacity 0.2s ease;
    }
    
    /* Success title with personality */
    .success-title {
        font-size: 1.8em;
        color: #212529;
        margin: 20px 0 15px;
        font-weight: 700;
    }
    
    /* ============================================
       Artist Modal Consistent Sizing
       ============================================ */
    
    /* Override modal-content-auth for consistent sizing */
    #addArtistModal .modal-content-auth {
        min-height: 450px;
        transition: all 0.3s ease;
    }
    
    /* Ensure modal body can flex to fill space */
    #addArtistModal .modal-body-auth {
        display: flex;
        flex-direction: column;
        min-height: 350px;
    }
    
    /* When in success state, center the content */
    #addArtistModal .modal-body-auth.success-state {
        justify-content: center;
        align-items: center;
    }
    
    /* Compact version of success animation for artist modal */
    #addArtistModal .artist-connection-success {
        text-align: center;
        padding: 30px 20px; /* Reduced from 60px */
        animation: fadeIn 0.4s ease-in;
        width: 100%;
    }
    
    /* Smaller success icon for this modal */
    #addArtistModal .success-icon-wrapper {
        width: 70px; /* Smaller than default */
        height: 70px;
        margin: 0 auto 20px;
    }
    
    /* Adjust success title size */
    #addArtistModal .success-title {
        font-size: 1.5em; /* Smaller for compact view */
        margin: 15px 0 10px;
    }
    
    /* Compact artist avatar */
    #addArtistModal .artist-avatar-success {
        width: 60px;
        height: 60px;
        margin: 15px auto;
        border: 2px solid #28a745; /* Thinner border */
    }
    
    /* Compact sync progress for modal */
    #addArtistModal .sync-progress-success {
        margin: 15px auto;
        max-width: 280px;
        padding: 12px;
    }
    
    #addArtistModal .sync-progress-success p {
        font-size: 0.85em;
        margin: 0 0 8px 0;
    }
    
    #addArtistModal .sync-progress-bar {
        height: 4px; /* Thinner progress bar */
    }
    
    /* Smaller action buttons */
    #addArtistModal .modal-actions .btn {
        padding: 8px 16px;
        font-size: 0.9em;
        min-width: 120px;
    }
    
    /* Adjust countdown position for compact view */
    #addArtistModal .auto-close-countdown {
        width: 24px;
        height: 24px;
        top: 10px;
        right: 10px;
    }
    
    /* Error state should also maintain consistent size */
    #addArtistModal .artist-connection-error {
        padding: 30px 20px;
        min-height: 300px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    #addArtistModal .artist-connection-error .error-icon {
        font-size: 36px; /* Smaller icon */
        margin-bottom: 15px;
    }
    
    #addArtistModal .artist-connection-error h3 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    
    /* Smooth transition for content changes */
    #addArtistModal .modal-content-auth > * {
        transition: opacity 0.3s ease;
    }
    
    /* Mobile responsiveness for fixed size */
    @media (max-width: 480px) {
        #addArtistModal .modal-content-auth {
            min-height: 400px; /* Slightly smaller on mobile */
            width: 90%;
            margin: 10% auto;
        }
        
        #addArtistModal .modal-body-auth {
            min-height: 300px;
        }
    }


/* Songs list - clean container matching submissions */
.songs-list {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-top: 1rem;
}

/* Song row container - matches submission card styling */
.song-row-container {
    position: relative;
    margin-bottom: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.15s ease;
    overflow: hidden;
}

/* Clickable track styles */
.song-row-container.clickable-track {
    cursor: pointer;
}

.song-row-container.clickable-track:hover {
    border-color: #1db954;
    background: #fafafa;
}

.song-row-container.clickable-track:hover .song-name {
    color: #1db954;
}

/* Chart icon for tracks with data */
.track-chart-icon {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: #1db954;
    opacity: 0.7;
}

.clickable-track:hover .track-chart-icon {
    opacity: 1;
}

/* Consolidated song row styles - compact like submissions tab */
.song-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
}

.song-rank {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 500;
    min-width: 1.5rem;
    text-align: center;
}

.song-info {
    flex: 1;
    min-width: 0; /* allows truncation */
}

.song-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-album {
    font-size: 0.7rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Popularity score - prominent but compact */
.song-popularity {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.popularity-number {
    font-size: 1.125rem;
    font-weight: 700;
    min-width: 1.75rem;
    text-align: right;
    color: #1a1a1a;
}

/* Popularity tier colors - matches algorithm thresholds */
.popularity-number.popularity-foundation {
    color: #6b7280; /* Gray - building foundation (0-19) */
}

.popularity-number.popularity-radio {
    color: #db2777; /* Pink - Radio/Editorial potential (20-29) */
}

.popularity-number.popularity-discover {
    color: #2563eb; /* Blue - Discover Weekly territory (30-49) */
}

.popularity-number.popularity-viral {
    color: #059669; /* Green - Viral/trending (50+) */
}

/* Trend indicator */
.popularity-trend {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
}

.popularity-trend.up {
    color: #059669;
    background: #d1fae5;
}

.popularity-trend.down {
    color: #dc2626;
    background: #fee2e2;
}

.popularity-trend.stable {
    color: #6b7280;
    background: #f3f4f6;
}

/* Proximity indicator for algorithm thresholds */
.proximity-indicator {
    color: #f59e0b;
    font-weight: 700;
    margin-left: 2px;
}

.song-actions {
    display: flex;
    align-items: center;
}

/* Promote button - PRIMARY CTA */
.btn-promote {
    background: #1db954;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.375rem 0.625rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.15s;
    white-space: nowrap;
}

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

.btn-promote i {
    font-size: 0.6rem;
}

/* Desktop: larger sizes */
@media (min-width: 640px) {
    .song-row {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }

    .song-rank {
        font-size: 0.8rem;
        min-width: 2rem;
    }

    .song-name {
        font-size: 0.875rem;
    }

    .song-album {
        font-size: 0.75rem;
    }

    .popularity-number {
        font-size: 1.25rem;
    }

    .btn-promote {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Hide the mini bar - cleaner without it */
.popularity-bar-mini {
    display: none;
}

.modal-content-wide {
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    margin: 5vh auto;
}

/* Make modal body scrollable */
.modal-content-wide .modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: calc(85vh - 120px); /* Account for header and padding */
    padding: 20px;
}

/* Responsive adjustments */
@media (max-height: 768px) {
    .modal-content-wide {
        max-height: 95vh;
        margin: 2.5vh auto;
    }

    .modal-content-wide .modal-body {
        max-height: calc(95vh - 100px);
    }
}

/* Playlist Modal Tab Styles */
.playlist-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #ddd;
    padding: 0 20px;
    background: #f8f9fa;
}

.playlist-tab {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.playlist-tab:hover {
    color: #333;
    background: rgba(29, 185, 84, 0.05);
}

.playlist-tab.active {
    color: #1db954;
    border-bottom-color: #1db954;
    background: white;
}

.playlist-tab i {
    font-size: 12px;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Mobile responsive tabs */
@media (max-width: 768px) {
    .playlist-tabs {
        padding: 0 10px;
    }

    .playlist-tab {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Browse All Playlist Cards - Mobile First */
.browse-playlist-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.browse-playlist-card:hover {
    border-color: #1db954;
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.1);
}

.browse-card-inner {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.browse-checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
}

.browse-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.browse-playlist-image {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.browse-playlist-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

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

.browse-playlist-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.browse-curator-name {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
}

.browse-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.browse-genres .genre-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

.browse-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.browse-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.browse-stat i {
    font-size: 12px;
    opacity: 0.7;
}

.browse-spotify-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #1db954;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: fit-content;
}

.browse-spotify-link:hover {
    background: #1aa34a;
    transform: translateY(-1px);
}

.browse-spotify-link i {
    font-size: 14px;
}

/* Tablet and Desktop: Horizontal Layout */
@media (min-width: 600px) {
    .browse-card-inner {
        flex-direction: row;
        align-items: start;
        padding: 16px;
    }

    .browse-playlist-image {
        width: 120px;
        max-width: 120px;
        flex-shrink: 0;
        margin: 0;
    }

    .browse-checkbox {
        top: 16px;
        right: 16px;
    }

    .browse-playlist-info {
        padding-right: 40px; /* Space for checkbox */
    }

    .browse-playlist-name {
        font-size: 18px;
    }

    .browse-curator-name {
        font-size: 15px;
    }
}

/* Large Desktop: Wider Images */
@media (min-width: 1024px) {
    .browse-playlist-image {
        width: 140px;
        max-width: 140px;
    }
}

.loading-message, .no-results, .error-message {
    text-align: center;
    padding: 40px;
    color: #888;
}

/* Simple Sync Status Styles */
.sync-status-simple {
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 4px;
}

.sync-status-simple .sync-status-text {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.sync-status-simple .sync-status-text i {
    margin-right: 6px;
    color: #667eea;
}

.sync-progress-bar-simple {
    background: #e9ecef;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.sync-progress-bar-simple .sync-progress-bar-fill {
    background: #667eea;
    height: 100%;
    transition: width 0.3s ease;
}

.recommendations-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.recommendation-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.recommendation-item:hover {
    background: #f8f9fa;
    border-color: #1db954;
}

.rec-checkbox {
    display: flex;
    align-items: center;
}

.rec-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Style the selection control buttons */
.selection-controls button:hover {
    background: #f0f0f0 !important;
    border-color: #999 !important;
}

.rec-content {
    flex: 1;
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.rec-name {
    font-weight: 600;
    cursor: pointer;
}

.match-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-excellent {
    background: #d4f4dd;
    color: #1db954;
}

.badge-good {
    background: #fff3cd;
    color: #856404;
}

.badge-moderate {
    background: #e8e8e8;
    color: #666;
}

.rec-details {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.tier-badge {
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 4px;
}

.token-cost {
    font-weight: 600;
    color: #1db954;
}

.rec-summary {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.submission-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.submission-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.submission-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
}

.submit-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Mobile: Stack buttons vertically */
@media (max-width: 600px) {
    .submit-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .submit-actions .btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        white-space: normal;
        line-height: 1.3;
    }
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Score Explanation Styles */
.score-explanation {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.score-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
}

.score-header:hover {
    color: #1db954;
}

.toggle-icon {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.2s;
}

.score-details {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
}

.match-type {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #444;
}

.match-type i {
    color: #1db954;
    width: 16px;
}

.exact-match i {
    color: #ffd700;
}

.primary-match i {
    color: #1db954;
}

.secondary-match i {
    color: #6c757d;
}

.genre-match i {
    color: #9b59b6;
}

.points {
    margin-left: auto;
    font-weight: 600;
    color: #1db954;
    font-size: 12px;
    padding: 2px 6px;
    background: #e8f5e9;
    border-radius: 12px;
}

.artist-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin: 0 2px;
    background: #e0e0e0;
}

.artist-chip.primary {
    background: #d4f4dd;
    color: #1a7431;
}

.artist-chip.secondary {
    background: #e8e8e8;
    color: #555;
}

.artist-chip.exact {
    background: #fff3cd;
    color: #856404;
}

.score-formula {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dee2e6;
    color: #666;
    line-height: 1.6;
}

.score-formula strong {
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.more-artists {
    font-style: italic;
    color: #888;
    font-size: 12px;
}

.no-matches {
    color: #888;
    font-style: italic;
}

/* Promotion Modal Styles */
.promo-track-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.promo-track-display {
    display: flex;
    align-items: center;
    gap: 16px;
}

.promo-track-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.promo-track-info {
    flex: 1;
    text-align: left;
}

.promo-track-info h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #333;
    line-height: 1.2;
}

.promo-track-info p {
    margin: 0;
    font-size: 15px;
    color: #666;
}


/* Promotion Options */
.promo-options {
    margin: 20px 0;
}

.promo-section-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

/* Option Cards */
.promo-option-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.promo-option-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.promo-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.promo-option-details {
    flex: 1;
}

.promo-option-details strong {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.promo-option-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.promo-option-action {
    font-weight: 600;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Different colors for different options */
.promo-option-card:nth-child(2) .promo-option-action {
    background: #e8f5e9;
    color: #2e7d32;
}

.promo-option-card:nth-child(3) .promo-option-action {
    background: #fff3e0;
    color: #e65100;
}

.promo-option-card:nth-child(4) .promo-option-action {
    background: #f3e5f5;
    color: #6a1b9a;
}

/* Custom promotion details */
.promo-custom-details {
    margin-top: 16px;
    animation: slideDown 0.3s ease-out;
}

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

.promo-divider-light {
    height: 1px;
    background-color: #e5e5e5;
    margin: 16px 0;
}

.promo-process-section,
.promo-input-section {
    margin-bottom: 20px;
}

.promo-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.promo-step {
    margin-bottom: 14px;
}

.promo-step strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.promo-step p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.promo-input-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.promo-input-suggestions {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.promo-input-suggestions li {
    font-size: 12px;
    color: #777;
    padding: 4px 0 4px 16px;
    position: relative;
}

.promo-input-suggestions li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #999;
}

.promo-guidance-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s;
}

.promo-guidance-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.promo-note {
    font-size: 13px;
    color: #666;
    margin-top: 12px;
    line-height: 1.5;
}

.promo-helper-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.promo-custom-action {
    margin-top: 20px;
    text-align: center;
}

.promo-custom-action .btn-large {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
}

/* Market tier checkboxes */
.tier-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tier-checkbox {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
}

.tier-checkbox:hover {
    background-color: #f8f9fa;
    border-color: #999;
}

.tier-checkbox input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.tier-checkbox span {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.tier-checkbox input[type="checkbox"]:checked + span {
    font-weight: 500;
}

/* Promotion success state */
.promo-success-state {
    text-align: center;
    padding: 20px;
}

.promo-success-state .success-title {
    font-size: 24px;
    color: #333;
    margin: 20px 0;
}

.promo-success-details {
    max-width: 500px;
    margin: 0 auto;
}

.promo-success-details p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.promo-next-steps {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    text-align: left;
}

.promo-next-steps h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.promo-next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.promo-next-steps li {
    font-size: 13px;
    color: #666;
    padding: 6px 0 6px 20px;
    position: relative;
}

.promo-next-steps li:before {
    content: "•";
    position: absolute;
    left: 4px;
    color: #667eea;
}

.promo-contact {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}

.promo-contact a {
    color: #667eea;
    text-decoration: none;
}

.promo-contact a:hover {
    text-decoration: underline;
}

.promo-success-actions {
    margin-top: 24px;
}

/* Mobile responsive for promotion modal */
@media (max-width: 768px) {
    .promo-track-image {
        width: 60px;
        height: 60px;
    }

    .promo-track-info h3 {
        font-size: 18px;
    }

    .promo-track-info p {
        font-size: 14px;
    }

    .promo-option-card {
        padding: 14px;
    }

    .promo-option-content {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .promo-option-action {
        align-self: stretch;
        text-align: center;
    }

    .promo-option-details strong {
        font-size: 14px;
    }

    .promo-option-desc {
        font-size: 12px;
    }

    .promo-addon-label {
        font-size: 12px;
    }

    .promo-addon-list li {
        font-size: 12px;
        margin: 6px 0;
    }
}

/* ===========================
   Batch Submit Success Modal
   Mobile-First Design
   =========================== */

/* Success detail items - mobile first */
.success-detail-item {
    margin: 12px 0;
    color: #333;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.success-detail-item i {
    font-size: 16px;
}

.success-detail-secondary {
    color: #666;
    font-size: 14px;
}

/* Auto-close countdown circle */
.auto-close-countdown {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.auto-close-hint {
    margin-top: 20px;
    color: #666;
    font-size: 13px;
}

/* Modal actions - mobile first (stack vertically) */
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions .btn {
    width: 100%;
    padding: 12px 16px;
}

.modal-actions .btn-text {
    margin-left: 4px;
}

/* Tablet and up: horizontal layout */
@media (min-width: 600px) {
    .modal-actions {
        flex-direction: row;
        justify-content: center;
    }

    .modal-actions .btn {
        width: auto;
        min-width: 140px;
    }

    .success-detail-item {
        font-size: 16px;
    }
}

/* ============================================
   Dashboard Tabs - Mobile First
   ============================================ */
.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0;
}

.dashboard-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
}

.dashboard-tab:hover {
    color: #374151;
}

.dashboard-tab.active {
    color: #231d4e;
    border-bottom-color: #231d4e;
}

.tab-badge {
    background: #fbbf24;
    color: #78350f;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ============================================
   Submissions Tab Styles - Mobile First
   ============================================ */
.submissions-tab-content {
    padding: 0;
}

.submissions-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: #f3f4f6;
    border-radius: 16px;
    font-size: 0.75rem;
    color: #4b5563;
}

.stat-chip.pending {
    background: #fef3c7;
    color: #92400e;
}

.stat-chip.accepted {
    background: #d1fae5;
    color: #065f46;
}

.pending-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.pending-alert i {
    color: #d97706;
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.pending-alert strong {
    display: block;
    color: #92400e;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.pending-alert span {
    font-size: 0.75rem;
    color: #78350f;
}

/* Expired/Refunded Alert */
.expired-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.expired-alert i {
    color: #d97706;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.expired-alert-content {
    flex: 1;
    min-width: 0;
}

.expired-alert strong {
    display: block;
    color: #92400e;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.expired-alert span {
    font-size: 0.75rem;
    color: #b45309;
}

.expired-alert .btn {
    flex-shrink: 0;
}

/* Resubmit button on expired rows */
.sub-action-btn.resubmit {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.sub-action-btn.resubmit:hover {
    background: #bfdbfe;
}

.sub-action-btn.resubmit.success {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

/* Bulk Resubmit Modal */
#bulkResubmitModal {
    /* Center modal - appears above navbar due to z-index */
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    z-index: 10001 !important; /* Above navbar (9998) */
}

#bulkResubmitModal .resubmit-modal {
    max-width: 540px;
    width: 95%;
    max-height: calc(100vh - 2rem); /* Full viewport minus padding */
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    flex-shrink: 0;
}

.resubmit-modal .modal-header {
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 12px 12px 0 0;
}

.resubmit-modal .modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.resubmit-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    min-height: 0;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.resubmit-modal .modal-footer {
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

.resubmit-explainer {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Track groups in resubmit modal */
.resubmit-track-group {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.resubmit-track-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fafafa;
    cursor: pointer;
}

.resubmit-track-art {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.resubmit-track-art-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    flex-shrink: 0;
}

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

.resubmit-track-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resubmit-track-artist {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resubmit-track-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #64748b;
}

.resubmit-track-toggle .count-badge {
    background: #e5e7eb;
    padding: 0.125rem 0.375rem;
    border-radius: 8px;
    font-weight: 500;
}

.resubmit-track-toggle i {
    transition: transform 0.2s;
}

.resubmit-track-group.collapsed .resubmit-track-toggle i {
    transform: rotate(-90deg);
}

.resubmit-track-group.collapsed .resubmit-submissions-list {
    display: none;
}

.resubmit-submissions-list {
    border-top: 1px solid #e5e7eb;
}

.resubmit-submission-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.resubmit-submission-row:hover {
    background: #f8fafc;
}

.resubmit-submission-row:active {
    background: #f1f5f9;
}

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

.resubmit-submission-row.disabled {
    opacity: 0.6;
    background: #f8fafc;
    cursor: not-allowed;
}

.resubmit-submission-row.disabled:hover,
.resubmit-submission-row.disabled:active {
    background: #f8fafc;
}

.resubmit-submission-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: none; /* Let row handle clicks */
}

.resubmit-submission-row input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

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

.resubmit-playlist-name {
    font-size: 0.875rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resubmit-submission-meta {
    font-size: 0.75rem;
    color: #64748b;
}

.resubmit-unavailable-reason {
    font-size: 0.75rem;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.resubmit-cost-badge {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
}

.resubmit-summary {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.resubmit-count {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.resubmit-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.resubmit-cost strong {
    color: #231d4e;
}

.resubmit-balance {
    font-size: 0.875rem;
    color: #64748b;
}

.resubmit-balance.insufficient {
    color: #dc2626;
}

.resubmit-balance .shortfall {
    color: #dc2626;
    font-weight: 500;
}

.resubmit-list {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    max-height: 250px;
    overflow-y: auto;
}

.resubmit-list-header {
    background: #f8fafc;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
}

.resubmit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.resubmit-item:last-child {
    border-bottom: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.resubmit-playlist {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resubmit-price {
    font-size: 0.75rem;
    color: #64748b;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.resubmit-unavailable {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.unavailable-header {
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.unavailable-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    color: #94a3b8;
}

.unavailable-reason {
    font-size: 0.75rem;
    color: #dc2626;
}

.resubmit-success {
    text-align: center;
    padding: 2rem 1rem;
}

.resubmit-success .auto-close-countdown {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
}

.resubmit-success .countdown-circle {
    stroke: #22c55e;
    stroke-dasharray: 88;
    stroke-dashoffset: 0;
    animation: countdown-spin 2.5s linear forwards;
}

@keyframes countdown-spin {
    to { stroke-dashoffset: 88; }
}

.resubmit-success .success-icon-wrapper {
    margin-bottom: 1rem;
}

/* Reuse the success checkmark from main.css */
.resubmit-success .success-checkmark {
    width: 64px;
    height: 64px;
}

.resubmit-success .success-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.resubmit-success .success-details {
    margin-bottom: 1.5rem;
}

.resubmit-success .success-details p {
    color: #64748b;
    margin: 0.25rem 0;
    font-size: 0.875rem;
}

.resubmit-success .skipped-note {
    font-size: 0.875rem;
    color: #f59e0b;
    margin-top: 0.5rem;
}

/* Footer styles for cost breakdown */
.resubmit-footer-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.resubmit-footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.resubmit-selected-count {
    font-size: 0.875rem;
    color: #64748b;
}

.resubmit-balance-info {
    font-size: 0.75rem;
    color: #94a3b8;
}

.resubmit-balance-info.insufficient {
    color: #dc2626;
}

.resubmit-total-cost {
    font-size: 1.25rem;
    font-weight: 700;
    color: #231d4e;
}

.resubmit-footer-actions {
    display: flex;
    gap: 0.5rem;
}

.resubmit-footer-actions .btn {
    flex: 1;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

/* Filter Chips Container */
.filter-chips-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.25rem; /* Prevent clipping of chip borders */
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-chips-container::-webkit-scrollbar {
    display: none;
}

.filter-chips {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
    padding-left: 1px; /* Prevent first chip border from clipping */
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem 0.4rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    font-size: 0.7rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

@media (min-width: 480px) {
    .filter-chip {
        gap: 0.25rem;
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
        border-radius: 16px;
    }
}

.filter-chip:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.filter-chip.active {
    background: #231d4e;
    color: #fff;
    border-color: #231d4e;
}

.filter-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 14px;
    height: 14px;
    padding: 0 0.2rem;
    background: #f3f4f6;
    border-radius: 7px;
    font-size: 0.55rem;
    font-weight: 600;
}

@media (min-width: 480px) {
    .chip-count {
        min-width: 16px;
        height: 16px;
        padding: 0 0.25rem;
        border-radius: 8px;
        font-size: 0.6rem;
    }
}

.chip-count.pending {
    background: #fef3c7;
    color: #92400e;
}

/* Inline resubmit button */
.resubmit-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.625rem;
    background: #d97706;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    margin-left: auto;
    flex-shrink: 0;
}

.resubmit-inline-btn:hover {
    background: #b45309;
}

.resubmit-inline-btn i {
    font-size: 0.6rem;
}

/* Hide text on mobile, show only icon + count */
.resubmit-inline-btn .resubmit-text {
    display: none;
}

@media (min-width: 480px) {
    .resubmit-inline-btn .resubmit-text {
        display: inline;
    }
}

/* Track Cards */
.sub-track-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.sub-track-card.has-pending {
    border-color: #fbbf24;
    border-width: 2px;
}

.sub-track-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    background: #fafafa;
}

.sub-track-card.has-pending .sub-track-header {
    background: #fffbeb;
}

.sub-track-art {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.sub-track-art-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
}

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

.sub-track-name {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-track-artist {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-track-badges {
    display: flex;
    gap: 0.25rem;
}

.badge-pending, .badge-accepted, .badge-placed, .badge-other {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.125rem 0.375rem;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 600;
}

.badge-pending i, .badge-accepted i, .badge-placed i {
    font-size: 0.5rem;
}

/* Hide text labels on mobile - just show icon + count */
.badge-label {
    display: none;
}

@media (min-width: 480px) {
    .badge-pending, .badge-accepted, .badge-placed, .badge-other {
        gap: 0.25rem;
        padding: 0.125rem 0.5rem;
        border-radius: 10px;
        font-size: 0.65rem;
    }

    .badge-pending i, .badge-accepted i, .badge-placed i {
        font-size: 0.55rem;
    }

    /* Show text labels on tablet+ */
    .badge-label {
        display: inline;
    }
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-accepted {
    background: #d1fae5;
    color: #065f46;
}

.badge-placed {
    background: #dbeafe;
    color: #1e40af;
}

.badge-other {
    background: #f3f4f6;
    color: #6b7280;
}

.sub-track-toggle {
    color: #9ca3af;
    transition: transform 0.15s;
}

.sub-track-card.expanded .sub-track-toggle {
    transform: rotate(180deg);
}

.sub-track-list {
    display: none;
}

.sub-track-card.expanded .sub-track-list {
    display: block;
}

.sub-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.sub-row-pending {
    background: #fffbeb;
}

.sub-playlist {
    flex: 1;
    min-width: 0;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #374151;
}

/* Editorial Queue Badge */
.editorial-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #7c3aed;
    font-weight: 600;
}

.editorial-badge i {
    color: #f59e0b;
    font-size: 0.65rem;
}

.editorial-status {
    background: #f3e8ff !important;
    color: #7c3aed !important;
}

.editorial-status i {
    color: #7c3aed;
}

.editorial-link {
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.editorial-link:hover {
    background: #ede9fe !important;
    transform: scale(1.02);
}

.sub-status .status {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

.sub-status .status i {
    font-size: 0.55rem;
}

.status.pending {
    background: #fef3c7;
    color: #92400e;
}

.status.accepted {
    background: #d1fae5;
    color: #065f46;
}

.status.declined {
    background: #f3f4f6;
    color: #6b7280;
}

.status.expired {
    background: #f3f4f6;
    color: #9ca3af;
}

.status.placed {
    background: #dbeafe;
    color: #1e40af;
}

/* Inline resubmit button in status column */
.status-resubmit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: #d97706;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.status-resubmit-btn:hover {
    background: #b45309;
}

.status-resubmit-btn i {
    font-size: 0.5rem;
}

.status-resubmit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.status-resubmit-btn.success {
    background: #059669;
}

.countdown {
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.7rem;
}

.countdown.urgent {
    color: #dc2626;
    animation: pulse 2s infinite;
}

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

.sub-actions {
    display: none; /* Hidden by default on mobile */
    gap: 0.375rem;
}

/* Show actions on larger screens */
@media (min-width: 640px) {
    .sub-actions {
        display: flex;
    }
}

.sub-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.sub-action-btn:hover {
    background: #f9fafb;
}

.sub-action-btn.spotify {
    color: #1db954;
}

.sub-action-btn.spotify:hover {
    background: #1db954;
    color: #fff;
    border-color: #1db954;
}

.sub-feedback {
    padding: 0.625rem 0.75rem;
    margin: 0 0.75rem 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #4b5563;
}

.sub-feedback strong {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.submissions-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}

.submissions-empty i {
    font-size: 2.5rem;
    color: #d1d5db;
    margin-bottom: 0.75rem;
}

.submissions-empty h3 {
    font-size: 1rem;
    margin-bottom: 0.375rem;
}

.submissions-empty p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

/* Tablet+ */
@media (min-width: 640px) {
    .dashboard-tabs {
        gap: 1rem;
    }

    .dashboard-tab {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .submissions-stats {
        gap: 0.5rem;
    }

    .stat-chip {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }

    .sub-track-art {
        width: 52px;
        height: 52px;
    }

    .sub-track-name {
        font-size: 0.9rem;
    }

    .sub-row {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .sub-playlist {
        font-size: 0.85rem;
    }

    .sub-status .status {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }

    .sub-status .status i {
        font-size: 0.6rem;
    }
}