:root {
    --bg-obsidian: #050505;
    --bg-panel: rgba(20, 20, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-cyan: #00f2ff;
    --neon-purple: #bc13fe;
    --neon-green: #0aff60;
    --neon-red: #ff0a5c;
    --text-primary: #ffffff;
    --text-secondary: #8b9bb4;
    --font-inter: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-obsidian);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 242, 255, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(188, 19, 254, 0.03) 0%, transparent 20%);
    color: var(--text-primary);
    font-family: var(--font-inter);
    height: 100vh;
    overflow: hidden;
}

.dashboard-container {
    display: flex;
    height: 100%;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-input {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Sidebar */
.sidebar {
    width: 260px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-right: 1px solid var(--glass-border);
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.neon-icon {
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 5px var(--neon-cyan));
}

.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 300;
}

.nav-item:hover, .nav-item.active {
    background: rgba(0, 242, 255, 0.05);
    color: var(--text-primary);
    border-left: 3px solid var(--neon-cyan);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--neon-purple);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info .name {
    font-size: 0.9rem;
    font-weight: 500;
}

.user-info .status {
    font-size: 0.75rem;
    color: var(--neon-green);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-bar {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    width: 300px;
    gap: 10px;
    color: var(--text-secondary);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    font-family: var(--font-inter);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
}

.icon-btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--neon-red);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--neon-red);
}

.connect-wallet-btn {
    background: rgba(0, 242, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-inter);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.1);
}

.connect-wallet-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.card {
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Gradient Borders via pseudo-elements */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.portfolio-card {
    grid-column: span 1;
}

.stats-card {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-chart-card {
    grid-column: span 2;
    grid-row: span 2;
}

.assets-card {
    grid-column: span 1;
    grid-row: span 1;
}

.transactions-card {
    grid-column: span 1;
    grid-row: span 1;
}

/* Card Content */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.positive {
    background: rgba(10, 255, 96, 0.1);
    color: var(--neon-green);
}

.balance-amount {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.balance-amount .currency {
    color: var(--text-secondary);
    font-weight: 300;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.stat-item .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-item .value {
    font-weight: 500;
}

/* Chart Controls */
.chart-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.time-filters {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 8px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Asset List */
.asset-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.asset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.asset-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asset-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.asset-icon.btc { background: rgba(247, 147, 26, 0.2); color: #F7931A; }
.asset-icon.eth { background: rgba(98, 126, 234, 0.2); color: #627EEA; }
.asset-icon.sol { background: rgba(20, 241, 149, 0.2); color: #14F195; font-size: 0.9rem; font-weight: bold; }

.asset-name { font-weight: 500; font-size: 0.9rem; }
.asset-symbol { color: var(--text-secondary); font-size: 0.75rem; }

.asset-price { text-align: right; }
.price { font-weight: 500; font-size: 0.9rem; }
.change { font-size: 0.75rem; }
.change.positive { color: var(--neon-green); }
.change.negative { color: var(--neon-red); }

/* Transactions */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tx-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.tx-icon.received { background: rgba(10, 255, 96, 0.1); color: var(--neon-green); }
.tx-icon.sent { background: rgba(255, 10, 92, 0.1); color: var(--neon-red); }

.tx-details { flex: 1; }
.tx-type { display: block; font-size: 0.9rem; font-weight: 500; }
.tx-date { display: block; font-size: 0.75rem; color: var(--text-secondary); }

.tx-amount { font-size: 0.9rem; font-weight: 500; }
.tx-amount.positive { color: var(--neon-green); }
.tx-amount.negative { color: var(--text-primary); }

/* Chart Containers */
.chart-container-sm {
    height: 100px;
    width: 100%;
}

.chart-container-lg {
    height: 300px;
    width: 100%;
    margin-top: 1rem;
}