/* Claude the Dev - Modern Light Theme */

:root {
    --primary: #E07A3C;
    --primary-light: #F5A66E;
    --primary-dark: #C65D25;
    --primary-bg: rgba(224, 122, 60, 0.08);

    --bg: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-subtle: #F1F3F4;

    --text: #1A1A1A;
    --text-secondary: #5F6368;
    --text-muted: #9AA0A6;

    --border: #E8EAED;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);

    --success: #34A853;
    --error: #EA4335;
    --info: #4285F4;

    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* NAVBAR */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

.navbar.compact {
    /* Not sticky - scrolls with page */
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.logo span {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    padding: 6px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

/* CA Button - Orange theme */
.ca-button {
    background: var(--primary);
    border: 1px solid var(--primary-dark);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.ca-button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.ca-button.copied {
    background: var(--success);
    border-color: var(--success);
}

.ca-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 500;
}

.ca-address {
    font-size: 11px;
    background: transparent;
    color: #fff;
    font-family: monospace;
    font-weight: 600;
}

.ca-button svg {
    color: rgba(255, 255, 255, 0.8);
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* TWO COLUMN LAYOUT */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 1200px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
}

/* HERO */
.hero-section {
    text-align: center;
    padding: 48px 0;
}

.hero-section h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.hero-section p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ANALYZE SECTION */
.analyze-section {
    margin-bottom: 32px;
}

.analyze-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.tweet-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tweet-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.tweet-input::placeholder {
    color: var(--text-muted);
}

.analyze-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.analyze-btn:hover {
    background: var(--primary-dark);
}

.analyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

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

.modal-body {
    padding: 24px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-input-file {
    font-size: 14px;
    color: var(--text-secondary);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.btn-primary {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--bg-subtle);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* XP SECTION */
.xp-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

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

.xp-level {
    display: flex;
    align-items: center;
    gap: 12px;
}

.level-badge {
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 20px;
}

.xp-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.xp-next {
    font-size: 13px;
    color: var(--text-muted);
}

.xp-bar {
    height: 8px;
    background: var(--bg-subtle);
    border-radius: 4px;
    overflow: hidden;
}

.xp-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.level-badge.level-up-flash {
    animation: levelUp 0.5s ease;
}

@keyframes levelUp {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); background: var(--success); }
}

/* STATS ROW - always 3 columns (2 rows of 3) */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-icon.green {
    background: var(--success);
}

.stat-icon.orange {
    background: var(--primary);
}

.stat-icon.red {
    background: var(--error);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.stat-value.green {
    color: var(--success);
}

.stat-value.orange {
    color: var(--primary);
}

.stat-value.red {
    color: var(--error);
}

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

/* SECTION CARD */
.section-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
}

.badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(52, 168, 83, 0.1);
    color: var(--success);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* TOKENS GRID */
.tokens-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px;
}

.empty-tokens {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
}

.empty-tokens p {
    margin-top: 12px;
}

.token-card {
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
}

.token-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.token-card .token-info {
    padding: 12px;
}

.token-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-ticker {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* TERMINAL - Light theme */
.terminal-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
}

.terminal-header {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.terminal-header h2 {
    color: var(--text);
}

.terminal-output {
    min-height: 300px;
    max-height: 450px;
    overflow-y: auto;
    padding: 12px 16px;
    background: var(--bg-white);
    font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.terminal-line {
    padding: 2px 0;
    color: var(--text-secondary);
    word-break: break-word;
}

.terminal-line .time {
    color: var(--text-muted);
    margin-right: 8px;
}

.terminal-line.info {
    color: var(--info);
}

.terminal-line.success {
    color: var(--success);
}

.terminal-line.error {
    color: var(--error);
}

.terminal-line.warning {
    color: #E6A700;
}

.terminal-line.system {
    color: var(--text-muted);
    font-style: italic;
}

.terminal-line.tweet {
    color: #1DA1F2;
    border-left: 2px solid #1DA1F2;
    padding-left: 8px;
    margin: 4px 0;
    background: rgba(29, 161, 242, 0.05);
}

.terminal-line.result {
    color: var(--success);
    padding-left: 16px;
}

.terminal-line.rejected {
    color: var(--error);
    padding-left: 16px;
}

.terminal-line a {
    color: var(--primary);
    text-decoration: none;
}

.terminal-line a:hover {
    text-decoration: underline;
}

/* Legacy activity styles */
.activity-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.scanning {
    text-align: center;
    color: var(--text-secondary);
}

.scanning p {
    margin: 16px 0;
}

.spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress {
    width: 40%;
    height: 100%;
    background: var(--primary);
    animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ACTIVITY CARD */
.activity-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.activity-card.show {
    opacity: 1;
    transform: translateY(0);
}

.activity-card.rejected {
    border-left: 3px solid var(--error);
    opacity: 0.7;
}

.activity-card.success {
    border-left: 3px solid var(--success);
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.activity-user {
    font-weight: 600;
    color: var(--text);
}

.activity-time {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: auto;
}

.activity-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.activity-link {
    display: block;
    color: var(--info);
    font-size: 12px;
    text-decoration: none;
    margin-bottom: 8px;
    word-break: break-all;
}

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

.activity-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.activity-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.result-item {
    padding: 8px 12px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    font-size: 13px;
    border-left: 3px solid var(--border);
}

.result-item.ok {
    border-left-color: var(--success);
}

.result-item.error {
    border-left-color: var(--error);
}

.result-item.success {
    border-left-color: var(--success);
    background: rgba(52, 168, 83, 0.1);
}

.pump-link {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.2s;
}

.pump-link:hover {
    background: var(--primary-dark);
}

/* SIMPLE LOG ENTRIES */
.activity-log {
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: 'Monaco', 'Consolas', monospace;
    background: var(--bg-white);
    border-left: 3px solid var(--border);
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.activity-log.show {
    opacity: 1;
    transform: translateY(0);
}

.activity-log.ok {
    border-left-color: var(--success);
}

.activity-log.error, .activity-log.err {
    border-left-color: var(--error);
    background: rgba(234, 67, 53, 0.05);
}

.activity-log .log-time {
    color: var(--text-muted);
    margin-right: 8px;
    font-size: 11px;
}

/* DOCS GRID */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
}

.doc-card {
    padding: 24px;
    background: var(--bg-subtle);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.doc-card:hover {
    background: var(--primary-bg);
}

.doc-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.doc-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.doc-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* DISCLAIMER */
.disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: rgba(234, 67, 53, 0.05);
    border: 1px solid rgba(234, 67, 53, 0.2);
    border-radius: var(--radius);
    margin-top: 32px;
}

.disclaimer svg {
    flex-shrink: 0;
    color: var(--error);
}

.disclaimer p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CHAT FAB */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    padding: 0;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(224, 122, 60, 0.4);
    transition: all 0.3s;
    z-index: 1000;
    overflow: hidden;
}

.chat-fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 24px rgba(224, 122, 60, 0.5);
}

.chat-fab.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.fab-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CHAT PANEL */
.chat-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 500px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s;
    overflow: hidden;
}

.chat-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--primary);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.chat-avatar-large {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.chat-close {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    transition: all 0.2s;
}

.chat-close:hover {
    background: rgba(255,255,255,0.3);
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: var(--bg-subtle);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.message-content {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.5;
}

.message.bot .message-content {
    background: var(--bg-white);
    border: 1px solid var(--border);
}

.message.user .message-content {
    background: var(--primary);
    color: white;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid var(--border);
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.chat-input-area input:focus {
    border-color: var(--primary);
}

.chat-input-area button {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-input-area button:hover {
    background: var(--primary-dark);
}

/* CHARTS ROW */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.chart-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

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

.chart-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.chart-value {
    font-size: 16px;
    font-weight: 700;
}

.chart-value.green {
    color: var(--success);
}

.chart-value.red {
    color: var(--error);
}

.chart-container {
    height: 200px;
    position: relative;
}

/* SLIDER CONTROLS */
.slider-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text);
}

.slider-btn:hover:not(:disabled) {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.slider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* TOKENS SLIDER */
.tokens-slider-wrapper {
    padding: 20px;
    overflow: hidden;
}

.tokens-slider {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
}

.tokens-slider .token-card {
    flex: 0 0 calc((100% - 64px) / 5);
    min-width: 150px;
}

.tokens-slider .empty-tokens {
    width: 100%;
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
}

/* DATA TABLE (unified for tokens & trades) */
.data-table {
    padding: 0;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr 0.8fr;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.table-body {
    max-height: 350px;
    overflow-y: auto;
}

.table-empty {
    padding: 48px;
    text-align: center;
    color: var(--text-muted);
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr 0.8fr;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    align-items: center;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: var(--bg-subtle);
}

.token-name {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-symbol {
    font-weight: 600;
    color: var(--primary);
}

.token-mint {
    font-family: monospace;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

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

/* TRADES TABLE (legacy support) */
.trades-table {
    padding: 0;
}

.trades-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 12px 20px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.trades-body {
    max-height: 300px;
    overflow-y: auto;
}

.trades-empty {
    padding: 48px;
    text-align: center;
    color: var(--text-muted);
}

.trade-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    align-items: center;
}

.trade-row:last-child {
    border-bottom: none;
}

.trade-row:hover {
    background: var(--bg-subtle);
}

.trade-token {
    font-weight: 600;
    color: var(--text);
}

.trade-token small {
    font-weight: 500;
    color: var(--primary);
    margin-left: 4px;
}

.trade-type {
    font-weight: 600;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    width: fit-content;
}

.trade-type.buy {
    background: rgba(52, 168, 83, 0.1);
    color: var(--success);
}

.trade-type.sell {
    background: rgba(234, 67, 53, 0.1);
    color: var(--error);
}

.trade-amount {
    color: var(--text-secondary);
}

.trade-pnl {
    font-weight: 600;
}

.trade-pnl.green {
    color: var(--success);
}

.trade-pnl.red {
    color: var(--error);
}

.trade-time {
    color: var(--text-muted);
    font-size: 12px;
}

/* STAT VALUE COLORS */
.stat-value.green {
    color: var(--success);
}

.stat-value.red {
    color: var(--error);
}

.stat-icon.green {
    background: var(--success);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .charts-row {
        grid-template-columns: 1fr;
    }
    .tokens-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tokens-slider .token-card {
        flex: 0 0 calc((100% - 32px) / 3);
    }
    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trades-header,
    .trade-row {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    .trade-time {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 28px;
    }
    .hero-section p {
        font-size: 16px;
    }
    .stats-row {
        grid-template-columns: 1fr;
    }
    .tokens-grid {
        grid-template-columns: 1fr;
    }
    .tokens-slider .token-card {
        flex: 0 0 calc((100% - 16px) / 2);
    }
    .docs-grid {
        grid-template-columns: 1fr;
    }
    .trades-header,
    .trade-row {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .trade-pnl {
        display: none;
    }
    .chat-panel {
        width: calc(100vw - 32px);
        height: calc(100vh - 100px);
        bottom: 16px;
        right: 16px;
    }
    .chat-fab {
        bottom: 16px;
        right: 16px;
    }
    .fab-label {
        display: none;
    }
}
