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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0a0e27, #1a1f3a);
    color: #fff;
    min-height: 100vh;
}

.header {
    background: rgba(21, 25, 50, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dragon-icon {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status.online {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status.offline {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.6);
}

.module-card {
    background: rgba(21, 25, 50, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--card-color, #667eea);
}

.module-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.module-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: #1a1f3a;
    margin: 2% auto;
    padding: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

#contract-input {
    width: 100%;
    padding: 1rem;
    margin: 1rem 0;
    background: rgba(21, 25, 50, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
}

#analyze-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

#analyze-btn:hover {
    opacity: 0.9;
}

.results {
    margin-top: 1.5rem;
}

/* Table Styles */
.traders-table {
    width: 100%;
    margin-top: 1rem;
    overflow-x: auto;
}

.traders-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(21, 25, 50, 0.6);
    border-radius: 12px;
    overflow: hidden;
}

.traders-table th {
    background: rgba(102, 126, 234, 0.3);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(102, 126, 234, 0.5);
    color: #fff;
}

.traders-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.traders-table tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.traders-table a {
    color: #667eea;
    text-decoration: none;
}

.traders-table a:hover {
    text-decoration: underline;
}

.profit-positive {
    color: #10b981;
    font-weight: 600;
}

.profit-negative {
    color: #ef4444;
    font-weight: 600;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Enhanced Table Controls */
.traders-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(21, 25, 50, 0.6);
    border-radius: 12px;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Address Cell */
.address-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.copy-btn:hover {
    opacity: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pagination button:hover {
    opacity: 0.9;
}

.page-info {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Sortable Headers */
.traders-table th {
    cursor: pointer;
    user-select: none;
}

.traders-table th:hover {
    background: rgba(102, 126, 234, 0.4);
}

/* Bundle Finder Styles */
.bundle-result {
    padding: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.bundle-details {
    margin-top: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(21, 25, 50, 0.5);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.detail-row span:first-child {
    color: rgba(255, 255, 255, 0.7);
}

.detail-row span:last-child {
    font-weight: 600;
    color: #667eea;
}

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

.modal-content::-webkit-scrollbar-track {
    background: rgba(21, 25, 50, 0.6);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

.module-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--card-color), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.module-card:hover::before { opacity: 1; }
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.module-chain {
    padding: 0.4rem 0.9rem;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.3);
}
.module-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}
.footer {
    background: rgba(21, 25, 50, 0.6);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}
.module-icon {
    width: 60px; height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--card-color), var(--card-color-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.bulk-wallet-results { padding: 1rem; }
.results-header { text-align: center; margin-bottom: 2rem; }
.results-header h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.wallets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; }
.wallet-card { background: rgba(21, 25, 50, 0.6); border: 1px solid rgba(102, 126, 234, 0.2); border-radius: 12px; padding: 1.5rem; transition: all 0.3s; }
.wallet-card:hover { transform: translateY(-4px); border-color: rgba(102, 126, 234, 0.4); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.wallet-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(102, 126, 234, 0.2); }
.wallet-number { background: rgba(102, 126, 234, 0.2); padding: 0.3rem 0.7rem; border-radius: 8px; font-weight: 700; }
.wallet-address { color: #667eea; text-decoration: none; font-weight: 600; }
.wallet-address:hover { color: #764ba2; }
.copy-btn-small { background: none; border: none; cursor: pointer; font-size: 1rem; }
.wallet-stats { display: flex; flex-direction: column; gap: 0.75rem; }
.stat-row { display: flex; justify-content: space-between; align-items: center; }
.stat-row span:first-child { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.stat-row span:last-child { font-weight: 600; }
.positive { color: #10b981; }
.negative { color: #ef4444; }
.wallet-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag { background: rgba(102, 126, 234, 0.15); color: #667eea; padding: 0.3rem 0.7rem; border-radius: 8px; font-size: 0.85rem; }

/* Scan All Tx Styles */
.scan-results {
    margin-top: 2rem;
}

.wallets-list {
    display: grid;
    gap: 0.5rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.wallet-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    transition: all 0.2s;
}

.wallet-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(4px);
}

.wallet-index {
    color: rgba(255,255,255,0.5);
    font-size: 0.9em;
    min-width: 40px;
}

.wallet-link {
    flex: 1;
    color: #14F195;
    text-decoration: none;
    font-family: 'Courier New', monospace;
}

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

/* Timestamp Tx Styles */
.timestamp-results .time-range {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.9em;
    color: rgba(255,255,255,0.7);
}

.transactions-timeline {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.tx-timeline-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.05);
    border-left: 3px solid;
    border-radius: 4px;
}

.tx-timeline-item.tx-buy { border-left-color: #14F195; }
.tx-timeline-item.tx-sell { border-left-color: #FF6B6B; }
.tx-timeline-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(4px);
}

.tx-time {
    min-width: 120px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85em;
}

.tx-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.tx-event {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
}

.tx-buy .tx-event {
    background: rgba(20,241,149,0.2);
    color: #14F195;
}

.tx-sell .tx-event {
    background: rgba(255,107,107,0.2);
    color: #FF6B6B;
}

.tx-wallet {
    font-family: 'Courier New', monospace;
    color: rgba(255,255,255,0.8);
}

.tx-price { color: #FFE66D; font-weight: 500; }

.tx-link {
    margin-left: auto;
    text-decoration: none;
    opacity: 0.6;
}

.tx-link:hover { opacity: 1; }


/* === Enhanced Wallet Metrics Styles === */
.bulk-wallet-results { width: 100%; }
.results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem; border-radius: 12px; margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}
.results-header h3 { margin: 0 0 1rem 0; color: white; font-size: 1.5rem; }

.filters-panel {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    background: rgba(255,255,255,0.1); padding: 1rem; border-radius: 8px;
}
.filters-panel label { display: flex; flex-direction: column; gap: 0.5rem; color: white; font-weight: 500; }
.filters-panel input[type="range"] { width: 150px; cursor: pointer; }
.filters-panel select { padding: 0.5rem; border-radius: 6px; border: none; background: white; cursor: pointer; }
#score-value { display: inline-block; min-width: 30px; text-align: center; background: rgba(255,255,255,0.2); padding: 0.2rem 0.5rem; border-radius: 4px; margin-left: 0.5rem; }

.wallets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); gap: 1.5rem; }
.wallet-card { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border-radius: 12px; padding: 1.5rem; border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.wallet-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); border-color: rgba(102, 126, 234, 0.5); }
.wallet-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.wallet-rank { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 0.25rem 0.75rem; border-radius: 6px; font-weight: bold; }

.wallet-address { color: #60a5fa; text-decoration: none; font-family: 'Courier New', monospace; font-weight: 500; transition: color 0.2s; }
.wallet-address:hover { color: #93c5fd; text-decoration: underline; }
.copy-btn-small { background: rgba(255,255,255,0.1); border: none; padding: 0.25rem 0.5rem; border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.copy-btn-small:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.metric-card { background: rgba(255,255,255,0.05); padding: 0.75rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); text-align: center; }
.metric-card.primary { grid-column: span 3; background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%); }

.metric-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.metric-value { font-size: 1.25rem; font-weight: bold; color: white; }
.metric-card.primary .metric-value { font-size: 2rem; }
.metric-value span { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.score-elite { color: #10b981 !important; text-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
.score-good { color: #3b82f6 !important; }
.score-avg { color: #f59e0b !important; }
.score-poor { color: #ef4444 !important; }
.risk-low { color: #10b981 !important; }
.risk-medium { color: #f59e0b !important; }
.risk-high { color: #ef4444 !important; }

.wallet-stats { background: rgba(255,255,255,0.03); padding: 1rem; border-radius: 8px; }
.stat-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.stat-row:last-child { border-bottom: none; }
.stat-row span:first-child { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.stat-row span:last-child { color: white; font-weight: 500; }
.positive { color: #10b981 !important; }
.negative { color: #ef4444 !important; }

.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.tag { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.75rem; }
@media (max-width: 768px) {
    .wallets-grid { grid-template-columns: 1fr; }
    .filters-panel { flex-direction: column; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .metric-card.primary { grid-column: span 2; }
}


/* Enhanced Wallet Analyzer Styles */
.results-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.filters-panel {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.filters-panel label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.filters-panel input[type="range"] {
    width: 200px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.filters-panel input[type="range"]::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.filters-panel select {
    padding: 0.5rem 1rem;
    background: rgba(21, 25, 50, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.filters-panel #score-value {
    font-weight: bold;
    color: #667eea;
    margin-left: 0.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.metric-card {
    background: linear-gradient(135deg, rgba(21, 25, 50, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.4);
}

.metric-card.primary {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.metric-card.primary .metric-value {
    font-size: 2.5rem;
}

.metric-value span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Score Colors */
.score-elite {
    color: #10b981 !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.score-good {
    color: #3b82f6 !important;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.score-avg {
    color: #f59e0b !important;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.score-poor {
    color: #ef4444 !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Risk Level Colors */
.risk-low {
    color: #10b981 !important;
}

.risk-medium {
    color: #f59e0b !important;
}

.risk-high {
    color: #ef4444 !important;
}

.wallet-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-rank {
    font-size: 1.2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
}

.wallet-address {
    flex: 1;
    font-family: 'Courier New', monospace;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.wallet-address:hover {
    color: #764ba2;
}

/* ========================================
   PORTFOLIO VIEWER STYLES
   ======================================== */
.portfolio-container {
    padding: 2rem;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 2rem;
}

.portfolio-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wallet-address-display {
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.portfolio-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.portfolio-stat-card {
    background: linear-gradient(135deg, rgba(21, 25, 50, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.portfolio-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.portfolio-stat-card.primary {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
}

.stat-icon {
    font-size: 2rem;
    min-width: 48px;
    text-align: center;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.primary .stat-value {
    font-size: 2.5rem;
}

.holdings-section {
    margin-top: 2rem;
}

.holdings-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.holdings-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(21, 25, 50, 0.6);
    border-radius: 12px;
    overflow: hidden;
}

.holdings-table thead {
    background: rgba(102, 126, 234, 0.2);
}

.holdings-table th {
    padding: 1rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.holdings-table td {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.holdings-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.token-address {
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-weight: 500;
}

.value-usd {
    font-weight: 600;
    color: #10b981;
}

/* ========================================
   PERFORMANCE REPORT STYLES
   ======================================== */
.performance-container {
    padding: 2rem;
}

.performance-header {
    text-align: center;
    margin-bottom: 2rem;
}

.performance-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFA500 0%, #FF6B6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.performance-grade {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 165, 0, 0.4);
    border-radius: 20px;
    font-weight: 600;
    margin-top: 1rem;
}

.performance-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.perf-stat-card {
    background: linear-gradient(135deg, rgba(21, 25, 50, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.perf-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 165, 0, 0.4);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.2);
}

.perf-stat-card.primary {
    grid-column: span 2;
}

.perf-stat-card.positive {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border-color: rgba(16, 185, 129, 0.3);
}

.perf-stat-card.negative {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    border-color: rgba(239, 68, 68, 0.3);
}

.perf-stat-card .stat-value {
    font-size: 1.5rem;
}

.perf-stat-card.primary .stat-value {
    font-size: 2.5rem;
}

.positive .stat-value {
    color: #10b981;
}

.negative .stat-value {
    color: #ef4444;
}

.top-performers-section {
    margin-top: 2rem;
}

.top-performers-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.performers-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(21, 25, 50, 0.6);
    border-radius: 12px;
    overflow: hidden;
}

.performers-table thead {
    background: rgba(255, 165, 0, 0.2);
}

.performers-table th {
    padding: 1rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.performers-table td {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.performers-table tbody tr:hover {
    background: rgba(255, 165, 0, 0.1);
}

/* PORTFOLIO VIEWER */
.portfolio-container { padding: 2rem; max-width: 1400px; margin: 0 auto; }
.portfolio-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.portfolio-header h2 { font-size: 2rem; margin: 0; color: #fff; }
.portfolio-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.portfolio-stat-card { background: linear-gradient(135deg, rgba(21, 25, 50, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 1.5rem; display: flex; gap: 1rem; transition: all 0.3s ease; }
.portfolio-stat-card:hover { transform: translateY(-2px); border-color: rgba(102, 126, 234, 0.4); }
.portfolio-stat-card.primary { grid-column: span 2; background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%); }
.stat-icon { font-size: 2.5rem; }
.stat-content { flex: 1; }
.stat-label { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 0.5rem; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: #fff; }
.stat-subtitle { font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); margin-top: 0.25rem; }
.holdings-section { background: rgba(0, 0, 0, 0.2); border-radius: 12px; padding: 1.5rem; }
.holdings-section h3 { margin: 0 0 1rem 0; font-size: 1.25rem; color: #fff; }
.holdings-table table { width: 100%; border-collapse: collapse; }
.holdings-table th { text-align: left; padding: 0.75rem; background: rgba(255, 255, 255, 0.05); font-weight: 600; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.holdings-table td { padding: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.holdings-table .token-address { font-family: 'Courier New', monospace; color: #667eea; }
.holdings-table .value-usd { font-weight: 600; color: #10b981; }

/* PERFORMANCE REPORT */
.performance-container { padding: 2rem; max-width: 1400px; margin: 0 auto; }
.performance-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.performance-header h2 { font-size: 2rem; margin: 0; color: #fff; }
.performance-grade-badge { padding: 0.5rem 1rem; background: rgba(0, 0, 0, 0.3); border-radius: 20px; font-size: 1.25rem; font-weight: 600; }
.performance-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.performance-stat-card { background: linear-gradient(135deg, rgba(21, 25, 50, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 1.5rem; display: flex; gap: 1rem; transition: all 0.3s ease; }
.performance-stat-card:hover { transform: translateY(-2px); border-color: rgba(102, 126, 234, 0.4); }
.performance-stat-card.primary { grid-column: span 2; }
.performance-stat-card.positive { border-color: rgba(16, 185, 129, 0.3); }
.performance-stat-card.negative { border-color: rgba(239, 68, 68, 0.3); }
.top-performers-section { background: rgba(0, 0, 0, 0.2); border-radius: 12px; padding: 1.5rem; }
.top-performers-section h3 { margin: 0 0 1rem 0; font-size: 1.25rem; color: #fff; }
.performers-table table { width: 100%; border-collapse: collapse; }
.performers-table th { text-align: left; padding: 0.75rem; background: rgba(255, 255, 255, 0.05); font-weight: 600; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.performers-table td { padding: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.performers-table .positive { color: #10b981; font-weight: 600; }
.performers-table .negative { color: #ef4444; font-weight: 600; }

/* Portfolio Viewer Styles */
.portfolio-container {
    padding: 2rem;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 2rem;
}

.portfolio-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.portfolio-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: linear-gradient(135deg, rgba(21, 25, 50, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.2);
}

.summary-card.primary {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.card-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}

.card-value-large {
    font-size: 2.5rem;
    font-weight: bold;
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.card-sublabel {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.holdings-section {
    margin-top: 2rem;
}

.holdings-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.holdings-table table {
    width: 100%;
    background: rgba(21, 25, 50, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

.holdings-table th {
    background: rgba(102, 126, 234, 0.2);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.holdings-table td {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.value-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.value-cell .percentage {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 1rem;
}

/* Performance Report Styles */
.performance-container {
    padding: 2rem;
}

.performance-header {
    text-align: center;
    margin-bottom: 2rem;
}

.performance-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.performance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.perf-card {
    background: linear-gradient(135deg, rgba(21, 25, 50, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.perf-card:hover {
    transform: translateY(-2px);
}

.perf-card.primary {
    grid-column: span 2;
}

.perf-card.positive .card-value-large {
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.perf-card.negative .card-value-large {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.top-performers {
    margin-top: 2rem;
}

.top-performers h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.top-performers table {
    width: 100%;
    background: rgba(21, 25, 50, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

.top-performers th {
    background: rgba(102, 126, 234, 0.2);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.top-performers td {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* PORTFOLIO VIEWER */
.portfolio-container { max-width: 1400px; margin: 0 auto; }

.portfolio-header {
    text-align: center; margin-bottom: 2rem; padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px; border: 1px solid rgba(102, 126, 234, 0.2);
}

.portfolio-header h2 { font-size: 2rem; margin-bottom: 1rem; color: #667eea; }

.wallet-address-display {
    font-family: 'Courier New', monospace; font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7); word-break: break-all;
}

.portfolio-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem; margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(21, 25, 50, 0.8), rgba(15, 23, 42, 0.8));
    padding: 1.5rem; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover { transform: translateY(-2px); border-color: rgba(102, 126, 234, 0.4); }

.stat-card.stat-primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(102, 126, 234, 0.4);
}

.stat-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 0.5rem; }

.stat-value { font-size: 1.8rem; font-weight: bold; color: #fff; }

.holdings-section { margin-top: 2rem; }

.holdings-section h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #667eea; }

.holdings-table, .performers-table {
    width: 100%; border-collapse: collapse;
    background: rgba(21, 25, 50, 0.6);
    border-radius: 8px; overflow: hidden;
}

.holdings-table th, .performers-table th {
    background: rgba(102, 126, 234, 0.2);
    padding: 1rem; text-align: left;
    font-weight: 600; color: #fff;
}

.holdings-table td, .performers-table td {
    padding: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.holdings-table tr:hover, .performers-table tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.token-address {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem; color: #667eea;
}

.percentage { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* PERFORMANCE REPORT */
.performance-container { max-width: 1400px; margin: 0 auto; }
.performance-header {
    text-align: center; margin-bottom: 2rem; padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px; border: 1px solid rgba(102, 126, 234, 0.2); position: relative;
}
.performance-header h2 { font-size: 2rem; margin-bottom: 1rem; color: #667eea; }
.performance-grade {
    position: absolute; top: 1rem; right: 1rem; padding: 0.5rem 1rem;
    border-radius: 8px; font-weight: bold; font-size: 1.2rem;
}

.grade-elite { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid #10b981; }
.grade-good { background: rgba(59, 130, 246, 0.2); color: #3b82f6; border: 1px solid #3b82f6; }
.grade-avg { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid #f59e0b; }
.grade-poor { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid #ef4444; }

.pnl-summary {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem; margin-bottom: 2rem;
}

.pnl-card {
    background: linear-gradient(135deg, rgba(21, 25, 50, 0.8), rgba(15, 23, 42, 0.8));
    padding: 1.5rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pnl-card:hover { transform: translateY(-2px); border-color: rgba(102, 126, 234, 0.4); }

.pnl-card.pnl-primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(102, 126, 234, 0.4);
}

.pnl-label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 0.5rem; }

.pnl-value { font-size: 2rem; font-weight: bold; }

.pnl-value.positive { color: #10b981; text-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
.pnl-value.negative { color: #ef4444; text-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }

.performance-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem; margin-bottom: 2rem;
}

.top-performers-section { margin-top: 2rem; }
.top-performers-section h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #667eea; }

.positive { color: #10b981; }
.negative { color: #ef4444; }
