/* Solana Portfolio Application Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-green: #14F195;
    --accent-purple: #9945FF;
    --bg-gradient: linear-gradient(135deg, #14F195 0%, #9945FF 100%);
    --text-primary: #333;
    --text-secondary: #666;
    --bg-primary: rgba(255, 255, 255, 0.98);
    --bg-secondary: #f9fafb;
    --bg-card: white;
    --border-color: #e0e0e0;
    --shadow: rgba(0,0,0,0.1);
    --shadow-heavy: rgba(0,0,0,0.3);
    --info-bg: #f0fff9;
    --info-border: #14F195;
    --accent-red: #ef4444;
    --accent-cyan: #06b6d4;
    --bg-tertiary: #f3f4f6;
}

[data-theme="dark"] {
    --bg-gradient: linear-gradient(135deg, #0a3622 0%, #2d1b69 100%);
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --bg-primary: rgba(31, 41, 55, 0.98);
    --bg-secondary: #1f2937;
    --bg-card: #374151;
    --border-color: #4b5563;
    --shadow: rgba(0,0,0,0.3);
    --shadow-heavy: rgba(0,0,0,0.5);
    --info-bg: rgba(20, 241, 149, 0.1);
    --info-border: #14F195;
    --bg-tertiary: #4b5563;
}

html {
    height: 100%;
    background: var(--bg-gradient);
    background-attachment: fixed;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    transition: background 0.3s ease;
    background: transparent;
}

/* Auth styles */
.auth-container {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: none;
}

.auth-container.show {
    display: block;
}

.logo {
    font-size: 48px;
    margin-bottom: 10px;
}

h1 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.google-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    width: 100%;
}

.google-btn:hover {
    background: var(--bg-secondary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.wallet-btn {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-purple) 100%);
    color: white;
}

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

.divider {
    margin: 20px 0;
    color: #999;
    font-size: 14px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.loading {
    color: var(--text-secondary);
    margin: 20px 0;
    text-align: center;
    color: white;
    padding: 40px;
}

.error {
    background: rgba(254, 226, 226, 0.3);
    color: #ef4444;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid #fcc;
}

/* Main app styles */
.app-container {
    display: none;
    min-height: 100vh;
    position: relative;
}

.app-container.show {
    display: flex;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
}

.app-header.show {
    display: flex;
}

.header-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    font-size: 28px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.wallet-connect-btn {
    padding: 8px 16px;
    background: var(--accent-purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-connect-btn:hover {
    background: #7a37cc;
    transform: translateY(-1px);
}

.wallet-connect-btn.connected {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.wallet-connect-btn.connected:hover {
    background: var(--bg-secondary);
}

.tier-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 4px;
}

.tier-badge.free {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.tier-badge.premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.tier-status-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    margin-right: 10px;
    transition: all 0.3s;
}

.tier-status-btn.free {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.tier-status-btn.free:hover {
    background: var(--accent-purple);
    color: white;
    transform: translateY(-1px);
}

.tier-status-btn.premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.tier-status-btn.premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* On mobile, only make the star yellow for premium */
@media (max-width: 768px) {
    .tier-status-btn.premium {
        background: var(--accent-green);
        color: white;
    }
    
    .tier-status-btn.premium #tierStatusText {
        color: white;
    }
}

.header-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.header-btn:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text-primary);
}

.header-btn.active {
    background: rgba(79, 209, 197, 0.1);
    color: #4FD1C5;
}

.header-btn svg {
    width: 24px;
    height: 24px;
}

.sidebar {
    width: 350px;
    min-width: 250px;
    max-width: 500px;
    background: var(--bg-card);
    padding: 30px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    position: relative;
    resize: horizontal;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #00D975;
}

.resize-handle {
    position: fixed;
    top: 60px;
    bottom: 0;
    width: 5px;
    cursor: col-resize;
    background: transparent;
    transition: background 0.2s;
    z-index: 100;
}

.resize-handle:hover {
    background: rgba(20, 241, 149, 0.3);
}

.resize-handle:active {
    background: rgba(20, 241, 149, 0.5);
}

.main-content {
    flex: 1;
    padding: 100px 40px 40px 40px;
    min-height: 100vh;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .app-container {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        top: 60px;
        left: -100%;
        height: calc(100vh - 60px);
        width: 90%;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        resize: none;
        margin-top: 0;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .menu-toggle-header {
        display: inline-flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .main-content {
        padding: 60px 0 0 0;
    }
    
    .resize-handle {
        display: none;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .overlay.active {
        display: block;
    }
    
    /* Fix overlapping value and title on mobile */
    .result-card {
        padding: 15px !important;
        display: flex;
        flex-direction: column;
        border-radius: 0 !important;
        margin: 10px !important;
        margin-bottom: 1px !important;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
    }
    
    .wallet-detail-value {
        position: static !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        order: -1; /* Move value section above title */
    }
    
    .wallet-detail-amount {
        font-size: 24px;
    }
    
    .wallet-detail-buttons {
        margin-top: 0;
    }
    
    /* Ensure h2 title comes after value on mobile */
    .result-card h2 {
        order: 0;
    }
    
    .result-card > *:not(.wallet-detail-value):not(h2) {
        order: 1;
    }
    
    /* Minimize padding on mobile for more content space */
    #settingsModal .result-card {
        padding: 10px;
    }
    
    #settingsModal .modal-body {
        padding: 10px;
    }
}

h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 28px;
}

.add-wallet-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-green);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.add-wallet-btn:hover {
    background: #00D975;
    transform: translateY(-2px);
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-item {
    background: var(--bg-card);
    padding: 12px;
    padding-left: 40px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s;
    cursor: default;
    position: relative;
}

.drag-handle {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: move;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.drag-handle:hover {
    opacity: 0.7;
}

.drag-handle::before,
.drag-handle::after,
.drag-handle span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
}

.wallet-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.wallet-item.drag-over {
    border-color: var(--accent-green);
    background: rgba(20, 241, 149, 0.1);
}

.drag-placeholder {
    height: 90px;
    margin-bottom: 10px;
    border: 2px dashed var(--accent-green);
    border-radius: 8px;
    background: rgba(20, 241, 149, 0.1);
    transition: all 0.2s ease;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

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

.wallet-value-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.wallet-value {
    font-weight: bold;
    color: var(--accent-green);
    font-size: 14px;
}

.wallet-cache-time {
    font-size: 10px;
    color: #999;
}

.wallet-name {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    user-select: none;
    position: relative;
}

.wallet-name:hover::after {
    content: "Double-click to edit";
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 10px;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.wallet-name.editing {
    background: var(--bg-card);
    border: 1px solid var(--accent-green);
    outline: none;
    cursor: text;
    user-select: text;
}

.wallet-name.editing::after {
    display: none;
}

.wallet-item:hover {
    border-color: var(--accent-green);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wallet-item.active {
    border-color: var(--accent-green);
    background: rgba(20, 241, 149, 0.1);
    position: relative;
    box-shadow: 0 2px 8px rgba(20, 241, 149, 0.3);
}

.wallet-address {
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
    line-height: 1.4;
    margin-top: 3px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.remove-wallet {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-wallet:hover {
    background: #dc2626;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-body {
    margin-bottom: 20px;
}

.modal-body textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
    background: var(--bg-card);
    color: var(--text-primary);
}

.modal-body textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}

.modal-body p {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent-green);
    color: #000;
}

.btn-primary:hover {
    background: #00D975;
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.result-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
}

.wallet-detail-value {
    position: absolute;
    top: 30px;
    right: 30px;
    text-align: right;
    z-index: 10;
}

.wallet-detail-amount {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-detail-cache {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.wallet-detail-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.wallet-detail-refresh {
    background: var(--accent-green);
    color: #000;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-detail-refresh svg {
    width: 16px;
    height: 16px;
}

.wallet-detail-refresh:hover {
    background: #00D975;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(20, 241, 149, 0.3);
}

.wallet-detail-remove {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-detail-remove svg {
    width: 18px;
    height: 18px;
}

.wallet-detail-remove:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.token-list {
    margin-top: 20px;
}

.token-item {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.token-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.token-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
    overflow: hidden;
}

.token-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.token-details {
    display: flex;
    flex-direction: column;
}

.token-name {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 16px;
}

.token-amount {
    color: var(--text-secondary);
    font-size: 14px;
}

.token-value {
    text-align: right;
}

.token-price {
    color: var(--text-secondary);
    font-size: 12px;
}

.token-eur {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 16px;
}

/* Tabs styles */
.tabs-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid #e5e7eb;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab-button:hover {
    color: var(--text-primary);
}

.tab-button.active {
    color: var(--accent-green);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-green);
}

.tab-content {
    display: none;
    margin-top: 20px;
}

.tab-content.active {
    display: block;
}

/* NFT Grid */
.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.nft-item {
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.nft-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nft-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-purple));
}

.nft-info {
    padding: 10px;
}

.nft-name {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nft-collection {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.nft-count {
    display: inline-block;
    background: var(--accent-green);
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 10px;
}

.spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    opacity: 0.8;
}

.total-header {
    margin: 0 0 20px 0;
    padding: 15px;
    background: rgba(20, 241, 149, 0.1);
    border-radius: 8px;
    border: 2px solid var(--accent-green);
    cursor: pointer;
    transition: all 0.3s;
}

.total-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 241, 149, 0.3);
}

.total-label {
    color: var(--text-secondary);
    font-size: 12px;
}

.grand-total {
    font-size: 28px;
    color: var(--accent-green);
    font-weight: bold;
}

/* Token Details Modal */
.token-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.token-details-content {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
}

.token-details-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.token-details-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    overflow: hidden;
}

.token-details-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.token-details-info {
    flex: 1;
}

.token-details-symbol {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.token-details-total {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.token-details-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-details-close:hover {
    color: var(--text-primary);
}

.wallet-distribution {
    margin-top: 20px;
}

.wallet-distribution-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s;
    cursor: pointer;
}

.wallet-distribution-item:hover {
    background: rgba(20, 241, 149, 0.1);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(20, 241, 149, 0.2);
}

.wallet-distribution-name {
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    text-decoration: none;
}

.wallet-distribution-name:hover {
    color: var(--accent-green);
}

.wallet-distribution-amount {
    font-weight: bold;
    color: var(--accent-green);
    font-size: 16px;
}

/* Transaction styles */
.transactions-list {
    padding: 20px 0;
}

.transaction-item {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.transaction-item:hover {
    background: rgba(20, 241, 149, 0.1);
    box-shadow: 0 2px 8px rgba(20, 241, 149, 0.1);
}

.tx-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tx-type {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 12px;
    padding: 2px 8px;
    background: #e5e7eb;
    border-radius: 4px;
}

.tx-date {
    color: var(--text-secondary);
    font-size: 12px;
}

.tx-tokens {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.tx-token {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.tx-token:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tx-token.tx-in {
    background: #d1fae5;
    color: #065f46;
}

.tx-token.tx-out {
    background: #fee2e2;
    color: #991b1b;
}

.tx-direction {
    font-weight: 600;
    font-size: 16px;
}

.tx-amount {
    font-weight: 500;
}

.tx-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.tx-fee {
    color: var(--text-secondary);
    font-size: 12px;
}

.tx-link {
    color: var(--accent-green);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}

.tx-link:hover {
    text-decoration: underline;
}

/* Info Box Styles */
.info-box {
    background: var(--info-bg);
    border: 2px solid var(--info-border);
    border-radius: 8px;
    padding: 20px;
    margin: 40px 0 20px 0;
    position: relative;
}

.info-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.info-stat {
    text-align: center;
}

.info-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-green);
}

.info-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.wallet-info {
    flex: 1;
}

.token-item.clickable {
    cursor: pointer;
    transition: all 0.3s;
}

.token-item.clickable:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Menu toggle for mobile */
.menu-toggle-header {
    display: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle-header span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle-header {
        display: block;
    }
}