/* Base Styles and Reset */
:root {
    --primary-color: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #5641e5;
    --accent-color: #00cec9;
    --secondary-color: #fd79a8;
    --dark-color: #2d3436;
    --light-color: #f9f9f9;
    --text-color: #333;
    --text-light: #999;
    --border-color: #ddd;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scroll caused by 100vw elements */
}

body.no-scroll {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
    padding: 20px 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================
   HEADER & NAVIGATION
   ============================ */
.main-header {
    background-color: white;
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text {
    color: var(--dark-color);
}

.logo .accent {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.main-nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
    background-color: #f3f4f6;
}

.main-nav .user-menu-section {
    margin-left: auto;
    list-style: none;
}
.main-nav .user-menu-section > ul {
    gap: 8px;
}

/* Compact profile summary (top right) */
.profile-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    background: #f8f9fa;
    border-radius: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.profile-mini .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-light);
}
.profile-mini-text { line-height: 1.1; display:flex; flex-direction:column; }
.profile-mini-name { font-size: 0.85rem; font-weight:600; }
.user-role-badge { font-size: 0.65rem; text-transform:uppercase; letter-spacing:0.5px; padding:3px 8px; border-radius:12px; color:#fff; font-weight:600; margin-top:4px; background: var(--primary-color); display:inline-block; }
.user-role-badge.artist { background: linear-gradient(135deg,#6c5ce7,#a29bfe); }
.user-role-badge.fan { background: linear-gradient(135deg,#00cec9,#0984e3); }
.user-role-badge.admin { background: linear-gradient(135deg,#fd79a8,#e84393); }
@media (max-width: 640px) { .profile-mini { display:none; } }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    z-index: 1001; /* Above nav overlay */
}

/* --- Mobile Menu Styles --- */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        visibility: hidden;
        opacity: 0;
        transition: visibility 0.3s, opacity 0.3s ease;
        z-index: 1000;
    }

    .main-nav.active {
        visibility: visible;
        opacity: 1;
    }

    .main-nav > ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100%;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        gap: 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .main-nav.active > ul {
        transform: translateX(0);
    }
    
    .main-nav ul li {
        width: 100%;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 10px;
        border-bottom: 1px solid #eee;
    }

    .main-nav .user-menu-section {
        margin-left: 0;
        width: 100%;
        border-top: 2px solid #eee;
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .main-nav .user-menu-section > ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul li a.btn {
        text-align: center;
        margin-top: 10px;
        border-bottom: none;
        color: white; /* Ensure button text is white */
    }
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 60px 0;
    /* Full-bleed effect */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Hero section specific button styles */
.hero .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}
.hero .btn-primary:hover {
    background-color: transparent;
    color: white;
}
.hero .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
}
.hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .featured-carousel {
        order: -1; /* Move carousel above text on mobile */
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

/* ============================
   FEATURED CAROUSEL (RESTORED)
   ============================ */
.featured-carousel {
    flex: 1;
    max-width: 550px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 25%;
    flex: 0 0 25%;
    padding: 0 8px;
}

.carousel-card {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}
.carousel-card.placeholder {
     background-color: rgba(255, 255, 255, 0.1);
}

.carousel-image {
    position: relative;
    padding-bottom: 100%;
}

.carousel-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-info {
    padding: 12px;
    text-align: left;
}

.carousel-info h3 {
    margin: 0 0 4px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-info p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--dark-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-nav.prev { left: -15px; }
.carousel-nav.next { right: -15px; }

@media (max-width: 1200px) {
    .carousel-nav.prev { left: 5px; }
    .carousel-nav.next { right: 5px; }
}

@media (max-width: 768px) {
    .carousel-item { min-width: 50%; flex-basis: 50%; }
}

@media (max-width: 480px) {
    .carousel-item { min-width: 100%; flex-basis: 100%; }
}

/* ============================
   FEATURED MUSIC & GRIDS
   ============================ */
.featured-music {
    padding: 40px 0;
}

.music-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 2rem;
    margin: 0;
    color: var(--dark-color);
}

.section-header .view-all {
    font-weight: 600;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.music-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
}

.music-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.music-image {
    position: relative;
    padding-bottom: 100%; /* Square aspect ratio */
}

.music-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2.5rem;
}

.music-card:hover .play-overlay {
    opacity: 1;
}

.music-info {
    padding: 15px;
}

.music-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 8px 0 2px;
}

.shares-available {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}

.home-card-controls {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.home-card-controls .btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.85rem;
}
.home-card-controls .btn-primary { background-color: var(--primary-color); color: white; }
.home-card-controls .btn-primary:hover { background-color: var(--primary-dark); }
.home-card-controls .btn-secondary { background-color: #f0f0f0; color: #333; border: 1px solid #ddd; }
.home-card-controls .btn-secondary:hover { background-color: #e0e0e0; }

@media (min-width: 993px) {
    .home-card-controls {
        opacity: 1; /* Always visible */
        transition: opacity 0.3s ease;
        position: absolute;
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
    .music-card:hover .home-card-controls {
        opacity: 1; /* Stay visible on hover */
    }
    .music-card .music-info {
        padding-bottom: 60px; /* Make space for buttons */
    }
}


@media (max-width: 768px) {
    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    .section-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .music-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}


/* ============================
   POPULAR ARTISTS (IMPROVED)
   ============================ */
#pop-artist-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.pop-artist-card {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.pop-artist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.pop-artist-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    position: relative;
}

.pop-artist-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.2);
}

.pop-artist-initials {
    z-index: 2;
}

.pop-artist-icon {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.15;
    z-index: 1;
    transform: scale(2.5);
}

.pop-artist-info .pop-artist-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.pop-artist-info .pop-artist-genre {
    color: #777;
    margin-bottom: 10px;
}

.pop-artist-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-light);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}
.pop-artist-badge i {
    font-size: 0.7rem;
}

/* ============================
   HOW IT WORKS & CTA
   ============================ */
.how-it-works {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.how-it-works .section-header {
    justify-content: center; /* This is the fix */
    border-bottom: none;
    margin-bottom: 40px;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.step-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    font-size: 2rem;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    text-align: center;
    /* Full-bleed effect */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
    padding: 12px 24px;
    font-size: 1.1rem;
}
.cta .btn-primary:hover {
    background-color: transparent;
    color: white;
}

/* ============================
   MODAL STYLES
   ============================ */
.home-quick-buy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}
.home-quick-buy-modal.active {
    display: flex;
}
.home-modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    width: 85%;
    max-width: 380px;
    min-width: 320px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    /* Allow for dynamic positioning */
    margin: auto;
}

/* When positioned relative to card, override centering */
.home-modal-content[style*="position: fixed"] {
    margin: 0;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.home-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.home-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-color);
}
.home-modal-close {
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: #999;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}
.home-modal-close:hover {
    color: var(--primary-color);
}
.home-modal-song-info { 
    margin-bottom: 16px; 
    text-align: center;
}
.home-modal-song-title { 
    font-weight: 600; 
    font-size: 1.1rem; 
    margin-bottom: 4px;
    color: var(--text-color);
}
.home-modal-price { 
    color: var(--primary-color); 
    font-weight: 600; 
    font-size: 0.95rem;
}
.home-quantity-controls { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
    margin: 16px 0; 
}
.home-quantity-btn { 
    width: 32px; 
    height: 32px; 
    border: 1px solid #ddd; 
    background: white; 
    border-radius: 50%; 
    cursor: pointer; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s ease;
}
.home-quantity-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.home-quantity-input { 
    width: 60px; 
    text-align: center; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    padding: 6px; 
    font-size: 1rem; 
    font-weight: 600;
}
.home-modal-total { 
    margin: 16px 0; 
    padding: 12px; 
    background-color: #f8f9fa; 
    border-radius: 8px; 
    text-align: center; 
    font-size: 1.1rem; 
}
.home-modal-actions { 
    display: flex; 
    gap: 10px; 
    margin-top: 16px; 
}
.home-modal-actions .btn { 
    flex: 1; 
    padding: 10px; 
    font-weight: 600; 
    font-size: 0.9rem;
}

/* Modal responsive styles */
@media (max-width: 768px) {
    .home-modal-content {
        width: 95%;
        max-width: 340px;
        margin: 0 10px;
        padding: 16px;
    }
    
    .home-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .home-quantity-controls {
        gap: 10px;
        margin: 12px 0;
    }
    
    .home-quantity-btn {
        width: 28px;
        height: 28px;
    }
    
    .home-quantity-input {
        width: 50px;
        padding: 4px;
    }
    
    .home-modal-total {
        padding: 10px;
        font-size: 1rem;
        margin: 12px 0;
    }
    
    .home-modal-actions {
        gap: 8px;
        margin-top: 12px;
    }
    
    .home-modal-actions .btn {
        padding: 8px;
        font-size: 0.85rem;
    }
}

/* ============================
   MODERN FOOTER
   ============================ */
.main-footer {
    background-color: var(--dark-color);
    color: #a0aec0; /* Lighter grey for text */
    padding: 60px 0 20px;
    margin-top: auto; /* Push footer to the bottom */
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo .logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    display: inline-block;
    margin-bottom: 15px;
}
.footer-logo .logo-text .accent {
    color: var(--primary-color);
}
.footer-logo p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h3, .footer-social h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1rem;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #718096; /* Darker grey for copyright */
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo p {
        margin: 0 auto;
    }
    .social-icons {
        justify-content: center;
    }
}

/* Dashboard Stats Styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4096e0 0%, #00cdd8 100%);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.stat-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    backdrop-filter: blur(10px);
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.earnings-note {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        min-width: 50px;
        height: 50px;
        padding: 0.75rem;
    }
    
    .stat-icon i {
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Upload Page Styles */
.upload-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: var(--text-color);
}

.upload-section * {
    color: inherit;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Wallet Warning/Status Cards */
.wallet-warning-container,
.wallet-status-container {
    margin-bottom: 2rem;
}

.wallet-warning-card,
.wallet-status-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border-left: 4px solid #f39c12;
}

.wallet-warning-card.critical {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.wallet-status-card.success {
    border-left-color: #27ae60;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.warning-content h3,
.status-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.warning-content p,
.status-content p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.warning-benefits h4 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.warning-benefits ul {
    margin-left: 1rem;
    margin-bottom: 1.5rem;
}

.warning-benefits li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Upload Form Styles */
.upload-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.upload-header-warning {
    background: rgba(243, 156, 18, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #f39c12;
}

.upload-header-warning p {
    color: var(--text-color);
    margin: 0;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    background: white;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

/* File Upload Styles */
.file-input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-input-container input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-button {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.file-input-button:hover {
    background: var(--primary-dark);
}

.file-input-name {
    color: var(--text-light);
    font-style: italic;
}

.file-help-text {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #bbb;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .upload-container {
        padding: 1rem;
    }
    
    .wallet-warning-card,
    .wallet-status-card {
        padding: 1rem;
    }
}

/* Continue Anyway Section */
.continue-anyway-section {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.upload-anyway-details {
    color: var(--text-color);
}

.upload-anyway-toggle {
    cursor: pointer;
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-anyway-toggle:hover {
    color: var(--primary-color);
}

.upload-anyway-content {
    padding: 1rem 0;
}

.discourage-message p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.discourage-list {
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.discourage-list li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.discourage-note {
    color: var(--text-light);
    font-style: italic;
}

/* Warning Actions */
.warning-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.setup-time {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

/* Status Icons */
.warning-icon,
.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.warning-icon {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.status-icon {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

/* Form Validation States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #27ae60;
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    color: #27ae60;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ============================
   ICON TWEAKS FOR TEXT HEADINGS
   ============================ */
/* Ensure Font Awesome icons used in place of emojis align nicely with text */
.hero h1 i,
.main-footer .footer-about i {
    margin: 0 6px;
    color: var(--primary-color);
    vertical-align: -1px;
}