@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600&display=swap");

/* =====================================================
   KHAZANAH - CONSOLIDATED STYLESHEET
   Version: 2.0
   Description: Unified CSS file containing all styles from internal CSS
   ===================================================== */

/* =====================================================
   1. CSS VARIABLES & ROOT DEFINITIONS
   ===================================================== */
:root {
    /* Primary Colors */
    --primary-color: #2B8C43;
    --secondary-color: #237A3A;
    --accent-color: #2B8C43;
    --accent: #2B8C43;
    --accent2: #237A3A;
    
    /* Text Colors */
    --text-color: #111827;
    --text-main: #111827;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #6b7280;
    --text-dark: #111827;
    --light-text: #6b7280;
    
    /* Background Colors */
    --background-color: #ffffff;
    --bg-main: #ffffff;
    --bg-sidebar: #f9fafb;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-section: #ffffff;
    --bg-player: #ffffff;
    --component-bg: #ffffff;
    
    /* Status Colors */
    --success-color: #2B8C43;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Border & Effects */
    --border-color: #e5e7eb;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    
    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Layout */
    --sidebar-width: 280px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-headings: 'Archivo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-ui: 'Open Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Roboto Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Typography scale - mobile first */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;

    /* Grid breakpoints */
    --breakpoint-sm: 375px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;

    /* Container widths */
    --container-padding: var(--spacing-md);
    --container-max-width: 1440px;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* =====================================================
   2. FONT IMPORTS
   ===================================================== */

/* =====================================================
   3. RESET & BASE STYLES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

/* Dark theme body override */
body.dark-theme {
    background-color: #1a1a1a;
}

/* =====================================================
   4. TYPOGRAPHY
   ===================================================== */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
    font-family: var(--font-headings);
}

h1, .h1 {
    font-size: calc(1.34375rem + 1.125vw);
}

@media (min-width: 1200px) {
    h1, .h1 {
        font-size: 2.1875rem;
    }
}

h2, .h2 {
    font-size: calc(1.3rem + 0.6vw);
}

@media (min-width: 1200px) {
    h2, .h2 {
        font-size: 1.75rem;
    }
}

h3, .h3 {
    font-size: calc(1.27813rem + 0.3375vw);
}

@media (min-width: 1200px) {
    h3, .h3 {
        font-size: 1.53125rem;
    }
}

h4, .h4 {
    font-size: calc(1.25625rem + 0.075vw);
}

@media (min-width: 1200px) {
    h4, .h4 {
        font-size: 1.3125rem;
    }
}

h5, .h5 {
    font-size: 1.09375rem;
}

h6, .h6 {
    font-size: 0.875rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* =====================================================
   5. LINKS & BUTTONS
   ===================================================== */
a {
    color: var(--primary-color);
    text-decoration: none !important;
    transition: var(--transition);
}

a:hover,
a:focus,
a:active {
    color: var(--secondary-color);
    text-decoration: none !important;
}

button {
    border-radius: 0;
    font-family: var(--font-ui);
}

button:focus:not(:focus-visible) {
    outline: 0;
}

.btn {
    font-family: var(--font-ui);
    transition: var(--transition);
}

/* =====================================================
   6. FORMS & INPUTS
   ===================================================== */
input,
button,
select,
optgroup,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

label {
    display: inline-block;
}

/* =====================================================
   7. LAYOUT COMPONENTS
   ===================================================== */

/* Main Content Layout */
.main-content {
    flex: 1;
    padding: var(--spacing-xl) var(--spacing-lg);
    overflow-x: hidden;
    min-height: calc(100vh - 80px);
    background: var(--bg-main);
}

.dashboard-content {
    background: var(--bg-main);
    min-width: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-root {
    display: flex;
    min-height: 100vh;
}

.dashboard-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-xs);
    position: relative;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
    font-family: var(--font-headings);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary-color);
    font-size: 20px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: var(--spacing-xs);
    font-family: var(--font-ui);
}

.view-all-link,
.view-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-ui);
}

.view-all-link:hover,
.view-more:hover {
    background: rgba(34, 197, 94, 0.1);
    color: var(--secondary-color);
    transform: translateX(2px);
    text-decoration: underline;
}

/* =====================================================
   8. GRID LAYOUTS
   ===================================================== */

/* Audio Grid */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    padding: 8px;
}

/* Trending Grid */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    height: auto;
}

.trending-grid.enhanced {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* PDF Grid */
.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    position: relative;
    margin-bottom: 30px;
}

.pdf-grid.enhanced {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-top: 20px;
}

/* New Releases Grid */
.new-releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

/* Genres Grid */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Artists Grid */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* =====================================================
   9. CARD COMPONENTS
   ===================================================== */

/* Base Card Styles */
.album-card,
.audio-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.album-card:hover,
.audio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(22, 163, 74, 0.3);
}

.album-card.enhanced {
    position: relative;
    overflow: hidden;
    border: none;
    background: linear-gradient(145deg, var(--bg-card), #f8f9fa);
}

.album-card.enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Album Cover */
.album-cover {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
}

.album-card.enhanced .album-cover {
    height: 170px;
    border-bottom: 2px solid rgba(22, 163, 74, 0.1);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-card:hover .album-cover img {
    transform: scale(1.08);
}

/* Price Badge */
.price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.free-badge {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.paid-badge {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

/* Quality and Duration Badges */
.quality-badge, 
.duration-badge {
    position: absolute;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 5;
    transition: all 0.3s ease;
}

.quality-badge {
    left: 12px;
    top: 12px;
    background: rgba(17, 24, 39, 0.65);
    color: white;
}

.duration-badge {
    left: 12px;
    bottom: 12px;
    background: rgba(17, 24, 39, 0.65);
    color: white;
}

/* Overlay Elements */
.lock-overlay,
.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.album-card:hover .lock-overlay,
.album-card:hover .play-overlay {
    opacity: 1;
}

.lock-overlay i,
.play-overlay i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lock-overlay i {
    font-size: 18px;
    color: white;
    background: rgba(239, 68, 68, 0.9);
}

.play-overlay i {
    font-size: 18px;
    color: white;
    background: var(--primary-color);
    padding-left: 3px;
}

/* Quick Play Button */
.quick-play-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.quick-play-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Album Info Section */
.album-info {
    padding: 16px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-card);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
}

.album-info.enhanced {
    padding: 16px;
    gap: 6px;
}

.album-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
}

.album-details {
    margin: 0 0 10px 0;
}

.album-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.artist-verified {
    color: var(--primary-color);
    font-size: 0.7rem;
}

/* Audio Stats */
.audio-stats-inline {
    display: flex;
    gap: 12px;
    margin: 10px 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.audio-stats-inline .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.audio-stats-inline .stat-item i {
    font-size: 0.7rem;
    color: var(--primary-color);
}

/* Social Actions */
.social-actions {
    display: flex;
    gap: 8px;
    margin: 0;
    opacity: 0;
    transition: all 0.25s ease;
}

.album-card.enhanced:hover .social-actions {
    opacity: 1;
}

.social-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.social-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-btn.like-btn:hover {
    background: #e91e63;
    border-color: #e91e63;
}

/* Action Buttons */
.add-to-cart-btn.enhanced,
.download-btn.enhanced {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.add-to-cart-btn.enhanced {
    background: #f59e0b;
    color: white;
}

.add-to-cart-btn.enhanced:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.download-btn.enhanced {
    background: var(--primary-color);
    color: white;
}

.download-btn.enhanced:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* =====================================================
   10. TRENDING SECTION
   ===================================================== */
.trending-section {
    margin: 40px 0;
}

.trending-card {
    cursor: pointer;
    position: relative;
    background-color: #000;
    border-radius: 5px;
    overflow: hidden;
    height: 100%;
}

.trending-card.enhanced {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.trending-card.enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.trending-img {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    width: 100%;
    height: 100%;
}

.trending-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.trending-card:hover .trending-overlay {
    opacity: 1;
}

.trending-overlay i {
    color: #fff;
    font-size: 16px;
}

.trending-position {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.trending-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trending-info {
    padding: 16px;
}

.trending-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.3;
    margin-top: 8px;
    padding: 0 10px;
}

.trending-artist {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
}

.trending-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #94a3b8;
}

.trending-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =====================================================
   11. NEW RELEASES SECTION
   ===================================================== */
.new-releases {
    margin: 40px 0;
}

.release-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.release-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.release-cover {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.release-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.release-card:hover .release-cover img {
    transform: scale(1.05);
}

.new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.release-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.release-card:hover .release-overlay {
    opacity: 1;
}

.release-overlay i {
    font-size: 24px;
    color: white;
    background: var(--primary-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
}

.release-info {
    padding: 12px;
}

.release-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.release-info p {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.release-info small {
    font-size: 11px;
    color: #94a3b8;
}

/* =====================================================
   12. PDF SECTION
   ===================================================== */
.featured-pdfs.enhanced {
    margin: 40px 0;
}

.pdf-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
    position: relative;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
}

.pdf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pdf-card.enhanced {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.pdf-card.enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pdf-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    margin-bottom: 8px;
    width: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.pdf-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.pdf-card.enhanced:hover .pdf-thumbnail img {
    transform: scale(1.05);
}

.pdf-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 3;
}

.pdf-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.pdf-card.enhanced:hover .pdf-overlay {
    opacity: 1;
}

.pdf-preview-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-preview-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.pdf-stats-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

.featured-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 3;
}

.pdf-content {
    padding: 16px;
}

.pdf-title {
    font-weight: bold;
    font-size: 14px;
    margin: 5px 0;
    color: #000;
    line-height: 1.3;
    padding: 0 10px;
}

.pdf-author {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdf-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 12px;
}

.pdf-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-top: auto;
    padding: 0 10px 10px;
}

.pdf-rating {
    display: flex;
    align-items: center;
    flex: 1;
}

.pdf-rating-text {
    margin-right: 5px;
    font-size: 11px;
    color: #64748b;
}

.rating-stars {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.rating-stars i {
    font-size: 10px;
    color: #d1d5db;
}

.rating-stars i.active {
    color: #fbbf24;
}

.pdf-actions {
    display: flex;
    gap: 8px;
}

.pdf-action-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: white;
    color: #64748b;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* =====================================================
   13. CHARTS SECTION
   ===================================================== */
.top-charts {
    margin: 40px 0;
}

.charts-container {
    margin-top: 20px;
}

.chart-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.chart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.chart-list li {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.chart-list li:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-item:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.chart-position,
.chart-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.chart-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.chart-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chart-info {
    flex: 1;
    min-width: 0;
}

.chart-track-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-artist,
.chart-duration {
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-stats {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 12px;
}

.chart-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.chart-item:hover .chart-play-btn {
    opacity: 1;
}

.chart-play-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.empty-chart {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.empty-chart i {
    font-size: 32px;
    margin-bottom: 12px;
    color: #cbd5e1;
}

/* =====================================================
   14. GENRE EXPLORER
   ===================================================== */
.genre-explorer {
    margin: 40px 0;
}

.genre-card {
    position: relative;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.genre-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.genre-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.8) 0%, 
        rgba(118, 75, 162, 0.8) 100%);
}

.genre-card:nth-child(2) .genre-background {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.8) 0%, 
        rgba(21, 128, 61, 0.8) 100%);
}

.genre-card:nth-child(3) .genre-background {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.8) 0%, 
        rgba(220, 38, 38, 0.8) 100%);
}

.genre-card:nth-child(4) .genre-background {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.8) 0%, 
        rgba(217, 119, 6, 0.8) 100%);
}

.genre-card:nth-child(5) .genre-background {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.8) 0%, 
        rgba(124, 58, 237, 0.8) 100%);
}

.genre-card:nth-child(6) .genre-background {
    background: linear-gradient(135deg, 
        rgba(236, 72, 153, 0.8) 0%, 
        rgba(219, 39, 119, 0.8) 100%);
}

.genre-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.genre-icon {
    color: white;
    font-size: 24px;
    margin-bottom: 8px;
}

.genre-name {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.genre-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0;
}

.genre-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.genre-card:hover .genre-overlay {
    opacity: 1;
}

.genre-explore-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.genre-explore-btn:hover {
    background: var(--primary-color);
    color: white;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.genre-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.genre-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* =====================================================
   15. TOP ARTISTS
   ===================================================== */
.top-artists {
    margin: 40px 0;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
}

.artist-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.artist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.artist-circles {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.artist-circle {
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    width: 100px;
}

.artist-circle:hover {
    transform: translateY(-5px);
}

.artist-circle img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    transition: var(--transition);
}

.artist-circle:hover img {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.artist-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid white;
}

.artist-info {
    text-align: center;
}

.artist-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.5rem;
    margin-bottom: 6px;
}

.artist-stats {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.follow-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), #166534);
    transform: translateY(-1px);
}

/* =====================================================
   16. PLATFORM STATISTICS
   ===================================================== */
.platform-stats {
    margin: 40px 0;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-card), #f8fafc);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-content {
    flex: 1;
}

.stat-value,
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: var(--font-headings);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* =====================================================
   17. PLAYER COMPONENTS
   ===================================================== */
.player-widget {
    background: var(--bg-player);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.player-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.player-widget:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.player-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.player-cover {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.player-widget:hover .player-cover img {
    transform: scale(1.1);
}

.player-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.player-artist {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.player-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.player-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-section);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.player-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Mini Player */
.mini-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 16px;
    max-width: 300px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
}

.mini-player.active {
    transform: translateY(0);
    opacity: 1;
}

.mini-player-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mini-player-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
}

.mini-player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-player-info {
    flex: 1;
    min-width: 0;
}

.mini-player-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-player-artist {
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-player-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mini-player-close:hover {
    background: #f1f5f9;
    color: #64748b;
}

.mini-player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-player-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mini-player-btn:hover {
    background: rgba(22, 163, 74, 0.1);
}

.mini-player-btn.play-pause {
    background: var(--primary-color);
    color: white;
    font-size: 14px;
}

.mini-player-btn.play-pause:hover {
    background: var(--secondary-color);
}

/* =====================================================
   18. HEADER STYLES
   ===================================================== */
.modern-header {
    position: fixed !important;
    top: 0 !important;
    left: 280px !important;
    right: 0 !important;
    height: 60px !important;
    z-index: 999 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(22, 163, 74, 0.1) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

.header-container {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 20px !important;
    gap: 16px !important;
}

.header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.search-container {
    max-width: 480px !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.search-form {
    width: 480px !important;
    display: flex !important;
    align-items: center !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    height: 40px !important;
}

/* =====================================================
   19. CART & DROPDOWN STYLES
   ===================================================== */
.cart-wrapper {
    position: relative;
    margin-right: 15px;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff0000;
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cart-dropdown {
    position: absolute !important;
    top: 40px !important;
    right: 0 !important;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1001 !important;
    padding: 10px;
    display: none;
}

.cart-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-title {
    flex: 1;
    font-size: 14px;
}

.cart-item-price {
    color: #ff0000;
    font-weight: bold;
    margin: 0 10px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.cart-total {
    font-weight: bold;
    font-size: 16px;
}

.checkout-btn {
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 15px;
    cursor: pointer;
}

/* User dropdown position fix */
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown-container.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =====================================================
   20. EMPTY STATES
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #666;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.empty-state.enhanced {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state.enhanced i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state.enhanced h3 {
    font-size: 24px;
    color: #334155;
    margin-bottom: 8px;
}

.empty-state.enhanced p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 24px;
}

/* =====================================================
   21. ALERTS & MESSAGES
   ===================================================== */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.order-success-message {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    animation: slideInDown 0.5s ease-out;
}

.order-success-message i {
    font-size: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

.order-success-message strong {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.order-success-message p {
    margin: 5px 0;
    font-size: 16px;
}

.order-success-message small {
    opacity: 0.8;
    font-size: 14px;
}

/* =====================================================
   22. ANIMATIONS
   ===================================================== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   23. UTILITY CLASSES
   ===================================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* =====================================================
   24. RESPONSIVE DESIGN - REPLACED WITH MOBILE-FIRST APPROACH
   ===================================================== */
/* 
   The old responsive design has been replaced with an enhanced 
   mobile-first approach. See section 24 for the new implementation.
*/

/* =====================================================
   25. DARK THEME OVERRIDES
   ===================================================== */
.dark-theme .trending-hits h2,
.dark-theme .albums h2 {
    color: #fff;
}

.dark-theme .dashboard-root h2 {
    color: black;
}

/* =====================================================
   26. FILTERS & MISC
   ===================================================== */
.albums-filter {
    display: flex;
    margin-bottom: 15px;
    gap: 10px;
}

.filter-btn {
    background: #333;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.filter-btn.active {
    background: #555;
}

.track-count {
    color: rgba(255, 255, 255, 0.5);
}

.album-price {
    color: #ff0000;
    font-weight: bold;
    margin-top: 5px;
    font-size: 14px;
    padding: 0 10px;
}

.free-label {
    color: #2ecc71;
}

.bookmark-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
}

.bookmark-btn:hover,
.bookmark-btn.active {
    color: #555;
}

.navigation-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
}

.navigation-arrow.left {
    left: -15px;
}

.navigation-arrow.right {
    right: -15px;
}

/* =====================================================
   END OF CONSOLIDATED STYLES
   ===================================================== */

/* =====================================================
   27. HEADER COMPONENT STYLES (from header.php)
   ===================================================== */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    gap: 3px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(22, 163, 74, 0.1);
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: #374151;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Enhanced Search */
.search-form:focus-within {
    background: #ffffff;
    border-color: #2B8C43;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.08);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #64748b;
    font-size: 13px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-form:focus-within .search-icon {
    color: #2B8C43;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: transparent;
    border: none;
    color: #1e293b;
    font-size: 13px;
    outline: none;
    font-weight: 400;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 12px;
}

.search-input:not(:placeholder-shown) + .search-clear {
    opacity: 1;
}

.search-clear:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.search-submit {
    background: #2B8C43;
    border: none;
    color: #ffffff;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    height: 100%;
    font-size: 13px;
}

.search-submit:hover {
    background: #237A3A;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    z-index: 1050;
}

.search-container:focus-within .search-suggestions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestions-section {
    padding: 12px;
}

.suggestions-section:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.suggestions-header {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(22, 163, 74, 0.06);
    color: #2B8C43;
}

.suggestion-item i {
    width: 14px;
    color: #94a3b8;
    transition: all 0.2s ease;
    font-size: 12px;
}

.suggestion-item:hover i {
    color: #2B8C43;
}

/* Header Actions */
.action-item {
    position: relative;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: none;
    border: none;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 36px;
}

.action-btn:hover {
    background: rgba(22, 163, 74, 0.08);
    color: #2B8C43;
    transform: translateY(-1px);
}

.action-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.action-text {
    font-weight: 500;
    font-size: 12px;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 6px;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1px solid #ffffff;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 6px;
    min-width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1px solid #ffffff;
}

/* Register Button */
.register-btn {
    background: linear-gradient(135deg, #2B8C43, #237A3A);
    color: #ffffff !important;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
    padding: 6px 12px;
}

.register-btn:hover {
    background: linear-gradient(135deg, #237A3A, #166534);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(22, 163, 74, 0.25);
}

/* Sign In Button */
.signin-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 6px 12px;
}

.signin-btn:hover {
    border-color: #2B8C43;
    background: #f8fafc;
    color: #2B8C43;
}

/* User Profile Button */
.user-profile-btn {
    gap: 8px;
    padding: 4px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    height: 38px;
}

.user-profile-btn:hover {
    background: #ffffff;
    border-color: #2B8C43;
}

.user-avatar-header {
    position: relative;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #2B8C43, #237A3A);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
}

.user-status-indicator {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    background: #10b981;
    border: 1px solid #ffffff;
    border-radius: 50%;
}

.user-info-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1;
}

.dropdown-arrow {
    font-size: 9px;
    color: #94a3b8;
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.user-profile-btn[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* User Dropdown Menu */
.user-dropdown-container {
    position: relative;
}

.user-dropdown-container.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2B8C43, #237A3A);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.dropdown-user-details {
    flex: 1;
}

.dropdown-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1px;
}

.dropdown-user-email {
    font-size: 12px;
    color: #64748b;
}

.dropdown-body {
    padding: 6px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background: rgba(22, 163, 74, 0.06);
    color: #2B8C43;
}

.dropdown-link i {
    width: 16px;
    color: #94a3b8;
    transition: all 0.2s ease;
    font-size: 13px;
}

.dropdown-link:hover i {
    color: #2B8C43;
}

.logout-link {
    color: #ef4444 !important;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
    padding-top: 12px;
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.05);
    color: #dc2626 !important;
}

.logout-link i {
    color: #ef4444 !important;
}

.logout-link:hover i {
    color: #dc2626 !important;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 0;
}

/* Mobile Navigation */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-right: 1px solid #e2e8f0;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: rgba(22, 163, 74, 0.08);
    color: #1e293b;
}

.mobile-nav-menu {
    padding: 16px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 2px;
}

.mobile-nav-link:hover {
    background: rgba(22, 163, 74, 0.08);
    color: #2B8C43;
}

.mobile-nav-link i {
    width: 18px;
    color: #94a3b8;
    transition: all 0.3s ease;
    font-size: 14px;
}

.mobile-nav-link:hover i {
    color: #2B8C43;
}

.mobile-nav-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 16px 0;
}

/* Header Responsive Styles */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .action-text {
        display: none;
    }
    
    .action-btn {
        padding: 6px;
        gap: 0;
    }
    
    .user-info-header {
        display: none;
    }
    
    .user-profile-btn {
        padding: 6px;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .header-actions {
        gap: 2px;
    }
    
    .action-btn {
        padding: 4px;
        height: 32px;
    }
    
    .user-dropdown-menu {
        min-width: 220px;
        right: -12px;
    }
    
    .search-form {
        height: 36px;
    }
    
    .search-input {
        padding: 8px 10px 8px 32px;
        font-size: 12px;
    }
    
    .search-icon {
        left: 10px;
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .header-container {
        justify-content: space-between;
        gap: 8px;
    }
    
    .search-container {
        order: 2;
    }
    
    .mobile-menu-toggle {
        order: 1;
    }
    
    .header-actions {
        order: 3;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        order: 1;
    }
    
    .header-actions {
        order: 2;
        margin-left: 0;
    }
}

/* =====================================================
   END OF HEADER COMPONENT STYLES
   ===================================================== */

/* ========================================
   Cart & Dropdown Styles
   ======================================== */

/* Cart Page Specific Styles */
.dashboard-root {
    display: flex;
    min-height: 100vh;
    background: var(--bg-main);
}

.dashboard-main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.main-content {
    flex: 1;
    padding: var(--spacing-lg) var(--spacing-md);
    overflow-x: hidden;
    background: var(--bg-main);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Cart Header */
.cart-header {
    margin-bottom: var(--spacing-lg);
}

.cart-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs);
    font-family: var(--font-headings);
}

.cart-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-family: var(--font-ui);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-ui);
    font-size: 0.8125rem;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumb i {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.step {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.8125rem;
}

.step.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.step.inactive {
    color: var(--text-muted);
}

.step-separator {
    width: 20px;
    height: 2px;
    background: var(--border-color);
    margin: 0 var(--spacing-sm);
}

.step-separator.completed {
    background: var(--primary-color);
}

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-lg);
    align-items: start;
}

/* Cart Items Section */
.cart-items-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.cart-items-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.items-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-headings);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.items-count {
    background: var(--primary-color);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: var(--border-radius);
    font-size: 0.6875rem;
    font-weight: 600;
}

.clear-cart-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: 0.6875rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-ui);
}

.clear-cart-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.cart-items-container {
    max-height: 500px;
    overflow-y: auto;
}

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto auto;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: var(--transition);
}

.cart-item:hover {
    background: rgba(34, 197, 94, 0.02);
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-image .default-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.item-type-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    border: 2px solid var(--bg-card);
}

.item-details {
    min-width: 0;
}

.item-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs);
    font-family: var(--font-headings);
    line-height: 1.3;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-ui);
}

.item-type {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.125rem 0.375rem;
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 0.6875rem;
    font-weight: 600;
}

.item-actions-small {
    display: flex;
    gap: var(--spacing-xs);
}

.action-btn-small {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.75rem;
}

.action-btn-small:hover {
    background: var(--bg-sidebar);
    color: var(--primary-color);
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    background: var(--bg-sidebar);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.75rem;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 45px;
    height: 28px;
    border: none;
    background: var(--bg-main);
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    font-family: var(--font-ui);
    font-size: 0.8125rem;
}

.quantity-input:focus {
    outline: none;
    background: var(--bg-sidebar);
}

/* Item Price */
.item-price {
    text-align: right;
    min-width: 80px;
}

.price-current {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-ui);
}

.price-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Item Actions */
.item-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.remove-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    justify-content: center;
}

.remove-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.save-later-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    justify-content: center;
}

.save-later-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: sticky;
    top: var(--spacing-md);
    overflow: hidden;
}

.summary-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
}

.summary-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-headings);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.summary-content {
    padding: var(--spacing-lg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-ui);
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-label {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.summary-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8125rem;
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--spacing-md) 0;
}

.summary-total {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--primary-color);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-headings);
}

.total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-headings);
}

.tax-note {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
    text-align: right;
}

/* Action Buttons */
.summary-actions {
    padding: var(--spacing-lg);
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
}

/* Security Badge */
.security-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-md);
    font-size: 0.6875rem;
    color: var(--primary-color);
    font-family: var(--font-ui);
}

/* Recently Viewed */
.recently-viewed {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.recently-viewed-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-md);
    font-family: var(--font-headings);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.recent-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    transition: var(--transition);
    cursor: pointer;
}

.recent-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transform: translateX(400px);
    opacity: 0;
    transition: var(--transition);
    z-index: 1001;
    font-family: var(--font-ui);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.8125rem;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-color: var(--primary-color);
    background: rgba(34, 197, 94, 0.05);
}

.toast.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

/* Cart Page Responsive Design */
@media (max-width: 1024px) {
    .dashboard-main-wrapper {
        margin-left: 0;
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .cart-title {
        font-size: 1.5rem;
    }
    
    .progress-steps {
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-sm);
    }
    
    .step-separator {
        width: 2px;
        height: 15px;
    }
    
    .cart-item {
        grid-template-columns: 50px 1fr;
        grid-template-areas: 
            "image details"
            "quantity price"
            "actions actions";
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .item-image {
        grid-area: image;
        width: 50px;
        height: 50px;
    }
    
    .item-details {
        grid-area: details;
    }
    
    .quantity-controls {
        grid-area: quantity;
        justify-self: start;
    }
    
    .item-price {
        grid-area: price;
        text-align: right;
    }
    
    .item-actions {
        grid-area: actions;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: var(--spacing-sm);
    }
    
    .cart-title {
        font-size: 1.375rem;
    }
    
    .progress-steps {
        padding: var(--spacing-xs);
    }
    
    .cart-item {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .empty-cart-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .recently-viewed-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Checkout Page Styles
   ======================================== */

/* Modern Checkout Page Design */
.checkout-header {
    margin-bottom: var(--spacing-lg);
}

.checkout-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs);
    font-family: var(--font-headings);
}

.checkout-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-family: var(--font-ui);
}

/* Payment Mode Badge */
.payment-mode-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-ui);
}

.payment-mode-badge.live {
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.payment-mode-badge.test {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* Checkout Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--spacing-lg);
    align-items: start;
}

/* Payment Form */
.payment-form-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.form-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
}

.form-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-headings);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.form-content {
    padding: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-ui);
}

.form-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: var(--font-ui);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Payment Button */
.payment-button {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-family: var(--font-ui);
    margin-top: var(--spacing-md);
}

.payment-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.payment-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Order Summary */
.order-summary {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: sticky;
    top: var(--spacing-md);
    overflow: hidden;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-ui);
}

.summary-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-meta {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Summary Totals */
.summary-totals {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.grand-total {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--primary-color);
}

.grand-total .total-row {
    font-size: 1rem;
}

.grand-total .total-label {
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-headings);
}

.grand-total .total-value {
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-headings);
    font-size: 1.125rem;
}

/* Error Messages */
.error-alert {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid rgba(239, 68, 68, 0.2);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.8125rem;
    font-family: var(--font-ui);
}

/* Loading States */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* Checkout Page Responsive Design */
@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-title {
        font-size: 1.5rem;
    }
    
    .progress-steps {
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-sm);
    }
    
    .step-separator {
        width: 2px;
        height: 15px;
    }
}

@media (max-width: 480px) {
    .checkout-title {
        font-size: 1.375rem;
    }
    
    .progress-steps {
        padding: var(--spacing-xs);
    }
}

/* ========================================
   Login Page Styles
   ======================================== */

/* Login Page Layout */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7, #bbf7d0);
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(22,163,74,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(22,163,74,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(22,163,74,0.03)"/><circle cx="10" cy="60" r="0.5" fill="rgba(22,163,74,0.03)"/><circle cx="90" cy="40" r="0.5" fill="rgba(22,163,74,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.6;
}

.back-link {
    position: fixed;
    top: 2rem;
    left: 2rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(22, 163, 74, 0.2);
    font-family: var(--font-ui);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.1);
}

.back-link:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.2);
    color: var(--secondary-color);
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 5;
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(22, 163, 74, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(22, 163, 74, 0.1);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: var(--font-headings);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--light-text);
    font-size: 1rem;
    font-family: var(--font-ui);
}

/* Login Form */
.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
    font-family: var(--font-ui);
    font-size: 0.875rem;
}

.login-form label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    width: 16px;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
    font-family: var(--font-main);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
    transform: translateY(-1px);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
    background: rgba(22, 163, 74, 0.05);
}

/* Remember Me & Forgot Password */
.remember-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.remember-me label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.remember-me input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.remember-me input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: none !important;
}

/* Auth Button */
.btn-auth {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-ui);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--light-text);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--secondary-color);
    text-decoration: none !important;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-ui);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: rgba(16, 185, 129, 0.9);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.notification.error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Login Page Responsive Design */
@media (max-width: 480px) {
    .back-link {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .login-page {
        padding: 1rem;
    }

    .login-box {
        padding: 2rem;
        border-radius: 16px;
    }

    .login-header h1 {
        font-size: 2rem;
    }

    .login-form input[type="text"],
    .login-form input[type="password"],
    .login-form input[type="email"] {
        padding: 0.875rem;
    }

    .btn-auth {
        padding: 1rem;
        font-size: 1rem;
    }

    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* ========================================
   Register Page Styles
   ======================================== */

/* Register Page Layout (inherits most from login page) */
.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7, #bbf7d0);
}

.register-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(22,163,74,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(22,163,74,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(22,163,74,0.03)"/><circle cx="10" cy="60" r="0.5" fill="rgba(22,163,74,0.03)"/><circle cx="90" cy="40" r="0.5" fill="rgba(22,163,74,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.6;
}

.register-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 5;
}

.register-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(22, 163, 74, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(22, 163, 74, 0.1);
    position: relative;
    overflow: hidden;
}

.register-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.register-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.register-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: var(--font-headings);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-header p {
    color: var(--light-text);
    font-size: 1rem;
    font-family: var(--font-ui);
}

/* Register Form */
.register-form .form-group {
    margin-bottom: 1.5rem;
}

.register-form label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
    font-family: var(--font-ui);
    font-size: 0.875rem;
}

.register-form label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    width: 16px;
}

.register-form input[type="text"],
.register-form input[type="password"],
.register-form input[type="email"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
    font-family: var(--font-main);
}

.register-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
    transform: translateY(-1px);
}

/* Password Requirements */
.password-requirements {
    margin-top: 0.75rem;
    padding: 1rem;
    background: rgba(22, 163, 74, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(22, 163, 74, 0.1);
    font-size: 0.8125rem;
    color: var(--light-text);
    font-family: var(--font-ui);
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.password-requirements li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.password-requirements li::before {
    content: '✗';
    color: var(--danger-color);
    font-weight: bold;
    width: 16px;
    text-align: center;
}

.password-requirements li.valid {
    color: var(--success-color);
}

.password-requirements li.valid::before {
    content: '✓';
    color: var(--success-color);
}

.password-requirements li.invalid {
    color: var(--danger-color);
}

/* Enhanced Input States */
.register-form input.valid {
    border-color: var(--success-color);
}

.register-form input.invalid {
    border-color: var(--danger-color);
}

/* Progress Indicator */
.form-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(22, 163, 74, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--light-text);
    font-family: var(--font-ui);
}

/* Register Page Responsive Design */
@media (max-width: 480px) {
    .register-page {
        padding: 1rem;
    }

    .register-box {
        padding: 2rem;
        border-radius: 16px;
    }

    .register-header h1 {
        font-size: 2rem;
    }

    .register-form input[type="text"],
    .register-form input[type="password"],
    .register-form input[type="email"] {
        padding: 0.875rem;
    }
}

/* ========================================
   Audio Page Styles
   ======================================== */

/* Compact Audio Header */
.audio-header {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    align-items: center;
}

.audio-artwork {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.audio-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-status-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    color: white;
}

.audio-status-badge.premium {
    background: rgba(239, 68, 68, 0.9);
}

.audio-status-badge.free {
    background: rgba(34, 197, 94, 0.9);
}

.audio-details {
    min-width: 0;
}

.audio-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-headings);
    line-height: 1.2;
}

.audio-artist {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.audio-artist a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.audio-artist a:hover {
    color: var(--secondary-color);
}

.audio-meta-compact {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.meta-item-compact {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.meta-item-compact i {
    color: var(--primary-color);
    width: 14px;
}

.meta-item-compact a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.meta-item-compact a:hover {
    color: var(--primary-color);
}

.audio-stats-compact {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.stat-compact {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-compact i {
    color: var(--primary-color);
}

.audio-actions-compact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-end;
}

.price-tag-compact {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: var(--shadow);
}

.action-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-compact {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

.btn-primary-compact {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-secondary-compact {
    background: var(--bg-main);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-compact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Enhanced Audio Player */
.audio-player-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.player-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.audio-player-enhanced {
    background: var(--bg-sidebar);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.audio-player-enhanced audio {
    width: 100%;
    height: 50px;
}

/* Playlist Controls */
.playlist-controls-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(34, 197, 94, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.playlist-nav {
    display: flex;
    gap: var(--spacing-sm);
}

.playlist-info-compact {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Locked Content */
.locked-content-compact {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border: 1px dashed rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.locked-icon-compact {
    width: 50px;
    height: 50px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.locked-message-compact {
    flex: 1;
    text-align: left;
}

.locked-message-compact h4 {
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.locked-message-compact p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Content Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Compact Description */
.description-compact {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.section-title-compact {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.description-text-compact {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Compact Stats */
.stats-compact {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.stat-item-compact {
    text-align: center;
    padding: var(--spacing-sm);
    background: var(--bg-main);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.stat-value-compact {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-headings);
}

.stat-label-compact {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Compact Related Audio */
.related-compact {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.related-grid-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

.related-item-compact {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-main);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.related-item-compact:hover {
    background: var(--bg-sidebar);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.related-thumb-compact {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    flex-shrink: 0;
    position: relative;
}

.related-thumb-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-overlay-compact {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.related-item-compact:hover .related-overlay-compact {
    opacity: 1;
}

.related-play-compact {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-info-compact {
    flex: 1;
    min-width: 0;
}

.related-title-compact {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-artist-compact {
    color: var(--text-muted);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-status-compact {
    padding: 0.125rem 0.375rem;
    border-radius: var(--border-radius);
    font-size: 0.625rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.related-status-compact.premium {
    background: #ef4444;
}

.related-status-compact.free {
    background: var(--primary-color);
}

/* Share Modal Compact */
.modal-compact {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content-compact {
    background: var(--bg-card);
    width: 90%;
    max-width: 400px;
    margin: 10% auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.modal-header-compact {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-sidebar);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body-compact {
    padding: var(--spacing-md);
}

.share-options-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.share-btn-compact {
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-main);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    font-size: 0.875rem;
}

.share-btn-compact:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Audio Page Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .audio-header {
        grid-template-columns: 150px 1fr auto; /* Retain auto for actions */
        gap: var(--spacing-md);
    }
    
    .audio-artwork {
        width: 150px;
        height: 150px;
    }
    
    .audio-actions-compact {
        align-items: flex-end; /* Keep original alignment for tablet */
    }
}

@media (max-width: 768px) {
    .audio-header {
        grid-template-columns: 1fr; /* Single column layout */
        text-align: center;
        padding: var(--mobile-padding);
    }
    
    .audio-artwork {
        width: 180px; /* Slightly larger than 150, smaller than 200 */
        height: 180px;
        margin: 0 auto var(--mobile-spacing);
    }

    .audio-title {
        font-size: 1.5rem; /* Adjusted for mobile */
    }

    .audio-artist {
        font-size: 1rem; /* Adjusted for mobile */
        margin-bottom: var(--mobile-spacing);
    }
    
    .audio-meta-compact {
        justify-content: center;
        gap: var(--mobile-spacing);
    }
    
    .audio-stats-compact {
        justify-content: center;
        gap: var(--mobile-spacing);
        margin-top: 0; /* Remove top margin if meta is above */
    }
    
    .audio-actions-compact {
        align-items: center; /* Center actions on mobile */
        width: 100%;
    }
    
    .action-buttons {
        flex-wrap: wrap; /* Allow buttons to wrap */
        justify-content: center;
        width: 100%;
    }

    .btn-compact {
        flex-grow: 1; /* Allow buttons to grow if space allows */
        min-width: 120px; /* Ensure tappable size */
    }

    .player-title {
        font-size: 1rem;
    }
    
    .stats-grid-compact {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for stats */
        gap: var(--mobile-spacing);
    }

    .related-item-compact {
        padding: var(--mobile-spacing);
    }
}

@media (max-width: 480px) {
    .audio-header {
        padding: var(--mobile-spacing); /* Consistent padding */
    }
    
    .audio-artwork {
        width: 150px; /* Further reduce for very small screens */
        height: 150px;
    }
    
    .audio-title {
        font-size: 1.25rem; /* Further reduce title */
    }

    .audio-artist {
        font-size: 0.875rem; /* Further reduce artist */
    }

    .action-buttons {
        flex-direction: column; /* Stack buttons vertically */
        align-items: stretch; /* Make buttons full width */
    }

    .btn-compact {
        width: 100%;
        margin-bottom: var(--spacing-xs); /* Add space between stacked buttons */
    }

    .btn-compact:last-child {
        margin-bottom: 0;
    }

    .price-tag-compact {
        font-size: 1rem;
        padding: 0.375rem 0.75rem;
        align-self: center; /* Center price tag if actions stack */
    }

    .stats-grid-compact {
        grid-template-columns: 1fr; /* Single column for stats on very small screens */
        gap: var(--spacing-xs);
    }

    .stat-item-compact {
        padding: var(--spacing-xs);
    }

    .content-grid {
        gap: var(--mobile-spacing);
    }

    .description-compact,
    .stats-compact,
    .related-compact,
    .audio-player-section {
        padding: var(--mobile-spacing);
    }

    .section-title-compact {
        font-size: 1rem;
    }
}

/* ========================================
   Album Page Styles
   ======================================== */

/* Album Page Layout */
.dashboard-root {
    display: flex;
    min-height: 100vh;
    background: var(--bg-main);
}

.dashboard-main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.main-content {
    flex: 1;
    padding: var(--spacing-xl) var(--spacing-lg);
    overflow-x: hidden;
    background: var(--bg-main);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Album Header Section */
.album-header-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.album-hero {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: var(--spacing-2xl);
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(21, 128, 61, 0.05));
    border-bottom: 1px solid var(--border-color);
}

.album-cover {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.album-cover:hover img {
    transform: scale(1.02);
}

.album-status-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    color: white;
    font-family: var(--font-ui);
}

.album-status-badge.mixed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(34, 197, 94, 0.9));
}

.album-status-badge.premium {
    background: rgba(239, 68, 68, 0.9);
}

.album-status-badge.free {
    background: rgba(34, 197, 94, 0.9);
}

.album-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.album-type {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-ui);
}

.album-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-md);
    line-height: 1.1;
    font-family: var(--font-headings);
}

.album-artist {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.album-artist a {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.album-artist a:hover {
    color: var(--secondary-color);
}

.album-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(34, 197, 94, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-headings);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-family: var(--font-ui);
}

.album-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Track List Section */
.track-list-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.track-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.track-item {
    display: grid;
    grid-template-columns: 40px 1fr auto auto auto;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    margin-bottom: var(--spacing-xs);
    align-items: center;
}

.track-item:hover {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
}

.track-item.active {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--primary-color);
}

/* Related Albums Section */
.related-albums-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: var(--spacing-xl);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.related-album {
    background: var(--bg-main);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.related-album:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(34, 197, 94, 0.3);
}

.related-cover {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-album:hover .related-cover img {
    transform: scale(1.05);
}

.related-info {
    padding: var(--spacing-md);
}

.related-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-headings);
    line-height: 1.3;
}

.related-artist {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Album Page Responsive Styles */
@media (max-width: 768px) {
    .main-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .album-hero {
        padding: var(--spacing-lg);
        gap: var(--spacing-lg);
    }
    
    .album-title {
        font-size: 2rem;
    }
    
    .album-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .album-actions {
        justify-content: center;
    }
    
    .track-item {
        grid-template-columns: 30px 1fr auto;
        gap: var(--spacing-sm);
    }
    
    .track-actions {
        opacity: 1;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .album-hero {
        padding: var(--spacing-md);
    }
    
    .album-cover {
        height: 250px;
    }
    
    .album-title {
        font-size: 1.75rem;
    }
    
    .album-actions {
        flex-direction: column;
    }
    
    .track-item {
        grid-template-columns: 1fr auto;
        gap: var(--spacing-xs);
    }
    
    .track-number {
        display: none;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Albums Page Styles */
.dashboard-root {
    display: flex;
    min-height: 100vh;
    background: var(--bg-main);
}

.dashboard-main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.main-content {
    flex: 1;
    padding: var(--spacing-xl) var(--spacing-lg);
    overflow-x: hidden;
    background: var(--bg-main);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.025em;
}

/* Enhanced Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-xs);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* Featured Albums Section */
.featured-section {
    margin-bottom: var(--spacing-2xl);
}

.featured-albums {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xs);
}

.featured-album {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
}

.featured-album:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(34, 197, 94, 0.2);
}

.featured-album-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--bg-sidebar), #f3f4f6);
    box-shadow: var(--shadow);
}

.featured-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-album:hover .featured-album-cover img {
    transform: scale(1.1);
}

.featured-album-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-album-artist {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Professional Filter Bar */
.filter-bar {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.sort-options {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.sort-option {
    padding: 0.75rem 1rem;
    background: var(--bg-main);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-option:hover {
    background: var(--bg-sidebar);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.sort-option.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.search-box {
    flex: 1;
    max-width: 400px;
}

.search-box form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.search-box button {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box button:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Professional Albums Grid */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-xs);
}

.album-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.album-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(34, 197, 94, 0.2);
}

.album-cover {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-sidebar), #f3f4f6);
}

.album-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.album-card:hover .album-cover img {
    transform: scale(1.1);
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.album-play-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.album-play-btn i {
    color: white;
    font-size: 1.5rem;
    margin-left: 4px;
}

.album-info {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
}

.album-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-artist {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: auto;
    padding-top: var(--spacing-xs);
    border-top: 1px solid var(--border-color);
}

.album-year,
.album-tracks {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

/* Enhanced Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    margin: var(--spacing-xl) 0;
}

.page-link {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    font-weight: 500;
    min-width: 44px;
    text-align: center;
}

.page-link:hover {
    background: var(--bg-sidebar);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.page-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* Responsive Design for Albums Page */
@media (max-width: 1024px) {
    .dashboard-main-wrapper {
        margin-left: 0;
    }
    
    .featured-albums {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-options {
        justify-content: center;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .section-title,
    .page-title {
        font-size: 1.5rem;
    }
    
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .albums-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-albums {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sort-options {
        flex-direction: column;
        width: 100%;
    }
}

/* Artist Page Styles */
.dashboard-root {
    display: flex;
    min-height: 100vh;
    background: var(--bg-main);
}

.dashboard-main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.main-content {
    flex: 1;
    padding: var(--spacing-xl) var(--spacing-lg);
    overflow-x: hidden;
    background: var(--bg-main);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Artist Header Section */
.artist-header-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.artist-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-2xl);
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(21, 128, 61, 0.05));
    border-bottom: 1px solid var(--border-color);
}

.artist-image {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.artist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.artist-image:hover img {
    transform: scale(1.05);
}

.artist-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.artist-type {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-ui);
}

.artist-name {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-md);
    line-height: 1.1;
    font-family: var(--font-headings);
}

.artist-bio {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    max-height: 4.8em;
    overflow: hidden;
    position: relative;
}

.artist-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(34, 197, 94, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-headings);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-family: var(--font-ui);
}

.artist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* Content Sections */
.content-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-headings);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.sort-filter {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.sort-select {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 0.875rem;
}

/* Related Artists Grid */
.related-artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--spacing-lg);
}

.related-artist-card {
    background: var(--bg-main);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    padding: var(--spacing-lg);
}

.related-artist-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(34, 197, 94, 0.3);
}

.related-artist-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.related-artist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-artist-card:hover .related-artist-image img {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .artist-hero {
        padding: var(--spacing-lg);
        gap: var(--spacing-lg);
    }
    
    .artist-name {
        font-size: 2rem;
    }
    
    .artist-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .artist-actions {
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }
    
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .tracks-grid {
        grid-template-columns: 1fr;
    }
    
    .related-artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .artist-hero {
        padding: var(--spacing-md);
    }
    
    .artist-image {
        height: 200px;
    }
    
    .artist-name {
        font-size: 1.75rem;
    }
    
    .artist-actions {
        flex-direction: column;
    }
    
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-artists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Artists Page Styles */
.dashboard-root {
    display: flex;
    min-height: 100vh;
    background: var(--bg-main);
}

.dashboard-main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.main-content {
    flex: 1;
    padding: var(--spacing-xl) var(--spacing-lg);
    overflow-x: hidden;
    background: var(--bg-main);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Enhanced Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-xs);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.025em;
}

/* Featured Artists Section */
.featured-artists {
    margin-bottom: var(--spacing-2xl);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xs);
}

.featured-artist {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    text-align: center;
    padding: var(--spacing-md);
}

.featured-artist:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(34, 197, 94, 0.2);
}

.featured-artist-image {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--bg-sidebar), #f3f4f6);
    box-shadow: var(--shadow);
}

.featured-artist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-artist-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.featured-artist-tracks {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Professional Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.sort-options {
    display: flex;
    gap: var(--spacing-sm);
}

.sort-option {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-main);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.sort-option:hover {
    background: var(--bg-sidebar);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.sort-option.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.search-box {
    flex: 1;
    max-width: 400px;
}

.search-box form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.search-box button {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box button:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Professional Artists Grid */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-xs);
}

.artist-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    height: 350px;
}

.artist-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(34, 197, 94, 0.2);
}

.artist-header {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-sidebar), #f3f4f6);
}

.artist-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.artist-card:hover .artist-bg {
    transform: scale(1.1);
}

.artist-avatar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 70%);
}

.artist-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    color: white;
    text-align: center;
}

.artist-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artist-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    font-size: 0.875rem;
}

.artist-stat-item {
    text-align: center;
}

.artist-stat-value {
    font-weight: 600;
    margin-bottom: 2px;
}

.artist-stat-label {
    opacity: 0.8;
    font-size: 0.75rem;
}

/* Enhanced Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-main);
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--bg-sidebar);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.page-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-main-wrapper {
        margin-left: 0;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-options {
        justify-content: center;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .section-title,
    .page-title {
        font-size: 1.5rem;
    }
    
    .artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .artists-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sort-options {
        flex-direction: column;
        width: 100%;
    }
}

/* =====================================================
   24. ENHANCED MOBILE-FIRST RESPONSIVE DESIGN
   ===================================================== */

/* Base Mobile Styles (320px and up) */
:root {
    --mobile-padding: 1rem;
    --mobile-spacing: 0.75rem;
    --touch-target: 44px;
    --mobile-font-scale: 0.9;
}

/* Mobile-first base styles */
body {
    font-size: calc(14px * var(--mobile-font-scale));
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Touch-friendly interactions */
button, 
.btn, 
a, 
input[type="button"], 
input[type="submit"], 
.clickable {
    min-height: var(--touch-target);
    min-width: var(--touch-target);
    touch-action: manipulation;
}

/* Mobile layout adjustments */
.dashboard-root {
    flex-direction: column;
}

.dashboard-main-wrapper {
    margin-left: 0;
    width: 100%;
}

.main-content {
    padding: var(--mobile-padding);
    margin-top: 60px; /* Account for fixed header */
}

/* Mobile header */
.modern-header {
    left: 0 !important;
    height: 60px !important;
    padding: 0 var(--mobile-padding) !important;
    background: var(--bg-header, #ffffff) !important; /* ADDED: Solid background for mobile */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important; /* Refined shadow for mobile */
    border-bottom: 1px solid var(--border-color, #e5e7eb) !important; /* Ensure solid border */
}

.header-container {
    padding: 0 !important;
    gap: var(--mobile-spacing) !important;
}

/* Mobile search */
.search-container {
    flex: 1;
    max-width: none !important;
    order: 2;
}

.search-form {
    width: 100% !important;
    height: 40px !important;
}

.search-input {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 8px 12px 8px 36px;
}

/* Mobile navigation */
.mobile-menu-toggle {
    display: flex;
    order: 1;
    z-index: 1001;
}

.header-actions {
    order: 3;
    gap: 4px !important;
}

.action-btn {
    padding: 8px !important;
    height: var(--touch-target) !important;
    width: var(--touch-target) !important;
}

/* Mobile grids - single column by default */
.audio-grid,
.trending-grid,
.pdf-grid,
.new-releases-grid,
.genres-grid,
.artists-grid,
.albums-grid,
.stats-grid {
    grid-template-columns: 1fr;
    gap: var(--mobile-spacing);
    padding: 0;
}

/* Mobile cards */
.album-card,
.audio-card,
.trending-card,
.pdf-card,
.artist-card,
.genre-card {
    margin-bottom: var(--mobile-spacing);
}

/* Mobile typography */
.section-title {
    font-size: 1.5rem;
    margin-bottom: var(--mobile-spacing);
}

.page-title {
    font-size: 1.75rem;
    margin-bottom: var(--mobile-spacing);
}

/* Mobile forms */
.form-input,
.search-input,
input,
textarea,
select {
    font-size: 16px; /* Prevent zoom */
    padding: 12px;
    border-radius: 8px;
}

/* Mobile buttons */
.btn,
.action-btn,
.sort-option {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 8px;
    min-height: var(--touch-target);
}

/* Mobile filter bar */
.filter-bar {
    flex-direction: column;
    gap: var(--mobile-spacing);
    padding: var(--mobile-spacing);
}

.sort-options {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Mobile pagination */
.pagination {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.page-link {
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    padding: 8px 12px;
}

/* Mobile modals */
.modal-content,
.modal-content-compact {
    width: 95%;
    margin: 5% auto;
    max-height: 90vh;
    overflow-y: auto;
}

/* Mobile player */
.mini-player {
    bottom: var(--mobile-spacing);
    left: var(--mobile-spacing);
    right: var(--mobile-spacing);
    max-width: none;
}

/* Mobile stats */
.stats-summary {
    grid-template-columns: 1fr;
    gap: var(--mobile-spacing);
}

.stat-card {
    padding: var(--mobile-spacing);
    text-align: center;
}

/* Small Mobile (375px and up) */
@media (min-width: 375px) {
    :root {
        --mobile-font-scale: 0.95;
    }
    
    .trending-grid,
    .new-releases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Mobile (414px and up) */
@media (min-width: 414px) {
    .audio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .genres-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-container {
        max-width: 250px;
        flex: none;
    }
}

/* Tablet Portrait (768px and up) */
@media (min-width: 768px) {
    :root {
        --mobile-font-scale: 1;
    }
    
    body {
        font-size: 16px;
    }
    
    .dashboard-root {
        flex-direction: row;
    }
    
    .dashboard-main-wrapper {
        margin-left: var(--sidebar-width);
    }
    
    .main-content {
        padding: var(--spacing-lg) var(--spacing-md);
        margin-top: 0;
    }
    
    .modern-header {
        left: var(--sidebar-width) !important;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .header-container {
        padding: 0 20px !important;
    }
    
    .search-container {
        max-width: 400px;
        order: 0;
    }
    
    .header-actions {
        order: 0;
        margin-left: auto;
    }
    
    /* Tablet grids */
    .audio-grid,
    .trending-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .albums-grid,
    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .genres-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .sort-options {
        justify-content: flex-start;
    }
}

/* Tablet Landscape / Small Desktop (1024px and up) */
@media (min-width: 1024px) {
    .main-content {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    /* Desktop grids */
    .audio-grid,
    .trending-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .albums-grid,
    .artists-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .genres-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-summary {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .action-text {
        display: inline;
    }
    
    .action-btn {
        padding: 6px 10px !important;
        height: 36px !important;
        width: auto !important;
        gap: 6px !important;
    }
    
    .user-info-header {
        display: flex;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .main-content {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    /* Large desktop grids */
    .audio-grid,
    .trending-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .albums-grid,
    .artists-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .genres-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .stats-summary {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .audio-grid,
    .trending-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .albums-grid,
    .artists-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .genres-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .stats-summary {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Mobile-specific improvements */
@media (max-width: 767px) {
    /* Improve touch targets */
    .chart-item,
    .related-item-compact,
    .suggestion-item {
        min-height: var(--touch-target);
        padding: 12px;
    }
    
    /* Better mobile spacing */
    .section-header {
        margin-bottom: var(--mobile-spacing);
        padding: 0;
    }
    
    .section-header::after {
        display: none;
    }
    
    /* Mobile-friendly overlays */
    .social-actions,
    .album-overlay,
    .play-overlay {
        opacity: 1;
        position: static;
        background: transparent;
        display: flex;
        justify-content: center;
        margin-top: var(--mobile-spacing);
    }
    
    /* Mobile cart improvements */
    .cart-item {
        grid-template-columns: 1fr;
        gap: var(--mobile-spacing);
        text-align: center;
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    /* Mobile form improvements */
    .progress-steps {
        flex-direction: column;
        gap: var(--mobile-spacing);
    }
    
    .step-separator {
        width: 2px;
        height: 20px;
        align-self: center;
    }
    
    /* Mobile audio player */
    .audio-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--mobile-spacing);
    }
    
    .audio-artwork {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    /* Mobile album/artist pages */
    .album-hero,
    .artist-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--mobile-spacing);
    }
    
    .album-cover,
    .artist-image {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .album-stats,
    .artist-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .album-actions,
    .artist-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Landscape mobile optimization */
@media (max-width: 767px) and (orientation: landscape) {
    .main-content {
        padding: var(--mobile-spacing);
    }
    
    .album-cover,
    .artist-image,
    .audio-artwork {
        width: 150px;
        height: 150px;
    }
    
    .album-hero,
    .artist-hero {
        grid-template-columns: 150px 1fr;
        text-align: left;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .album-cover img,
    .artist-image img,
    .audio-artwork img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode mobile adjustments */
@media (prefers-color-scheme: dark) {
    .mobile-nav-content {
        background: rgba(30, 30, 30, 0.98);
    }
    
    .search-form {
        background: rgba(50, 50, 50, 0.9);
    }
}

/* Print styles */
@media print {
    .mobile-menu-toggle,
    .header-actions,
    .mini-player,
    .social-actions {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .dashboard-main-wrapper {
        margin-left: 0;
    }
}

/* Enhanced Mobile Sidebar Styles */
@media (max-width: 768px) {
    /* Sidebar mobile overlay and positioning */
    .modern-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        border-right: 1px solid #e5e7eb;
    }

    .sidebar-open .modern-sidebar {
        transform: translateX(0);
    }

    /* Ensure all sidebar sections have white background */
    .sidebar-brand,
    .sidebar-nav,
    .sidebar-user,
    .sidebar-footer {
        background: #ffffff;
    }

    /* Mobile sidebar overlay backdrop */
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sidebar-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile hamburger menu button */
    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 10000;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn:hover {
        background: #f9fafb;
        transform: scale(1.05);
    }

    .mobile-menu-btn i {
        font-size: 18px;
        color: #374151;
    }

    /* Adjust main content for mobile */
    .dashboard-main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    /* Mobile navigation improvements */
    .nav-link {
        padding: 16px 20px;
        font-size: 16px;
        min-height: 48px;
    }

    .nav-icon {
        font-size: 18px;
        margin-right: 16px;
    }

    .nav-text {
        font-size: 16px;
    }

    /* Mobile user section */
    .user-card {
        padding: 16px;
        margin: 0 16px;
    }

    .guest-card {
        padding: 20px;
        margin: 0 16px;
    }

    /* Mobile footer */
    .sidebar-footer {
        padding: 16px 20px;
        background: #ffffff;
    }
}

/* =====================================================
   25. AUDIO LIBRARY PAGE STYLES
   ===================================================== */

/* Professional Audio Library Layout */
.filters-section {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.filter-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.filter-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Professional Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin: var(--spacing-lg) 0;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    background: rgba(34, 197, 94, 0.1);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.empty-state p {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

/* Enhanced Popular Tracks Section */
.popular-tracks-section {
    margin-bottom: var(--spacing-2xl);
}

.popular-tracks-list {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.track-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.track-item:last-child {
    border-bottom: none;
}

.track-item:hover {
    background: rgba(34, 197, 94, 0.05);
}

.track-rank {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
    margin-right: var(--spacing-md);
}

.track-cover {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-right: var(--spacing-md);
    position: relative;
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-lock {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-artist {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 0;
}

.track-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.75rem;
}

.track-duration,
.track-price {
    font-weight: 500;
}

.track-price {
    color: #f59e0b;
}

.track-menu {
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.track-menu:hover {
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-color);
}

/* Enhanced Top Audio Section */
.top-audio-section {
    margin-bottom: var(--spacing-2xl);
}

.top-audio-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.top-audio-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.top-audio-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.banner-waveform {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-md);
    opacity: 0.2;
    position: relative;
    z-index: 1;
}

.banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-md);
    position: relative;
    z-index: 2;
}

.show-all-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.show-all-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.top-audio-tracks {
    padding: var(--spacing-md);
}

.top-track-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) 0;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xs);
}

.top-track-item:hover {
    background: rgba(34, 197, 94, 0.05);
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

/* Responsive Design for Audio Library */
@media (max-width: 1024px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .top-audio-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .track-item {
        padding: var(--spacing-sm);
    }
    
    .track-rank {
        width: 30px;
        margin-right: var(--spacing-sm);
    }
    
    .track-cover {
        width: 50px;
        height: 50px;
        margin-right: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .filters-section {
        padding: var(--spacing-sm);
    }
    
    .track-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Artist Page Professional Styles */
.artist-header-section.professional {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.artist-hero.professional {
    display: flex;
    align-items: center;
    gap: 40px;
}

.artist-image.professional {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
    transition: all 0.4s ease;
}

.artist-image.professional:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.artist-avatar.professional {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.verified-badge.professional {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.artist-info.professional {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.artist-header-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.artist-type.professional {
    background: rgba(22, 163, 74, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.artist-country.professional {
    display: flex;
    align-items: center;
    gap: 5px;
}

.artist-name.professional {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.artist-bio.professional {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 20px;
}

.artist-stats.professional {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.stat-item.professional {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item.professional:hover {
    background: rgba(22, 163, 74, 0.05);
    transform: translateY(-3px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(22, 163, 74, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.artist-actions.professional {
    display: flex;
    gap: 15px;
}

.btn.professional {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.professional:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.artist-social-links.professional {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link.professional {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link.professional:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .artist-hero.professional {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .artist-stats.professional {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .artist-actions.professional {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .artist-header-section.professional {
        padding: 20px;
    }
    
    .artist-image.professional {
        width: 200px;
        height: 200px;
    }
    
    .artist-name.professional {
        font-size: 2rem;
    }
    
    .artist-stats.professional {
        grid-template-columns: 1fr;
    }
}

/* Grid System - Mobile First */
.container {
    width: 100%;
    padding-right: var(--container-padding);
    padding-left: var(--container-padding);
    margin-right: auto;
    margin-left: auto;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

/* Default 1 column for mobile */
.audio-grid,
.trending-grid,
.pdf-grid,
.new-releases-grid,
.genres-grid,
.artists-grid,
.stats-grid {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: 1fr;
    padding: var(--spacing-md);
}

/* Card Base Styles - Mobile First */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Layout Components - Mobile First */
.dashboard-main-wrapper {
    padding: var(--spacing-md);
}

.main-content {
    padding: var(--spacing-md);
    max-width: 100%;
}

/* Section Spacing - Mobile First */
.section {
    margin-bottom: var(--spacing-xl);
}

.section-header {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) 0;
}

.section-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

/* Responsive Breakpoints */
@media (min-width: 375px) {
    .container {
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .audio-grid,
    .trending-grid,
    .pdf-grid,
    .new-releases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    h1, .h1 {
        font-size: var(--font-size-3xl);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .audio-grid,
    .trending-grid,
    .pdf-grid,
    .new-releases-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-main-wrapper {
        padding: var(--spacing-lg);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
    
    .audio-grid,
    .trending-grid,
    .pdf-grid,
    .new-releases-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Component Styles - Mobile First */
.card-content {
    padding: var(--spacing-md);
}

/* Audio Card */
.audio-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    background: var(--card-bg);
}

.audio-cover {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.audio-info {
    padding: var(--spacing-sm) 0;
}

.audio-title {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
}

.audio-artist {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Artist Card */
.artist-card {
    text-align: center;
    padding: var(--spacing-md);
}

.artist-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
}

.artist-name {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
}

/* Navigation */
.nav-item {
    padding: var(--spacing-sm);
}

.nav-link {
    font-size: var(--font-size-sm);
    padding: var(--spacing-sm);
}

/* Buttons */
.btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
}

.form-input {
    padding: var(--spacing-sm);
    font-size: var(--font-size-base);
    border-radius: var(--radius-sm);
}

/* Header & Navigation - Mobile First */
.modern-header {
    padding: var(--spacing-sm);
}

.header-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.mobile-menu-toggle {
    display: block;
}

.nav-menu {
    display: none;
}

/* Responsive Navigation */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        gap: var(--spacing-md);
    }

    .nav-link {
        font-size: var(--font-size-base);
    }
}

@media (min-width: 1024px) {
    .modern-header {
        padding: var(--spacing-md);
    }

    .header-container {
        gap: var(--spacing-lg);
    }
}

/* Modern Mobile Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Improved Touch Targets */
button,
.btn,
.nav-link,
.card-link {
    min-height: 44px;
    min-width: 44px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--spacing-xl);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes - Mobile First */
.hide-mobile {
    display: none;
}

.show-mobile {
    display: block;
}
.main-footer{
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Spacing Utilities */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }

.m-1 { margin: var(--spacing-xs); }
.mt-1 { margin-top: var(--spacing-xs); }
.mb-1 { margin-bottom: var(--spacing-xs); }
.ml-1 { margin-left: var(--spacing-xs); }
.mr-1 { margin-right: var(--spacing-xs); }

.m-2 { margin: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.ml-2 { margin-left: var(--spacing-sm); }
.mr-2 { margin-right: var(--spacing-sm); }

.m-3 { margin: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-md); }
.ml-3 { margin-left: var(--spacing-md); }
.mr-3 { margin-right: var(--spacing-md); }

.m-4 { margin: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.ml-4 { margin-left: var(--spacing-lg); }
.mr-4 { margin-right: var(--spacing-lg); }

/* Padding Utilities */
.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; }
.pr-0 { padding-right: 0; }

.p-1 { padding: var(--spacing-xs); }
.pt-1 { padding-top: var(--spacing-xs); }
.pb-1 { padding-bottom: var(--spacing-xs); }
.pl-1 { padding-left: var(--spacing-xs); }
.pr-1 { padding-right: var(--spacing-xs); }

.p-2 { padding: var(--spacing-sm); }
.pt-2 { padding-top: var(--spacing-sm); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pl-2 { padding-left: var(--spacing-sm); }
.pr-2 { padding-right: var(--spacing-sm); }

.p-3 { padding: var(--spacing-md); }
.pt-3 { padding-top: var(--spacing-md); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pl-3 { padding-left: var(--spacing-md); }
.pr-3 { padding-right: var(--spacing-md); }

/* Text Utilities */
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }

/* Responsive Utilities */
@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
    
    .show-mobile {
        display: none;
    }
    
    .text-md-left { text-align: left; }
    .text-md-center { text-align: center; }
    .text-md-right { text-align: right; }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Modern Header - Mobile First */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg, #ffffff);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.app-header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Mobile Menu Button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: var(--spacing-xs);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--hover-bg, rgba(0, 0, 0, 0.05));
    border-radius: var(--radius-md);
}

.menu-line {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    margin: 2px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Enhanced Search */
.search-wrapper {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--search-bg, #f3f4f6);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: all 0.3s ease;
}

.search-form:focus-within {
    background: var(--search-focus-bg, #ffffff);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-base);
    color: var(--text-color);
    min-width: 0;
}

.search-input:focus {
    outline: none;
}

.search-icon {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    padding: var(--spacing-xs);
}

.search-clear {
    opacity: 0;
    pointer-events: none;
    padding: var(--spacing-xs);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.search-input:not(:placeholder-shown) + .search-clear {
    opacity: 1;
    pointer-events: auto;
}

/* Header Actions */
.header-actions {
    display: none;
    align-items: center;
    gap: var(--spacing-sm);
}

.action-button {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: var(--font-size-sm);
    transition: all 0.2s ease;
    position: relative;
}

.action-button:hover {
    background: var(--hover-bg, rgba(0, 0, 0, 0.05));
}

.action-icon {
    position: relative;
    font-size: var(--font-size-lg);
}

.action-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-color);
    color: white;
    font-size: var(--font-size-xs);
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-text {
    display: none;
    margin-left: var(--spacing-xs);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.user-button:hover {
    background: var(--hover-bg, rgba(0, 0, 0, 0.05));
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info {
    display: none;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: var(--card-bg, #ffffff);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
    .header-wrapper {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }

    .menu-toggle {
        display: none;
    }

    .header-actions {
        display: flex;
    }

    .action-text {
        display: block;
    }

    .user-info {
        display: block;
    }
}

@media (min-width: 1024px) {
    .header-wrapper {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .search-wrapper {
        max-width: 800px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .app-header {
        --header-bg: rgba(17, 24, 39, 0.8);
        --search-bg: rgba(31, 41, 55, 0.5);
        --search-focus-bg: rgba(31, 41, 55, 0.8);
        --hover-bg: rgba(255, 255, 255, 0.1);
    }
}

/* Mobile Menu Styles - Updated */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0; /* Changed to right for RTL animation */
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: var(--bg-color, #ffffff);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--bg-color, #ffffff);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.mobile-menu-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-color);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.mobile-menu-close:hover {
    background: var(--hover-bg, rgba(0, 0, 0, 0.05));
}

/* Mobile Navigation */
.mobile-nav {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-color, #ffffff);
    padding: 0;
}

/* Main Navigation Section */
.mobile-nav-section {
    padding: var(--spacing-md);
    background: var(--bg-color, #ffffff);
}

.mobile-nav-section-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
    padding: 0 var(--spacing-sm);
}

/* Navigation Items */
.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-color);
    font-size: var(--font-size-base);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    margin-bottom: var(--spacing-xs);
    text-decoration: none;
}

.mobile-nav-item:hover {
    background: var(--hover-bg, rgba(0, 0, 0, 0.05));
}

.mobile-nav-item i {
    margin-right: var(--spacing-sm);
    font-size: var(--font-size-lg);
    width: 24px;
    text-align: center;
    color: var(--text-secondary);
}

.mobile-nav-item span {
    flex: 1;
}

/* Divider */
.mobile-nav-divider {
    height: 8px;
    background: var(--border-color, #f3f4f6);
    margin: 0;
    border: none;
}

/* User Section */
.mobile-user-section {
    padding: var(--spacing-md);
    background: var(--bg-color, #ffffff);
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.mobile-user-header {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-color, #ffffff);
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: var(--spacing-md);
}

.mobile-user-info {
    flex: 1;
}

.mobile-user-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
}

.mobile-user-email {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .mobile-menu-content,
    .mobile-nav-section,
    .mobile-user-section,
    .mobile-menu-header {
        background: var(--dark-bg, #1f2937);
    }

    .mobile-nav-divider {
        background: var(--dark-border-color, #374151);
    }
}

.section-title-wrapper {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--spacing-md);
    align-items: center;
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

@media (min-width: 375px) {
    .section-title-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .section-title-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .section-title-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .section-title-wrapper {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Ensure child items stretch properly */
.section-title-wrapper > * {
    width: 100%;
    min-width: 0; /* Prevents grid blowout */
}

/* Add gap between items on smaller screens */
.section-title-wrapper > *:not(:last-child) {
    margin-bottom: var(--spacing-sm);
}

@media (min-width: 375px) {
    .section-title-wrapper > *:not(:last-child) {
        margin-bottom: 0;
    }
}
