/* Artist Portal Styles */

:root {
    /* Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --spotify-green: #1DB954;
    --spotify-green-hover: #1ed760;
    --background: #f5f5f5;
    --card-bg: #ffffff;
    --sidebar-bg: #1a1a1a;
    --sidebar-text: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --border-light: #f0f0f0;

    /* Status colors */
    --status-placed: #1DB954;
    --status-pending: #ff9800;
    --status-review: #2196f3;
    --status-active: #1DB954;
    --status-completed: #4caf50;
    --status-draft: #9e9e9e;

    /* Transaction colors */
    --tx-earned: #1DB954;
    --tx-spent: #f44336;
    --tx-pending: #ff9800;
    --tx-withdrawn: #2196f3;

    /* Spacing */
    --sidebar-width: 240px;
    --content-padding: 30px;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-left: 3px solid var(--spotify-green);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Wallet Button */
.wallet-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f6851b, #e2761b);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 15px;
}

.wallet-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(246, 133, 27, 0.4);
}

.wallet-btn.connected {
    background: linear-gradient(135deg, #10b981, #059669);
}

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

.wallet-balance-display {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.sutra-balance {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: var(--radius-md);
}

.sutra-balance-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.sutra-balance-value {
    font-size: 24px;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-top: 15px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.user-name {
    flex: 1;
    font-size: 13px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: var(--content-padding);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
}

.page-subtitle {
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

.card-title {
    font-size: 16px;
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
}

.stat-value.gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-change {
    font-size: 12px;
    margin-top: 5px;
}

.stat-change.positive {
    color: var(--status-placed);
}

.stat-change.negative {
    color: var(--tx-spent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-spotify {
    background: var(--spotify-green);
    color: white;
}

.btn-spotify:hover {
    background: var(--spotify-green-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--background);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-placed, .badge-active {
    background: rgba(29, 185, 84, 0.15);
    color: var(--status-placed);
}

.badge-pending {
    background: rgba(255, 152, 0, 0.15);
    color: var(--status-pending);
}

.badge-review {
    background: rgba(33, 150, 243, 0.15);
    color: var(--status-review);
}

.badge-completed {
    background: rgba(76, 175, 80, 0.15);
    color: var(--status-completed);
}

.badge-draft {
    background: rgba(158, 158, 158, 0.15);
    color: var(--status-draft);
}

/* Campaign Cards */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.campaign-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.campaign-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.campaign-artwork {
    width: 100%;
    aspect-ratio: 1;
    background: var(--border-light);
    overflow: hidden;
}

.campaign-artwork .track-artwork {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-info {
    padding: 15px;
}

.campaign-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.campaign-artist {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.campaign-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.campaign-placements {
    font-size: 12px;
    color: var(--text-muted);
}

/* Placements List */
.placements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.placement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.placement-playlist-art {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--border-light);
}

.placement-info {
    flex: 1;
}

.placement-playlist-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.placement-track {
    font-size: 13px;
    color: var(--text-secondary);
}

.placement-meta {
    text-align: right;
}

.placement-followers {
    font-size: 13px;
    font-weight: 500;
}

.placement-date {
    font-size: 12px;
    color: var(--text-muted);
}

.placement-actions {
    display: flex;
    gap: 8px;
}

/* Social Posts */
.social-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.social-post-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 15px;
    border: 1px solid var(--border-light);
}

.social-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.social-post-platform {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
}

.social-post-platform i {
    font-size: 16px;
}

.social-post-platform.twitter i { color: #1DA1F2; }
.social-post-platform.instagram i { color: #E4405F; }
.social-post-platform.facebook i { color: #1877F2; }
.social-post-platform.tiktok i { color: #000000; }

.social-post-content {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--background);
    color: var(--text-primary);
}

.copy-btn.copied {
    background: var(--status-placed);
    border-color: var(--status-placed);
    color: white;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid white;
}

.timeline-item.completed .timeline-dot {
    background: var(--status-placed);
}

.timeline-item.current .timeline-dot {
    background: var(--status-pending);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.timeline-event {
    font-weight: 600;
    margin-bottom: 2px;
}

.timeline-description {
    font-size: 13px;
    color: var(--text-secondary);
}

.timeline-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Activity Feed */
.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.placement { color: var(--status-placed); }
.activity-icon.sutra { color: #667eea; }

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 13px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Transaction List */
.transaction-list {
    display: flex;
    flex-direction: column;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transaction-icon.earned {
    background: rgba(29, 185, 84, 0.15);
    color: var(--tx-earned);
}

.transaction-icon.spent {
    background: rgba(244, 67, 54, 0.15);
    color: var(--tx-spent);
}

.transaction-icon.pending {
    background: rgba(255, 152, 0, 0.15);
    color: var(--tx-pending);
}

.transaction-icon.withdrawn {
    background: rgba(33, 150, 243, 0.15);
    color: var(--tx-withdrawn);
}

.transaction-info {
    flex: 1;
}

.transaction-description {
    font-size: 13px;
    font-weight: 500;
}

.transaction-date {
    font-size: 12px;
    color: var(--text-muted);
}

.transaction-amount {
    font-weight: 600;
    font-size: 15px;
}

.transaction-amount.positive { color: var(--tx-earned); }
.transaction-amount.negative { color: var(--tx-spent); }

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    font-size: 28px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.login-btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
}

.login-success {
    text-align: center;
    padding: 20px 0;
}

.login-success i {
    font-size: 48px;
    color: var(--status-placed);
    margin-bottom: 15px;
}

.login-success h3 {
    margin-bottom: 10px;
}

.login-success p {
    color: var(--text-secondary);
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* Content Sections */
.content-section {
    margin-bottom: 30px;
}

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

.section-title {
    font-size: 18px;
    font-weight: 600;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover td {
    background: var(--background);
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        padding-top: max(20px, env(safe-area-inset-top));
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .campaigns-grid {
        grid-template-columns: 1fr;
    }

    .social-posts-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Header Grid - fixes menu overlap */
    .page-header {
        display: grid;
        grid-template-columns: 50px 1fr;
        grid-template-rows: auto auto;
        gap: 10px 0;
        align-items: center;
        padding-top: 10px;
    }

    .page-header > div:first-child {
        grid-column: 2;
        grid-row: 1;
    }

    .page-header .btn {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .page-title {
        font-size: 22px;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: max(15px, env(safe-area-inset-top));
        left: max(15px, env(safe-area-inset-left));
        z-index: 101;
        background: var(--card-bg);
        border: none;
        width: 44px;
        height: 44px;
        border-radius: var(--radius-sm);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        cursor: pointer;
    }

    .mobile-menu-btn i {
        font-size: 18px;
        color: var(--text-primary);
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* SUTRA Wallet Page */
.balance-card {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.balance-value {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 5px;
}

.balance-usd {
    font-size: 16px;
    opacity: 0.8;
}

.balance-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.balance-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.balance-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Filters */
.filters-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    font-size: 13px;
    cursor: pointer;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Placements Grid */
.placements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.placement-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.placement-card.expired {
    opacity: 0.6;
}

.placement-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.placement-playlist-info {
    flex: 1;
}

.placement-track-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.placement-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.placement-stat {
    display: flex;
    flex-direction: column;
}

.placement-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.placement-stat-value {
    font-weight: 600;
}

.placement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

/* ===========================================
   TRACK SUBMISSION PAGE
   =========================================== */

.submit-container {
    max-width: 700px;
}

.submit-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-section {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.required {
    color: #e74c3c;
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
}

/* URL Input with Fetch Button */
.url-input-wrapper {
    display: flex;
    gap: 10px;
}

.url-input-wrapper .form-input {
    flex: 1;
}

.fetch-btn {
    white-space: nowrap;
    background: var(--spotify-green);
    border-color: var(--spotify-green);
    color: white;
}

.fetch-btn:hover {
    background: var(--spotify-green-hover);
    border-color: var(--spotify-green-hover);
}

.fetch-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Track Preview */
.track-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--spotify-green);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.track-preview.hidden {
    display: none;
}

.track-preview.show {
    opacity: 1;
    transform: translateY(0);
}

.track-artwork {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.track-artwork i {
    font-size: 32px;
    color: white;
    opacity: 0.5;
}

.track-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-details {
    flex: 1;
}

.track-details .track-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.track-details .track-artist {
    font-size: 14px;
    color: var(--text-secondary);
}

.track-verified {
    color: var(--spotify-green);
    font-size: 24px;
}

/* Genre Selection */
.genre-section {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.genre-prediction {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.genre-prediction h4 {
    margin: 0 0 8px 0;
    color: #10b981;
    font-size: 14px;
    font-weight: 600;
}

.genre-prediction p {
    margin: 0;
    font-size: 14px;
}

.genre-prediction strong {
    color: #10b981;
}

.prediction-reasoning {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px !important;
}

.genre-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.genre-btn {
    padding: 10px 18px;
    border: 2px solid var(--border);
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-size: 14px;
}

.genre-btn:hover {
    border-color: #667eea;
}

.genre-btn.selected {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.genre-btn.predicted {
    border-color: #10b981;
}

.genre-btn.predicted.selected {
    background: #10b981;
    border-color: #10b981;
}

.predicted-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #10b981;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.selected-count {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

/* Tier Selection */
.tier-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.tier-option {
    cursor: pointer;
}

.tier-option input[type="radio"] {
    display: none;
}

.tier-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.2s;
    position: relative;
    height: 100%;
}

.tier-option.selected .tier-card,
.tier-option:hover .tier-card {
    border-color: #667eea;
}

.tier-option.selected .tier-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

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

.tier-name {
    font-size: 16px;
    font-weight: 600;
}

.tier-price {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tier-price .price-original {
    font-size: 16px;
    font-weight: 400;
    color: #6b7280;
    text-decoration: line-through;
}

.tier-price .price-sale {
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tier-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.tier-features li:last-child {
    margin-bottom: 0;
}

.tier-features i {
    color: var(--spotify-green);
    font-size: 12px;
}

.tier-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: var(--primary-gradient);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Payment Section */
.payment-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.payment-option input:checked + .payment-card {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.payment-option:hover .payment-card {
    border-color: #667eea;
}

.payment-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stripe-icon {
    background: linear-gradient(135deg, #635bff, #4f46e5);
    color: white;
}

.sutra-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

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

.payment-name {
    font-weight: 600;
    font-size: 14px;
}

.payment-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-discount {
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    text-transform: uppercase;
}

.payment-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--background);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.payment-note i {
    color: #667eea;
}

.payment-option.disabled .payment-card {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 10px;
}

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

/* Success Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon.success {
    background: rgba(29, 185, 84, 0.15);
    color: var(--spotify-green);
}

.modal-icon i {
    font-size: 40px;
}

.modal-content h2 {
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

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

/* Toast Notifications */
.toast-error {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.toast-error.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Responsive for Submission Page */
@media (max-width: 768px) {
    .tier-options {
        grid-template-columns: 1fr;
    }

    .url-input-wrapper {
        flex-direction: column;
    }

    .fetch-btn {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

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

    .track-preview {
        flex-direction: column;
        text-align: center;
    }

    .track-verified {
        position: absolute;
        top: 15px;
        right: 15px;
    }
}

/* SUTRA Earning/Spending Sections */
.earn-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.earn-category {
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 15px;
}

.earn-category-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.earn-category-title i {
    color: #667eea;
    font-size: 14px;
}

.earn-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.earn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.earn-action {
    color: var(--text-primary);
}

.earn-amount {
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.spend-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--background);
    border-radius: var(--radius-sm);
}

.spend-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spend-feature {
    font-weight: 500;
    color: var(--text-primary);
}

.spend-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.spend-cost {
    font-weight: 600;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
}

.spend-note {
    margin-top: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.spend-note i {
    color: #667eea;
}

.referral-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.referral-code {
    flex: 1;
    background: var(--background);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    letter-spacing: 1px;
}

.btn-small {
    padding: 8px 12px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .earn-categories {
        grid-template-columns: 1fr;
    }

    .spend-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .spend-cost {
        align-self: flex-end;
    }
}

/* ===========================================
   UPGRADE BANNER (Free-to-Paid Conversion)
   =========================================== */

.upgrade-banner {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border: 1px solid #3d3d5c;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.upgrade-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.upgrade-icon i {
    font-size: 24px;
    color: white;
}

.upgrade-content {
    flex: 1;
}

.upgrade-content h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 8px;
}

.upgrade-content > p {
    color: #a0a0b0;
    font-size: 14px;
    margin-bottom: 20px;
}

.intro-pricing {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.pricing-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a5b4fc;
    margin-bottom: 12px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    color: white;
    font-size: 14px;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-regular.strikethrough {
    text-decoration: line-through;
    color: #888;
}

.price-intro {
    font-weight: 700;
    color: #10b981;
    font-size: 18px;
}

.upgrade-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.upgrade-cta .btn-outline {
    color: #a5b4fc;
    border-color: #4c4c6c;
}

.upgrade-cta .btn-outline:hover {
    background: rgba(165, 180, 252, 0.1);
    border-color: #a5b4fc;
}

/* Curator Preview Page Styles */
.curator-preview-container {
    max-width: 900px;
}

.curator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.curator-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.curator-card:hover {
    transform: translateY(-2px);
}

.curator-card.blurred {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

.curator-card .curator-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.curator-card .curator-followers {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.curator-card .curator-genres {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.curator-card .genre-tag {
    background: var(--background);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    color: var(--text-secondary);
}

.curator-more {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: var(--background);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 16px;
}

/* Playlist Preview Grid */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.playlist-preview-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 16px;
}

.playlist-preview-card:hover {
    transform: translateY(-2px);
}

.playlist-preview-card.blurred {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

.playlist-preview-image {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border);
}

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

.playlist-preview-name {
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-preview-followers {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.playlist-preview-genres {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.playlist-more {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: var(--background);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 16px;
}

.upgrade-box {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border: 1px solid #3d3d5c;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
}

.upgrade-box h3 {
    color: #a5b4fc;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.upgrade-box .price-row {
    justify-content: center;
    margin-bottom: 12px;
}

.upgrade-box .guarantee {
    color: #10b981;
    font-size: 13px;
    margin: 20px 0;
}

.upgrade-box .btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

/* Locked Feature Cards */
.feature-card.locked {
    position: relative;
    opacity: 0.7;
    cursor: pointer;
}

.feature-card.locked .lock-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.feature-card.locked:hover {
    opacity: 1;
    border-color: #667eea;
}

.pro-badge {
    background: var(--primary-gradient);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .upgrade-banner {
        flex-direction: column;
    }

    .upgrade-cta {
        flex-direction: column;
    }

    .upgrade-cta .btn {
        width: 100%;
    }

    .curator-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   PLAYLIST MATCHING SECTION
   =========================================== */

.playlist-matching-section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.playlist-match-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
}

.match-number {
    font-size: 48px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.match-label {
    font-size: 16px;
    color: var(--text-secondary);
}

.outreach-status {
    margin-top: 20px;
}

.status-pills {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--background);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    min-width: 120px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.red { background: #ef4444; }
.status-dot.yellow { background: #f59e0b; }
.status-dot.green { background: #10b981; }

.status-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.status-pill .status-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Playlist Selection Cards */
.playlist-list-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.selected-count {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--background);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

.playlist-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.playlist-card {
    background: var(--background);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.playlist-card:hover {
    border-color: var(--border);
}

.playlist-card.selected {
    border-color: #1DB954;
    background: rgba(29, 185, 84, 0.05);
}

.playlist-card.has-status {
    opacity: 0.7;
    cursor: default;
}

.playlist-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #1DB954;
    cursor: pointer;
}

.playlist-card.has-status input[type="checkbox"] {
    cursor: not-allowed;
}

.playlist-image {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border);
}

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

.playlist-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-meta {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    align-items: center;
}

.playlist-followers {
    font-size: 12px;
    color: var(--text-muted);
}

.playlist-genre {
    background: rgba(99, 102, 241, 0.15);
    color: #667eea;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.playlist-status {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.playlist-status.sent,
.playlist-status.pitched {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.playlist-status.accepted {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.playlist-status.rejected,
.playlist-status.declined {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Playlist Status Indicators with Colored Dots */
.playlist-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.playlist-status-indicator .status-dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.playlist-status-indicator.sent {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.playlist-status-indicator.sent .status-dot-indicator {
    background: #f59e0b;
}

.playlist-status-indicator.accepted {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.playlist-status-indicator.accepted .status-dot-indicator {
    background: #10b981;
}

.playlist-status-indicator.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.playlist-status-indicator.rejected .status-dot-indicator {
    background: #ef4444;
}

/* Status-specific card styling */
.playlist-card.status-sent {
    border-left: 3px solid #f59e0b;
}

.playlist-card.status-pending {
    border-left: 3px solid #f59e0b;
}

.playlist-card.status-accepted {
    border-left: 3px solid #10b981;
    background: rgba(16, 185, 129, 0.03);
}

.playlist-card.status-rejected {
    border-left: 3px solid #ef4444;
    opacity: 0.6;
}

.playlist-card.status-available {
    border-left: 3px solid transparent;
}

/* OZE Playlist Styles */
.playlist-card.oze-playlist {
    border: 2px solid #10b981;
    position: relative;
}

.oze-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #10b981;
    color: #000;
    font-size: 0.65em;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 1;
}

/* Your Playlist Agent Card */
.your-agent {
    background: #1e1e2e;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.your-agent h4 {
    margin: 0 0 12px 0;
    font-size: 0.9em;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.your-agent .agent-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.your-agent .agent-emoji {
    font-size: 2.5em;
}

.your-agent .agent-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.your-agent .agent-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
}

.your-agent .agent-genre {
    color: #10b981;
    font-size: 0.9em;
}

.your-agent .agent-personality {
    color: #888;
    font-size: 0.85em;
    font-style: italic;
}

/* Agent Selection Notice */
.agent-selection-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.agent-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.agent-message strong {
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.agent-message p {
    color: #a0a0b0;
    margin: 0;
    font-size: 0.9em;
}

/* ===========================================
   PLAYLIST PREVIEW CARD STATUS STYLES
   =========================================== */

.playlist-preview-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

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

.playlist-preview-card.status-sent,
.playlist-preview-card.status-pending {
    border-left: 3px solid #f59e0b;
}

.playlist-preview-card.status-accepted {
    border-left: 3px solid #10b981;
    background: rgba(16, 185, 129, 0.03);
}

.playlist-preview-card.status-rejected {
    border-left: 3px solid #ef4444;
    opacity: 0.6;
}

.playlist-preview-card.status-available {
    border-left: 3px solid transparent;
}

/* Status indicator within preview cards */
.playlist-preview-card .playlist-status-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* ===========================================
   PLAYLIST PLAYER MODAL
   =========================================== */

.playlist-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modalFadeIn 0.2s ease;
}

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

.playlist-player-content {
    background: #1e1e2e;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
    color: white;
}

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

.playlist-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #2d2d44;
}

.playlist-player-header h3 {
    margin: 0;
    font-size: 1.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    color: white;
}

.close-player {
    background: none;
    border: none;
    color: #888;
    font-size: 1.8em;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.close-player:hover {
    color: #fff;
}

.playlist-player-embed {
    background: #121212;
}

.playlist-player-embed iframe {
    display: block;
}

.playlist-player-actions {
    padding: 16px 20px;
    text-align: center;
}

.btn-open-spotify {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1DB954;
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: background 0.2s;
}

.btn-open-spotify:hover {
    background: #1ed760;
}

/* Hide pro features for free tier */
.free-tier .pro-only { display: none; }
.pro-tier .free-only { display: none; }

@media (max-width: 768px) {
    .playlist-match-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .match-number {
        font-size: 36px;
    }

    .status-pills {
        flex-direction: column;
        gap: 10px;
    }

    .status-pill {
        width: 100%;
    }

    .playlist-cards {
        grid-template-columns: 1fr;
    }
}
