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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0f1b;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.header {
    background: #1a1f2e;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2a3441;
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: #000;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
}

.logo-text {
    color: #4ade80;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(34, 197, 94, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item:hover {
    color: white;
    transform: translateY(-1px);
}

.nav-item.active {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
}

.user-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.balance {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
    transition: all 0.3s ease;
}

.balance:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 222, 128, 0.4);
}

.user-menu {
    color: #9ca3af;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.user-menu:hover {
    color: white;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
}

.user-avatar:hover {
    transform: scale(1.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: #1a1f2e;
    padding: 20px;
    border-bottom: 1px solid #2a3441;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu .nav-item {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
}

/* Main Content */
.main-content {
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    color: #4ade80;
    margin-bottom: 32px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Portfolio Section */
.portfolio-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(74, 222, 128, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.05), rgba(34, 197, 94, 0.05));
    pointer-events: none;
}

.portfolio-header {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-balance {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.portfolio-change {
    color: #4ade80;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.portfolio-actions {
    display: flex;
    gap: 16px;
}

.btn-deposit {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #000;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
}

.btn-deposit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(74, 222, 128, 0.4);
}

.btn-withdraw {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.section {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(74, 222, 128, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.03), rgba(34, 197, 94, 0.03));
    pointer-events: none;
}

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

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.see-all {
    color: #4ade80;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.see-all:hover {
    color: #22c55e;
    transform: translateX(2px);
}

/* Watchlist Items */
.watchlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.watchlist-item:hover {
    background: rgba(74, 222, 128, 0.05);
    padding-left: 16px;
    padding-right: 16px;
    margin: 0 -16px;
    border-radius: 12px;
}

.crypto-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.crypto-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    position: relative;
}

.crypto-icon.eth {
    background: linear-gradient(135deg, #627eea, #4f46e5);
    border-left: 4px solid #ef4444;
}

.crypto-icon.btc {
    background: linear-gradient(135deg, #f7931a, #ff9500);
    border-left: 4px solid #22c55e;
}

.crypto-icon.usdc {
    background: linear-gradient(135deg, #2775ca, #1d4ed8);
    border-left: 4px solid #22c55e;
}

.crypto-details h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.crypto-details p {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
}

.crypto-price {
    text-align: right;
}

.crypto-price .price {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.crypto-price .change {
    font-size: 12px;
    font-weight: 600;
}

.change.positive {
    color: #22c55e;
}

.change.negative {
    color: #ef4444;
}

/* Crypto Cards */
.crypto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.crypto-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(74, 222, 128, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.crypto-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.05), rgba(34, 197, 94, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.crypto-card:hover::before {
    opacity: 1;
}

.crypto-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

.crypto-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.crypto-card-icon.btc {
    background: linear-gradient(135deg, #f7931a, #ff9500);
}

.crypto-card-icon.eth {
    background: linear-gradient(135deg, #627eea, #4f46e5);
}

.crypto-card-icon.bnb {
    background: linear-gradient(135deg, #f3ba2f, #fbbf24);
}

.crypto-card-icon.sol {
    background: linear-gradient(135deg, #9945ff, #7c3aed);
}

.crypto-card-change {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.crypto-card-change.positive {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.crypto-card-change.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.crypto-card-price {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.crypto-card-details {
    color: #9ca3af;
    font-size: 12px;
    margin-bottom: 2px;
}

.crypto-card-value {
    color: #9ca3af;
    font-size: 12px;
    margin-bottom: 16px;
}

.crypto-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trade-btn {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #000;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.4);
}

.last-updated {
    color: #6b7280;
    font-size: 10px;
}

/* Floating Sidebar */
.floating-sidebar {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.9);
    border-radius: 16px;
    padding: 16px 12px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 50;
}

.sidebar-item {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.sidebar-item:hover {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }
    
    .crypto-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-balance {
        font-size: 36px;
    }

    /* Mobile menu styles */
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .balance {
        display: none;
    }

    .user-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 16px;
    }

    .portfolio-section {
        padding: 24px;
    }

    .portfolio-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-deposit, .btn-withdraw {
        width: 100%;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-section,
.section,
.crypto-card {
    animation: fadeInUp 0.6s ease-out;
}

.crypto-card:nth-child(2) { animation-delay: 0.1s; }
.crypto-card:nth-child(3) { animation-delay: 0.2s; }
.crypto-card:nth-child(4) { animation-delay: 0.3s; }
