/* wallet-bank.css - Phantom Web3 Wallet Style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #121212;
    --bg-card: #1c1c1c;
    --bg-card-hover: #252525;
    --primary-color: #ab9ff2;
    /* Phantom Purple-ish */
    --secondary-color: #292929;
    --accent-color: #ab9ff2;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-color: #333333;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #eab308;
    --glass-bg: rgba(28, 28, 28, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* Full-width container */
.wallet-bank-fullwidth {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 99999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Content Container */
.wallet-content {
    padding: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    flex: 1;
    box-sizing: border-box;
}

/* Header */
.wallet-bank-header {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.wallet-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.wallet-logo i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 5px;
    background: var(--bg-card);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.desktop-nav .wallet-tab-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-nav .wallet-tab-btn i {
    font-size: 1rem;
}

.desktop-nav .wallet-tab-btn:hover {
    color: var(--text-main);
    background: var(--bg-card-hover);
}

.desktop-nav .wallet-tab-btn.active {
    background: var(--secondary-color);
    color: var(--text-main);
}

/* User Menu */
.wallet-user-menu {
    position: relative;
}

.user-menu-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.user-menu-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 180px;
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.user-menu-dropdown.show {
    display: block;
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.user-menu-dropdown a:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
}

/* Balance Card */
.wallet-balance-card {
    background: linear-gradient(180deg, #2a2a2a 0%, #1c1c1c 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.balance-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.balance-amount .currency {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
}

.account-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.account-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.account-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.account-item .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Action Buttons (Quick Actions) */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.action-btn .icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.action-btn:hover .icon-circle {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
}

.action-btn:hover {
    color: var(--text-main);
}

/* Forms */
.wallet-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-primary {
    width: 100%;
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Lists (Transactions, Deposits) */
.transaction-item,
.deposit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.transaction-item:hover,
.deposit-item:hover {
    background: var(--bg-card-hover);
}

.transaction-item:last-child,
.deposit-item:last-child {
    border-bottom: none;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 15px;
}

.transaction-icon.received {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.transaction-icon.sent {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.transaction-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-main);
}

.transaction-info p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.transaction-amount {
    font-weight: 600;
    font-size: 1rem;
}

.transaction-amount.received {
    color: var(--success-color);
}

.transaction-amount.sent {
    color: var(--text-main);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
    justify-content: space-around;
    z-index: 1000;
}

.mobile-nav .wallet-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    cursor: pointer;
}

.mobile-nav .wallet-tab-btn i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.mobile-nav .wallet-tab-btn.active {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .wallet-bank-fullwidth {
        padding-bottom: 70px;
    }

    .wallet-content {
        padding: 15px;
    }

    .wallet-balance-card {
        padding: 25px;
    }

    .balance-amount {
        font-size: 2.5rem;
    }
}

/* Auth Pages */
.wallet-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    padding: 20px;
}

.wallet-auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-tabs {
    display: flex;
    background: var(--bg-dark);
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
}

.auth-tab-btn.active {
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}