@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #07090e;
    --bg-surface: #0e131f;
    --bg-card: rgba(15, 23, 42, 0.75);
    --border-color: rgba(0, 240, 255, 0.12);
    --border-hover: rgba(0, 240, 255, 0.35);
    --neon-cyan: #00f0ff;
    --electric-blue: #0088ff;
    --neon-purple: #8b5cf6;
    --crypto-green: #10b981;
    --crypto-red: #ef4444;
    --crypto-amber: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.25);
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

body {
    background: radial-gradient(circle at 10% 10%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
                var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 9, 14, 0.85);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 136, 255, 0.4));
    border: 1px solid var(--neon-cyan);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-welcome {
    color: var(--text-secondary);
    font-size: 13.5px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-welcome strong {
    color: #fff;
}

/* Buttons */
.btn {
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--electric-blue) 100%);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    color: #000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Dashboard Content */
.dashboard {
    padding: 36px 0 60px;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.stat-icon {
    width: 52px;
    height: 52px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--neon-cyan);
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 24px;
    margin-bottom: 2px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-change {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.stat-change.positive {
    background: rgba(16, 185, 129, 0.15);
    color: var(--crypto-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stat-change.neutral {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Wallet Header Card */
.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 28px 32px;
    background: var(--bg-card);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.wallet-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wallet-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 136, 255, 0.4));
    border: 1px solid var(--neon-cyan);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.wallet-info h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.wallet-actions-small {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.action-btn-small {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.action-btn-small:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border-color: rgba(0, 240, 255, 0.3);
}

.balance {
    font-size: 42px !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #ffffff 40%, var(--neon-cyan) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-align: right !important;
    letter-spacing: -1px;
}

/* Wallet Actions Dock */
.wallet-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .wallet-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

.action-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 18px;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    backdrop-filter: blur(15px);
}

.action-btn:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.15);
}

.action-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--neon-cyan);
    transition: all 0.25s ease;
}

.action-btn:hover .action-icon {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--electric-blue) 100%);
    color: #000;
    box-shadow: var(--glow-cyan);
}

.action-btn span {
    font-weight: 700;
    font-size: 13.5px;
    color: #fff;
}

/* Add Funds Banner */
.add-funds-banner {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(59, 130, 246, 0.2) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 16px 24px;
    border-radius: 14px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(15px);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.banner-icon {
    width: 44px;
    height: 44px;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #38bdf8;
}

.banner-text h3 {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.banner-text p {
    color: #93c5fd;
    font-size: 12.5px;
    font-weight: 600;
}

.banner-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s ease;
}

.banner-close:hover {
    color: #fff;
}

/* Crypto Tabs */
.crypto-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tab {
    padding: 12px 4px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.tab:hover {
    color: #fff;
}

.tab.active {
    color: var(--neon-cyan);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Crypto List */
.crypto-list {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px 28px;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.crypto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.crypto-header h3 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}

.crypto-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 4px;
}

.crypto-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.crypto-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateX(4px);
}

.crypto-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.crypto-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.crypto-details {
    display: flex;
    flex-direction: column;
}

.crypto-name {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin-bottom: 2px;
}

.crypto-symbol {
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
}

.crypto-balance {
    text-align: right;
}

.balance-amount {
    font-weight: 800;
    font-size: 15px;
    color: #fff;
}

.balance-usd {
    font-size: 12.5px;
    color: var(--crypto-green);
    font-weight: 600;
    margin-top: 2px;
}

/* Recent Transactions */
.recent-transactions {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px 28px;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    margin-top: 24px;
}

.recent-transactions h3 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 14px;
}

.transaction-icon.transaction-buy {
    background: rgba(16, 185, 129, 0.15);
    color: var(--crypto-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.transaction-icon.transaction-withdraw {
    background: rgba(239, 68, 68, 0.15);
    color: var(--crypto-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.transaction-icon.transaction-swap {
    background: rgba(139, 92, 246, 0.15);
    color: var(--neon-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.transaction-icon.transaction-deposit {
    background: rgba(0, 240, 255, 0.15);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
}

.transaction-date {
    font-size: 11.5px;
    color: var(--text-muted);
}

.transaction-amount {
    text-align: right;
}

.transaction-amount .amount {
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
}

.transaction-amount .status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.status.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--crypto-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--crypto-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--crypto-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}


/* Universal Table Styles Added for Obsidian Theme */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow-x: auto;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    margin-bottom: 25px;
}
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}
.table th {
    background: rgba(0, 0, 0, 0.4);
    padding: 16px 20px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}
.table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}
.table tr:last-child td {
    border-bottom: none;
}
.table tr:hover td {
    background: rgba(0, 240, 255, 0.03);
}


/* Universal Select & Option Styles for Obsidian Theme (Eliminates white-on-white text) */
select, select.form-control, .token-select {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    outline: none !important;
}
select option, select.form-control option, .token-select option {
    background-color: #0b1120 !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
}
select option:hover, select option:focus, select option:checked,
select.form-control option:hover, select.form-control option:focus, select.form-control option:checked,
.token-select option:hover, .token-select option:focus, .token-select option:checked {
    background-color: #1e293b !important;
    color: #00f0ff !important;
}
