/* ===== MOBILE-FIRST BASE STYLES (320px+) ===== */

/* ===== AUTO-SUBMIT PAGE BUTTONS (scoped to not affect navbar) ===== */
.auto-submit-container .btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

.auto-submit-container .btn-primary {
    background: #1DB954;
    color: white;
}

.auto-submit-container .btn-primary:hover:not(:disabled) {
    background: #1ed760;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.auto-submit-container .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.auto-submit-container .btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== LOGGED OUT: GOOGLE-STYLE MINIMAL ===== */
.auto-submit-container.logged-out {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.auto-submit-container.logged-out .logged-out-view {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.auto-submit-container.logged-out .step-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.auto-submit-container.logged-out .step-description {
    font-size: 0.9375rem;
    color: #666;
    margin: 0 0 2rem 0;
}

.auto-submit-container.logged-out .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.auto-submit-container.logged-out .spotify-url-input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    min-height: 56px;
    box-sizing: border-box;
}

.auto-submit-container.logged-out .signin-prompt {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.auto-submit-container.logged-out .btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: white;
    color: #333;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 48px;
}

.auto-submit-container.logged-out .btn-google:hover {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    border-color: #d2d2d2;
}

.auto-submit-container.logged-out .signin-note {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: #666;
}

/* Tablet+ */
@media (min-width: 640px) {
    .auto-submit-container.logged-out {
        padding: 2rem;
    }

    .auto-submit-container.logged-out .step-title {
        font-size: 2rem;
    }

    .auto-submit-container.logged-out .step-description {
        font-size: 1rem;
    }
}

/* ===== LOGGED IN STYLES ===== */
.auto-submit-container:not(.logged-out) {
    max-width: 100%;
    padding: 0 1rem 120px 1rem;
    box-sizing: border-box;
}

/* Hero section - takes up viewport on mobile */
.auto-submit-container:not(.logged-out) .step-track {
    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;
}

/* Other steps - normal flow */
.auto-submit-container:not(.logged-out) .step:not(.step-track) {
    max-width: 650px;
    margin: 0 auto 1rem auto;
    animation: fadeInUp 0.4s ease-out;
}

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

.auto-submit-container:not(.logged-out) .step-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.2;
}

.auto-submit-container:not(.logged-out) .step-description {
    font-size: 1rem;
    color: #666;
    margin: 0 0 2rem 0;
    text-align: center;
    max-width: 320px;
}

.auto-submit-container:not(.logged-out) .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Track Input with Search */
.track-input-wrapper {
    position: relative;
    width: 100%;
}

.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-hint {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0.5rem 0 0 0;
}

.track-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.track-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.1s ease;
    min-height: 56px;
}

.track-result:hover,
.track-result.focused {
    background: #f3f4f6;
}

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

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

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

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

.track-result-duration {
    font-size: 0.8125rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.track-search-status {
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.track-search-status.error {
    color: #dc2626;
}

.track-search-status i {
    margin-right: 0.5rem;
}

.auto-submit-container:not(.logged-out) .spotify-url-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);
}

.auto-submit-container:not(.logged-out) .spotify-url-input::placeholder {
    color: #9ca3af;
}

.auto-submit-container:not(.logged-out) .spotify-url-input:focus {
    outline: none;
    border-color: #1DB954;
    box-shadow: 0 2px 12px rgba(29, 185, 84, 0.15);
}

.auto-submit-container .btn-cta {
    width: 100%;
    margin-top: 1rem;
}

.auto-submit-container .btn-outline {
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
}

.auto-submit-container .btn-outline:hover {
    border-color: #1DB954;
    color: #1DB954;
}

.input-hint {
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
    color: #666;
    text-align: center;
}

.error-message {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    margin-top: 0.75rem;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.error-message::before {
    content: "⚠️";
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* Track Preview */
.track-preview-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.track-artwork {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

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

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

.track-artists {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Context Section (Optional Fine-tuning) */
.context-section {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.context-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    list-style: none; /* Remove default arrow */
    min-height: 48px; /* Touch target */
}

.context-toggle::-webkit-details-marker {
    display: none; /* Hide default arrow in webkit */
}

.context-toggle-icon {
    transition: transform 0.2s;
}

.context-section[open] .context-toggle-icon {
    transform: rotate(180deg);
}

/* Hint banner for no-matches state */
.context-hint-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    margin: 0.75rem 0;
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #713f12;
}

.context-hint-banner .hint-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.context-hint-banner .hint-text {
    flex: 1;
}

.context-content {
    padding-top: 0.75rem;
}

.context-group {
    margin-bottom: 1rem;
}

.context-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.context-hint {
    font-size: 0.75rem;
    color: #999;
    margin: 0 0 0.75rem 0;
}

/* Keyword Chips */
.keyword-suggestions,
.artist-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.keyword-chip,
.artist-chip {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px; /* Touch target */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.keyword-chip:hover,
.artist-chip:hover {
    border-color: #1DB954;
}

.keyword-chip.selected,
.artist-chip.selected {
    background: #1DB954;
    border-color: #1DB954;
    color: white;
}

.artist-chip {
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
}

.artist-chip-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.custom-keyword-input,
.artist-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    transition: all 0.2s;
    min-height: 44px; /* Touch target */
}

.custom-keyword-input:focus,
.artist-search-input:focus {
    outline: none;
    border-color: #1DB954;
}

/* Artist Search Results */
.artist-search-container {
    position: relative;
}

.artist-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
}

.artist-search-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 56px; /* Touch target */
}

.artist-search-result:hover {
    background: #f9f9f9;
}

.artist-search-result-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.artist-search-result-name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Keyword Search Results (same pattern as artist search) */
.keyword-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-top: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
}

.keyword-search-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.keyword-search-result:hover {
    background: #f9f9f9;
}

.keyword-result-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.keyword-result-count {
    font-size: 0.75rem;
    color: #666;
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Recommendations */
.recommendations-header {
    text-align: center;
    margin-bottom: 1rem;
}

.recommendations-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.recommendations-count {
    color: #1DB954;
}

.recommendations-subtitle {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* Bulk Selection Controls - Compact inline pills */
.bulk-selection-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    padding: 0;
}

.bulk-label {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-right: 0.25rem;
}

.btn-bulk-pill {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 32px;
    white-space: nowrap;
}

.btn-bulk-pill:hover {
    background: #1DB954;
    color: white;
    border-color: #1DB954;
}

.btn-bulk-pill:active {
    transform: scale(0.96);
}

/* Color-coded tier buttons */
.btn-bulk-pill.btn-bulk-high {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.btn-bulk-pill.btn-bulk-high:hover {
    background: #155724;
    color: white;
    border-color: #155724;
}

.btn-bulk-pill.btn-bulk-medium {
    background: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.btn-bulk-pill.btn-bulk-medium:hover {
    background: #856404;
    color: white;
    border-color: #856404;
}

.btn-bulk-pill.btn-bulk-exploratory {
    background: #e8f4fd;
    border-color: #b8daff;
    color: #004085;
}

.btn-bulk-pill.btn-bulk-exploratory:hover {
    background: #004085;
    color: white;
    border-color: #004085;
}

/* Active state for selected tier */
.btn-bulk-pill.active {
    background: #1DB954 !important;
    color: white !important;
    border-color: #1DB954 !important;
    box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.3);
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

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

.browse-playlist-card.selected {
    border-color: #1DB954;
    background: #f0fdf4;
}

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

.browse-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    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;
}

/* Match score badge */
.recommendation-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.recommendation-badge.match-score {
    background: #d4edda;
    color: #155724;
}

.recommendation-badge.match-score.high {
    background: #d4edda;
    color: #155724;
}

.recommendation-badge.match-score.medium {
    background: #fff3cd;
    color: #856404;
}

.recommendation-badge.match-score.low {
    background: #f8d7da;
    color: #721c24;
}

.recommendation-cost {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

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

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

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

/* Match Details (Expandable) */
.recommendation-details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.recommendation-details summary {
    font-size: 0.75rem;
    color: #999;
    cursor: pointer;
    list-style: none;
}

.recommendation-details summary::-webkit-details-marker {
    display: none;
}

.match-reason-list {
    margin: 0.5rem 0 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.75rem;
    color: #666;
}

.match-score-summary {
    margin: 0.5rem 0 0.75rem 0;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #495057;
}

.match-score-summary strong {
    color: #1DB954;
    font-weight: 600;
}

.match-points {
    color: #1DB954;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.match-reason-list li {
    padding: 0.25rem 0;
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #e0e0e0;
    padding: 1rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 100;
}

.sticky-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-summary {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.footer-separator {
    color: #ccc;
    margin: 0 0.25rem;
}

.footer-cost {
    color: #1DB954;
}

/* Discount badge in footer */
.discount-badge {
    background: #d4edda;
    color: #28a745;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}

/* Tier nudge message */
.footer-nudge {
    font-size: 0.85rem;
    color: #28a745;
    text-align: center;
    padding: 4px 0;
    flex-shrink: 0;
}

/* Animate discount appearing */
@keyframes discountPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.discount-badge.animate {
    animation: discountPop 0.3s ease-out;
}

.auto-submit-container .btn-submit {
    flex-shrink: 0;
    padding: 0.875rem 1.5rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

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

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.modal-track-info {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.modal-track-artwork {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.modal-track-name {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.modal-track-artists {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.modal-summary {
    margin-bottom: 1rem;
}

.modal-summary-text,
.modal-cost-text {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.modal-info-box {
    background: #f0f7ff;
    border: 1px solid #d0e4ff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.modal-info-box p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #333;
}

.modal-message-section {
    margin-bottom: 1.5rem;
}

.modal-message-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.modal-message-label i {
    margin-right: 0.25rem;
    color: #1DB954;
}

.modal-message-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.5;
    transition: border-color 0.2s;
}

.modal-message-input:focus {
    outline: none;
    border-color: #1DB954;
}

.modal-message-hint {
    text-align: right;
    font-size: 0.75rem;
    color: #999;
    margin: 0.25rem 0 0 0;
}

/* Cost Breakdown (Stripe-style) */
.cost-breakdown {
    margin: 1rem 0;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #333;
}

.breakdown-header {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.breakdown-value {
    font-weight: 500;
    text-align: right;
}

.balance-deduction {
    color: #1DB954;
}

.balance-deduction .breakdown-value {
    color: #1DB954;
}

/* Discount row in modal */
.discount-row {
    color: #28a745;
}

.discount-row .breakdown-value {
    color: #28a745;
}

.discount-value {
    font-weight: 600;
}

/* Validation warning for removed playlists */
.validation-warning {
    background: #fff4e6;
    border: 1px solid #ffd699;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.validation-warning strong {
    color: #856404;
    display: block;
    margin-bottom: 0.5rem;
}

.validation-warning ul {
    margin: 0;
    padding-left: 1.25rem;
}

.validation-warning li {
    color: #666;
    padding: 0.125rem 0;
}

.breakdown-divider {
    border-top: 1px solid #e0e0e0;
    margin: 0.75rem 0 0.5rem 0;
}

.breakdown-section-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.breakdown-total {
    padding-top: 0.5rem;
    font-size: 1rem;
}

.breakdown-total strong {
    font-weight: 600;
}

/* Balance note showing remaining tokens */
.balance-note {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
}

/* Purchase line styling */
.purchase-line {
    color: #333;
}

/* Fully covered by balance state */
.covered-by-balance {
    color: #1DB954;
}

/* Mobile optimization */
@media (max-width: 640px) {
    .breakdown-row {
        font-size: 0.8125rem;
    }

    .breakdown-total {
        font-size: 0.9375rem;
    }
}

.modal-removed-notification {
    background: #fff4e6;
    border: 1px solid #ffd699;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.modal-removed-notification p {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: #333;
}

.modal-removed-notification ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: #666;
}

.modal-removed-notification li {
    margin: 0.25rem 0;
}

.modal-playlist-details {
    margin-bottom: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 0.75rem;
}

.modal-details-toggle {
    font-size: 0.875rem;
    color: #666;
    cursor: pointer;
    list-style: none;
}

.modal-details-toggle::-webkit-details-marker {
    display: none;
}

.modal-playlist-list {
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.modal-playlist-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-direction: column-reverse;
}

.modal-actions .btn {
    width: 100%;
}

/* Empty State - Actionable guidance */
.empty-state {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #f0fdf4;
    border: 2px dashed #86efac;
    border-radius: 16px;
    margin: 1rem 0;
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.empty-state-text {
    font-size: 0.9375rem;
    color: #4b5563;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state .btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal Error State */
.modal-error-state {
    text-align: center;
    padding: 2rem 1.5rem;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.modal-error-state .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #333;
}

.modal-error-state .modal-subtitle {
    font-size: 0.9375rem;
    color: #666;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.error-list {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.error-list li {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
}

.error-list strong {
    color: #333;
}

/* ===== TABLET+ STYLES (640px+) ===== */
@media (min-width: 640px) {
    .auto-submit-container:not(.logged-out) {
        padding: 0 1.5rem 120px 1.5rem;
    }

    .auto-submit-container:not(.logged-out) .step-track {
        min-height: calc(70vh - 100px);
        padding: 2rem;
    }

    .auto-submit-container:not(.logged-out) .step-title {
        font-size: 2.25rem;
    }

    .auto-submit-container:not(.logged-out) .step-description {
        font-size: 1.125rem;
        max-width: 400px;
    }

    .auto-submit-container:not(.logged-out) .input-group {
        max-width: 584px; /* Google's search box width */
    }

    .auto-submit-container:not(.logged-out) .spotify-url-input {
        font-size: 1.125rem;
        padding: 1.25rem 1.5rem 1.25rem 3.5rem;
        min-height: 64px;
    }

    .input-icon {
        left: 1.5rem;
    }

    .recommendations-title {
        font-size: 1.5rem;
    }

    .modal-actions {
        flex-direction: row;
    }

    .modal-actions .btn {
        width: auto;
        flex: 1;
    }
}

/* ===== DESKTOP STYLES (1024px+) ===== */
@media (min-width: 1024px) {
    .auto-submit-container:not(.logged-out) {
        padding: 0 2rem 120px 2rem;
    }

    .auto-submit-container:not(.logged-out) .step-track {
        min-height: calc(60vh - 100px);
    }

    .auto-submit-container:not(.logged-out) .step-title {
        font-size: 2.5rem;
    }

    .auto-submit-container:not(.logged-out) .input-group {
        max-width: 650px;
    }

    .track-artwork {
        width: 100px;
        height: 100px;
    }

    .recommendations-title {
        font-size: 1.75rem;
    }
}
