:root {
    --bg: #050505;
    --card-bg: rgba(20, 20, 20, 0.4);
    --accent-cyan: #00f2ff;
    --accent-purple: #bc00ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --green: #00ff88;
    --red: #ff3366;
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-ui: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-ui);
    overflow-x: hidden;
    min-height: 100vh;
}

.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 0% 0%, rgba(0, 242, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(188, 0, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Navbar */
.navbar {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo-box {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 6px;
    rotate: 45deg;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--text-primary); }

.btn-wallet {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-wallet:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* Dashboard Layout */
.dashboard {
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Hero Module */
.hero-module {
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05), rgba(188, 0, 255, 0.05));
}

.balance-info h1 {
    font-family: var(--font-mono);
    font-size: 4rem;
    margin: 0.5rem 0;
}

.balance-info .cents { opacity: 0.4; }

.balance-info .trend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.trend.positive { color: var(--green); }
.trend.negative { color: var(--red); }

.quick-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.action-btn.buy { background: white; color: black; }
.action-btn.sell { background: rgba(255,255,255,0.1); color: white; }
.action-btn.swap { border: 1px solid var(--glass-border); background: transparent; color: white; }

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.market-chart, .assets-list {
    padding: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

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

#btc-price {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
}

.change { color: var(--red); font-size: 0.8rem; }

.chart-container {
    height: 300px;
}

/* Asset List */
.asset-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.asset-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    transition: background 0.3s;
}

.asset-item:hover { background: rgba(255,255,255,0.03); }

.asset-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.asset-icon.btc { background: rgba(247, 147, 26, 0.1); color: #f7931a; }
.asset-icon.eth { background: rgba(98, 126, 234, 0.1); color: #627eea; }
.asset-icon.sol { background: rgba(0, 255, 163, 0.1); color: #00ffa3; }

.asset-name { flex-grow: 1; display: flex; flex-direction: column; }
.asset-name span { color: var(--text-secondary); font-size: 0.8rem; }

.asset-value { text-align: right; display: flex; flex-direction: column; }
.asset-value span { color: var(--text-secondary); font-size: 0.8rem; }

/* Security Module */
.security-module {
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.02), rgba(0, 255, 136, 0.02));
}

.security-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.shield-container {
    width: 64px;
    height: 64px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--green);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.shield-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--green);
    border-radius: 20px;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.security-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.security-info p { color: var(--text-secondary); font-size: 0.9rem; max-width: 400px; }

.security-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.green { background: var(--green); box-shadow: 0 0 10px var(--green); }

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
    width: 400px;
    padding: 3rem;
    text-align: center;
}

.wallet-options {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wallet-option {
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.wallet-option:hover { background: rgba(255,255,255,0.1); border-color: var(--accent-cyan); }
.wallet-option img { width: 32px; height: 32px; }

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr; }
    .hero-module { flex-direction: column; text-align: center; gap: 2rem; }
    .balance-info h1 { font-size: 2.5rem; }
}
