:root {
    --spotify-black: #121212;
    --spotify-dark-gray: #181818;
    --spotify-light-gray: #282828;
    --tesla-red: #e82127;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --green: #00d15e;
    --red: #ff005a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gotham', 'Montserrat', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--spotify-black) 0%, var(--spotify-dark-gray) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--spotify-light-gray);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--tesla-red), #ff5e62);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(232, 33, 39, 0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--tesla-red);
    border-radius: 50%;
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Page Styles */
.page {
    display: none;
    animation: fadeIn 0.5s ease-out forwards;
}

.page.active {
    display: block;
}

/* Dashboard Layout */
.dashboard {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4rem;
    padding: 2rem;
    background: linear-gradient(to right, rgba(24, 24, 24, 0.7), rgba(18, 18, 18, 0.9));
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--tesla-red);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.hero-image img:hover {
    transform: scale(1.03);
}

/* Dashboard Cards */
.dashboard-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--tesla-red);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--spotify-light-gray);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--tesla-red);
    background: rgba(232, 33, 39, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn {
    background: var(--tesla-red);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn:hover {
    background: #ff2e34;
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--tesla-red);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(232, 33, 39, 0.1);
}

/* Balance Display */
.balance-card {
    background: linear-gradient(135deg, var(--spotify-light-gray) 0%, var(--spotify-dark-gray) 100%);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.balance-title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.balance-amount {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #fff, var(--tesla-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Elon Musk Section */
.elon-section {
    background: linear-gradient(to right, rgba(24, 24, 24, 0.7), rgba(18, 18, 18, 0.9));
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.elon-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.elon-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--tesla-red);
}

.elon-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.elon-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.elon-titles {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.elon-title {
    background: rgba(232, 33, 39, 0.2);
    color: var(--tesla-red);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.elon-title:hover {
    background: rgba(232, 33, 39, 0.3);
    transform: translateY(-2px);
}

/* Price Chart */
.chart-container {
    background: var(--spotify-light-gray);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-actions {
    display: flex;
    gap: 1rem;
}

.time-filter {
    background: var(--spotify-dark-gray);
    border: none;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.time-filter:hover, .time-filter.active {
    background: rgba(232, 33, 39, 0.2);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--spotify-light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.stat-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.positive {
    color: var(--green);
}

.negative {
    color: var(--red);
}

/* Real-time net worth tracker */
.net-worth-tracker {
    background: linear-gradient(135deg, var(--spotify-light-gray) 0%, var(--spotify-dark-gray) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.net-worth-title {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.net-worth-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--green), var(--tesla-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.net-worth-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Prize Section */
.prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.prize-item {
    background: linear-gradient(135deg, #2c2c2c 0%, #1f1f1f 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.prize-item:hover {
    transform: scale(1.05);
    border-color: var(--tesla-red);
    box-shadow: 0 10px 25px rgba(232, 33, 39, 0.2);
}

.prize-amount {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--tesla-red);
}

.prize-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Transaction History */
.transaction-history {
    background: var(--spotify-light-gray);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--spotify-dark-gray);
    transition: all 0.3s;
    cursor: pointer;
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--spotify-dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.transaction-item:hover .transaction-icon {
    transform: scale(1.1);
    background: var(--tesla-red);
}

.transaction-details h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.transaction-details p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.transaction-amount {
    font-weight: 700;
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: var(--spotify-light-gray);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input, select {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--spotify-dark-gray);
    background: var(--spotify-dark-gray);
    color: var(--text-primary);
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--tesla-red);
    box-shadow: 0 0 0 2px rgba(232, 33, 39, 0.3);
}

.form-group select:focus {
    outline: none;
    border-color: var(--tesla-red);
    box-shadow: 0 0 0 2px rgba(232, 33, 39, 0.3);
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--tesla-red);
    text-decoration: none;
    transition: all 0.3s;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Profile Styles */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--tesla-red);
}

.profile-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--text-secondary);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-stat {
    background: var(--spotify-light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.profile-stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--tesla-red);
}

.profile-stat-label {
    color: var(--text-secondary);
}

/* Markets Styles */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.market-card {
    background: var(--spotify-light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.market-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.market-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--spotify-dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.market-card-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.market-card-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.market-card-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Earnings Styles */
.earnings-chart {
    background: var(--spotify-light-gray);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.earnings-list {
    background: var(--spotify-light-gray);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.earnings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--spotify-dark-gray);
}

.earnings-item:last-child {
    border-bottom: none;
}

.earnings-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.earnings-amount {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    margin-top: 4rem;
    border-top: 1px solid var(--spotify-light-gray);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 968px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .elon-header {
        flex-direction: column;
        text-align: center;
    }
    
    .net-worth-tracker {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .balance-amount {
        font-size: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Real-time number animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.counting {
    animation: countUp 0.5s ease-out forwards;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--spotify-light-gray);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s;
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    color: var(--tesla-red);
    transform: rotate(90deg);
}

.upload-area {
    border: 2px dashed var(--tesla-red);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    background: rgba(232, 33, 39, 0.1);
}