/* =========================================================================
   PREMIUM MARKETPLACE CSS (SUNO STYLE + HIGH DENSITY)
   ========================================================================= */
:root {
    --card-bg: #0d0d0d;
    --card-border: rgba(255, 255, 255, 0.08);
    --brand-gradient: linear-gradient(135deg, #00f0ff, #7000ff);
    --text-primary: #ffffff;
    --text-muted: #a0a0a0;
    --accent-glow: 0 0 20px rgba(0, 240, 255, 0.15);
}

/* Category Filters */
.filters-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.filters-scroll::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.filter-pill:hover,
.filter-pill.active {
    background: white;
    color: black;
    border-color: white;
}

.suno-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: visible;
    /* Allows hover effects to expand */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    min-height: 380px;
    /* Taller to fit description */
    height: 100%;
    margin-bottom: 20px;
}

.suno-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.3);
    z-index: 10;
}

/* HEADER IMAGE & OVERLAY */
.suno-card-image {
    height: 140px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
}

.suno-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(13, 13, 13, 0.95) 100%);
    z-index: 1;
}

/* BADGES (Top Row) */
.suno-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
}

.badge-group {
    display: flex;
    gap: 6px;
}

.badge-pill {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-pill.premium {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.4), rgba(0, 240, 255, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 10px rgba(0, 240, 255, 0.2);
}

.badge-pill svg {
    width: 12px;
    height: 12px;
}


/* CONTENT BODY */
.suno-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
    background: #0d0d0d;
    border-radius: 0 0 16px 16px;
}

/* Title & Category */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.suno-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-tag {
    font-size: 0.65rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Description */
.suno-card-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex: 1;
    /* Pushes footer down */
}

/* Stats / Creator Row */
.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.price-blob {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffd700;
    font-weight: 700;
    font-size: 0.95rem;
}

.price-blob svg {
    width: 14px;
    height: 14px;
}

.price-blob.usdc svg {
    color: #2775ca;
}

.creator-blob {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 8px 4px 4px;
    border-radius: 100px;
    border: 1px solid transparent;
}

.creator-blob:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.creator-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-size: cover;
    background-position: center;
}

.creator-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Actions Footer */
.suno-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-action {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
}

.btn-primary {
    background: white;
    color: black;
    flex: 1;
}

.btn-primary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    padding: 0;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-buy {
    background: white;
    color: black;
    flex: 1;
}

.btn-buy:hover {
    background: #e0e0e0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-sell {
    background: rgba(255, 30, 30, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(255, 30, 30, 0.3);
    flex: 1;
}

.btn-sell:hover {
    background: rgba(255, 30, 30, 0.25);
    border-color: #ff4d4d;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.icon-svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* =========================================================================
   CREATOR DASHBOARD REDESIGN (GRID & PREMIUM LAYOUT)
   ========================================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    /* Layout: Tools Left, Offers Right */
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.glass-panel {
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.stat-card-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
}

.stat-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card-premium:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.stat-card-premium:hover::before {
    opacity: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-value-lg {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
    margin: 4px 0;
}

.stat-trend {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend.up {
    color: #10b981;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

/* Unified Row Design */
.list-row {
    display: grid;
    /* Icon | Info | Price | Status/Action */
    grid-template-columns: 48px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    background: transparent;
    cursor: default;
}

.list-row:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

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

.row-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.row-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row-icon-box i {
    font-size: 1.2rem;
    opacity: 0.7;
}

.row-main-text {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-sub-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.row-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
    color: #fff;
}

.row-value span {
    font-size: 0.7em;
    opacity: 0.6;
    font-weight: 500;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.action-btn-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.action-btn-sm:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.05);
}

.action-btn-sm.reject {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.action-btn-sm.reject:hover {
    background: rgba(239, 68, 68, 0.2);
}

.action-btn-sm.accept {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.action-btn-sm.accept:hover {
    background: rgba(16, 185, 129, 0.2);
}