/* styles.css - Complete styling for the trading platform */

/* ============================================ */
/* RESET & BASE STYLES */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ffaa;
    --secondary-color: #00dd88;
    --bg-dark: #0a0e27;
    --bg-light: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --border-color: #333;
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --danger-color: #ff4444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================ */
/* HEADER */
/* ============================================ */
header {
    background: var(--bg-light);
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info, .wallet-info {
    color: var(--primary-color);
    font-weight: 500;
}

/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */
.hidden {
    display: none !important;
}

.highlight {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================ */
/* LOADING OVERLAY */
/* ============================================ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 5px solid var(--bg-light);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loadingMessage {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* ============================================ */
/* MESSAGES (Success/Error) */
/* ============================================ */
.message {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 9998;
    animation: slideIn 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 400px;
}

.message.success {
    background: var(--success-color);
    color: var(--bg-dark);
}

.message.error {
    background: var(--danger-color);
    color: white;
}

@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================ */
/* LOGIN SECTION */
/* ============================================ */
.login-box {
    max-width: 450px;
    margin: 60px auto;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 255, 170, 0.1);
}

.login-box h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-box input {
    width: 100%;
    padding: 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.login-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider span {
    background: var(--bg-light);
    padding: 0 10px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

/* ============================================ */
/* BUTTONS */
/* ============================================ */
button:not(.token-actions button) {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 170, 0.3);
}

.btn-secondary {
    background: var(--bg-dark);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-telegram {
    width: 100%;
    background: #0088cc;
    color: white;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-telegram:hover {
    background: #006699;
}

.btn-buy {
    background: var(--success-color);
    color: var(--bg-dark);
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.btn-buy:hover {
    background: #00dd66;
}

.btn-sell {
    background: var(--danger-color);
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.btn-sell:hover {
    background: #dd2222;
}

.btn-close-position {
    background: var(--danger-color);
    color: white;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
}

.btn-sort {
    padding: 8px 16px;
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* ============================================ */
/* NAVIGATION TABS */
/* ============================================ */
.main-nav {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    background: var(--bg-light);
    padding: 10px;
    border-radius: 8px;
}

.nav-btn {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 1rem;
}

.nav-btn.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

.nav-btn:hover:not(.active) {
    border-color: var(--primary-color);
}

/* ============================================ */
/* CONTENT SECTIONS */
/* ============================================ */
.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ============================================ */
/* WALLET BANNER */
/* ============================================ */
.wallet-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallet-banner p {
    font-weight: 600;
    font-size: 1.1rem;
}

/* ============================================ */
/* SEARCH SECTION */
/* ============================================ */
.search-container {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
}

.search-container h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.search-bar input {
    flex: 1;
    padding: 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 6px;
    font-size: 1rem;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ============================================ */
/* ANALYSIS RESULTS */
/* ============================================ */
.analysis-container {
    margin-top: 30px;
    padding: 30px;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.analysis-container h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.analysis-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.mint-address {
    color: var(--text-secondary);
    font-size: 0.9rem;
    word-break: break-all;
    margin-bottom: 20px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.analysis-item {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid var(--border-color);
}

.analysis-item.success {
    border-left-color: var(--success-color);
}

.analysis-item.warning {
    border-left-color: var(--warning-color);
}

.analysis-item .icon {
    margin-right: 8px;
}

.analysis-actions {
    margin-top: 20px;
    text-align: center;
}

/* ============================================ */
/* TOKEN LISTS */
/* ============================================ */
.tokens-container {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
}

.tokens-container h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-dark);
    border-radius: 6px;
}

.sort-controls label {
    color: var(--text-secondary);
}

.sort-controls select {
    padding: 8px 12px;
    background: var(--bg-light);
    color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.token-list-container {
    min-height: 200px;
}

.token-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.no-tokens {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
}

.token-card {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.token-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 255, 170, 0.1);
}

.token-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.token-symbol {
    color: var(--text-secondary);
    font-weight: normal;
}

.token-info p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.token-info strong {
    color: var(--text-primary);
}

.token-mint-full {
    margin: 15px 0;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 6px;
}

.token-mint-full label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.mint-address-container {
    display: flex;
    gap: 5px;
    align-items: center;
}

.mint-input {
    flex: 1;
    padding: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: monospace;
    cursor: text;
}

.mint-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.copy-btn {
    padding: 8px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

/* ============================================ */
/* TRADING SECTION */
/* ============================================ */
.trading-container-wrapper {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
}

.no-selection {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-selection h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.token-header-info {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-dark);
    border-radius: 6px;
}

.token-mint-display,
.token-name-display {
    margin: 5px 0;
    word-break: break-all;
}

.trading-layout {
    display: grid;
    grid-template-columns: 1fr 400px; /* Chart takes remaining space, trading panel fixed width */
    gap: 20px;
    align-items: start;
}

.chart-panel {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.chart-panel h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.chart-container {
    min-height: 500px;
    background: var(--bg-light);
    border-radius: 8px;
}

.trading-panel {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.trade-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.trade-section:last-of-type {
    border-bottom: none;
}

.trade-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.token-analytics-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.analytics-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.metrics-column {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 0;
}

.metric-item {
    display: block;
    margin-bottom: 12px;
}

.metric-label {
    display: block;
    font-size: 0.75em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.metric-value {
    display: block;
    font-size: 0.9em;
    color: var(--text-primary);
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.amount-btn {
    padding: 10px;
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.amount-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-dark);
}

.tp-sl-container {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.tp-sl-container h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1rem;
}

.fee-info-box {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

.fee-info-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.fee-info-box ul {
    list-style: none;
}

.fee-info-box li {
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================ */
/* POSITIONS SECTION */
/* ============================================ */
.positions-container {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
}

.positions-container h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.no-positions {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
}

.position-card {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.position-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 255, 170, 0.1);
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.position-header h4 {
    color: var(--primary-color);
    font-family: monospace;
}

.position-age {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.position-info p {
    margin: 8px 0;
    color: var(--text-secondary);
}

.position-info strong {
    color: var(--text-primary);
}

.tp-sl-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.tp-sl-info .tp {
    color: var(--success-color);
}

.tp-sl-info .sl {
    color: var(--danger-color);
}

/* ============================================ */
/* MODAL */
/* ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal.hidden {
    display: none !important; /* Force hide when hidden class is added */
}

.modal-content {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    max-width: 550px;
    width: 90%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 255, 170, 0.2);
    position: relative; /* For close button positioning */
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

/* Modal actions (buttons) */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.modal-actions button:first-child {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.modal-actions button:last-child {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Security warning */
.security-warning {
    background: rgba(255, 255, 0, 0.1);
    border: 1px solid rgba(255, 255, 0, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.security-warning p {
    color: #ffcc00;
    margin-bottom: 10px;
    font-weight: 600;
}

.security-warning ul {
    color: var(--text-secondary);
    margin: 0;
    padding-left: 20px;
}

.security-warning li {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.wallet-options {
    margin: 20px 0;
}

.wallet-option h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.wallet-option input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 6px;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.modal-actions button {
    flex: 1;
}

.warning-box {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--danger-color);
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.warning-box p {
    color: var(--danger-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.warning-box ul {
    list-style: none;
    padding-left: 0;
}

.warning-box li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 5px 0;
    padding-left: 20px;
    position: relative;
}

.warning-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--danger-color);
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */
@media (max-width: 1024px) {
    .trading-layout {
        grid-template-columns: 1fr;
    }
    
    .chart-panel {
        order: 1;
    }
    
    .trading-panel {
        order: 2;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-controls {
        width: 100%;
        justify-content: center;
    }
    
    .main-nav {
        flex-direction: column;
    }
    
    .token-list {
        grid-template-columns: 1fr;
    }
    
    .positions-grid {
        grid-template-columns: 1fr;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .search-bar {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    .login-box {
        padding: 25px;
    }
}

/* Add flex layout to token info for better label-value alignment */
.token-info p {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Create security section styling */
.token-security {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
    border-left: 4px solid var(--primary-color);
}

.token-security p {
    margin: 6px 0;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.token-security strong {
    color: var(--text-primary);
} 

.token-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.token-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.token-metrics {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
}

.token-metrics p {
    margin: 4px 0;
    display: flex;
    justify-content: space-between;
}

.positive { color: #10b981; }
.negative { color: #ef4444; }

.wallet-prompt {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.wallet-prompt-content h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.wallet-prompt-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.btn-connect {
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-connect:hover {
    opacity: 0.9;
}

.tp-level {
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.tp-level label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.tp-level input {
    width: 100%;
}

.tp-level {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-color);
}

.tp-header {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.9em;
}

.tp-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.tp-inputs .input-group {
    margin-bottom: 0;
}

.tp-inputs label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.tp-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    text-align: center;
    font-size: 0.9em;
}

.sl-container {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.sl-container h4 {
    color: #ef4444;
    margin-bottom: 12px;
}

.sl-advanced {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
}

.sl-input-with-sign {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sign-indicator {
    font-weight: bold;
    color: var(--text-secondary);
    min-width: 15px;
}

.percent-suffix {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Color coding for signs */
.sl-input-with-sign .sign-indicator:contains("-") {
    color: #ef4444; /* Red for negative */
}

.sl-input-with-sign .sign-indicator:contains("+") {
    color: #10b981; /* Green for positive */
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
}

.about-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-section ul {
    padding-left: 20px;
}

.about-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.contact-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.contact-link:hover {
    opacity: 0.9;
}

.disclaimer {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

/* Tab Navigation */
.about-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Guide Steps */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.support-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.support-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.faq-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .about-tabs {
        flex-direction: column;
    }
    
    .features-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        flex-direction: column;
    }
}

/* Token Analytics Panel */
.token-analytics-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.analytics-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.premium-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

/* 4-Column Grid Layout */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.metrics-column {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.25); /* Thicker & more visible */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05); /* Optional: subtle glow for emphasis */
    transition: border 0.2s ease;
}

.metrics-column:hover {
    border-color: rgba(255, 255, 255, 0.5); /* Optional: highlight on hover */
}

.metrics-column h4 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 0.9em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.metric-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-size: 0.8em;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric-value {
    font-size: 0.9em;
    color: var(--text-primary);
    font-weight: 600;
}

/* Premium Upsell */
.premium-upsell {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 237, 78, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.premium-upsell p {
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.btn-premium {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-premium:hover {
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .analytics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #1a1a2e;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    max-width: 400px;
    width: 90%;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

#telegram-widget-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.wallet-address-card .address-display input {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px;
    font-family: monospace;
    font-size: 14px;
    color: #333;   
    border-radius: 4px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-address-card .address-display {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
    max-width: 400px; /* Add this */
}

.wallet-address-card .copy-btn {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
}

.deposit-address {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.deposit-address input {
    flex: 1;
    padding: 10px;
    font-family: monospace;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
}

.deposit-address button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Portfolio styles - Phantom-like cards */
.portfolio-container { 
    max-width: 1100px; 
    margin: 16px auto; 
    padding: 12px; 
}

.portfolio-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 12px; 
}

.portfolio-token-list { 
    display: flex; 
    flex-direction: column; /* Changed from flex-wrap */
    gap: 12px; 
}

.portfolio-token-card {
    width: 100%; /* Changed from 260px */
    background: #0f1724;
    color: #e6eef8;
    border-radius: 12px;
    padding: 16px 20px; /* Increased padding */
    box-shadow: 0 6px 18px rgba(2,6,23,0.6);
    transition: transform .12s ease, box-shadow .12s ease;
}

.portfolio-token-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 14px 30px rgba(2,6,23,0.65); 
}

/* New horizontal layout */
.portfolio-token-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.token-info {
    flex: 1;
    min-width: 0;
}

.token-name {
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 4px;
}

.token-mint-link {
    font-size: 12px;
    color: #bcd0ea;
    text-decoration: none;
    font-family: monospace;
}

.token-mint-link:hover {
    text-decoration: underline;
    color: #2b6bff;
}

.token-amounts {
    flex: 0 0 auto;
    text-align: right;
}

.token-balance {
    font-weight: 600;
    font-size: 14px;
    color: #f8fafc;
    margin-bottom: 2px;
}

.token-value {
    font-size: 13px;
    color: #a9c0e6;
}

.btn-refresh-price {
    background: transparent;
    color: #a9c0e6;
    border: 1px solid rgba(255,255,255,0.04);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-refresh-price:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.btn-trade {
    border: 0;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    background: linear-gradient(90deg, #2b6bff, #7b5cff);
    color: white;
    transition: all 0.2s;
}

.btn-trade:hover {
    transform: scale(1.05);
}

/* Keep these for backward compatibility if needed elsewhere */
.tok-amount { font-weight: 600; font-size: 14px; color: #f8fafc; }
.tok-value { font-size: 13px; color: #a9c0e6; }
.no-tokens { color: #9fb0d8; padding: 12px; }

/* skeleton */
.skel { background:linear-gradient(90deg,#0b1220 25%, #0f1724 50%, #0b1220 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius:6px; }
.skel-logo { width:44px; height:44px; border-radius:10px; }
.skel-line { height:12px; width:100px; border-radius:6px; }
@keyframes shimmer { 0%{background-position:-200% 0}100%{background-position:200% 0} }

/* Trade History Section */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-actions {
    display: flex;
    gap: 10px;
}

.btn-export, .btn-clear {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-export {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-clear {
    background: #374151;
    color: #9ca3af;
}

.btn-clear:hover {
    background: #4b5563;
    color: white;
}

.history-filters {
    background: var(--bg-card);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: 500;
}

.filter-group select, .filter-group input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #4b5563;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-width: 150px;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--bg-card);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #374151;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.history-table-container {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid #374151;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    padding: 15px;
    text-align: left;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    border-bottom: 2px solid #4b5563;
}

.history-table th:hover {
    background: #374151;
}

.history-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #374151;
    color: var(--text-primary);
}

.history-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

.history-table .pl-positive {
    color: #10b981;
}

.history-table .pl-negative {
    color: #ef4444;
}

.history-table .action-buttons {
    display: flex;
    gap: 5px;
}

#historyTypeFilter,
#historyTimeFilter {
    background: #1e1e2e; /* dark background */
    color: #ffffff; /* white text */
    border: 1px solid #44475a;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

#historyTypeFilter option,
#historyTimeFilter option {
    background: #1e1e2e;
    color: #ffffff;
}

.no-data {
    text-align: center;
    padding: 40px !important;
    color: var(--text-secondary);
    font-style: italic;
}

.history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.page-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid #4b5563;
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: #374151;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-data-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    margin: 20px 0;
    border: 2px dashed #4b5563;
    display: none; /* Hidden by default */
}

.no-data-message p {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.no-data-message .sub-message {
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.token-mint {
    display: block;
    font-size: 0.85em;
    color: #6c63ff;
    text-decoration: none;
    margin-top: 4px;
    overflow-x: auto;
    white-space: nowrap;
}

.token-balances-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.token-balance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #0f1724;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
}

.token-balance-item:hover {
    border-color: #2b6bff;
    background: #141b2a;
    transform: translateX(4px);
}

.token-info-wallet {
    flex: 1;
    min-width: 0;
}

.token-name-wallet {
    font-size: 14px;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 3px;
}

.token-mint-wallet {
    font-size: 12px;
    color: #bcd0ea;
    text-decoration: none;
    font-family: monospace;
    transition: color 0.2s;
}

.token-mint-wallet:hover {
    color: #2b6bff;
    text-decoration: underline;
}

.token-amount-wallet {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
    margin: 0 20px;
}

.token-actions-wallet {
    flex: 0 0 auto;
}

.btn-trade-wallet {
    border: 0;
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 13px;
    background: linear-gradient(90deg, #2b6bff, #7b5cff);
    color: white;
    transition: all 0.2s;
}

.btn-trade-wallet:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(43, 107, 255, 0.4);
}

/* ADD THIS */
.token-actions {
    width: 100%;   
    gap: 10px;
    margin-top: 15px;
    justify-content: space-between;
    display: flex;
}

.btn-trade-token,
.btn-quick-token {
    flex: 1;
    height: 44px; /* Normal height */
    padding: 12px 8px; /* Normal padding */
    border: none;
    border-radius: 4px;
    font-size: 16px; /* Normal font */
    font-weight: 600;
    cursor: pointer;
}

.btn-trade-token {
    background: #4CAF50;
    color: #1a1a1a;
}

.btn-quick-token {
    background: #FF9800;
    color: white;
}

.btn-trade-token:hover {
    background: #45a049;
}

.btn-quick-token:hover {
    background: #F57C00;
}

.portfolio-token-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.token-info {
    flex: 1;
    min-width: 0;
}

.token-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-mint-link {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
}

.token-mint-link:hover {
    color: #3b82f6;
}

.token-amounts {
    flex: 0 0 auto;
    text-align: right;
    min-width: 120px;
}

.token-balance {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.token-value {
    font-size: 14px;
    color: #6b7280;
}

.token-actions {
    flex: 0 0 auto;
    margin-left: auto;
}

.btn-refresh-price {
    display: none; /* Remove refresh price button, keep only trade */
}

.btn-trade {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-trade:hover {
    background: #2563eb;
}

.portfolio-token-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    gap: 20px;
}

.token-info-col {
    flex: 2;
    min-width: 150px;
    max-width: 200px;
}

.token-amount-col,
.token-value-col,
.token-price-col {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.token-action-col {
    flex: 0 0 auto;
    min-width: 80px;
    text-align: right;
}

.token-info-col .token-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-info-col .token-mint-link {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.token-info-col .token-mint-link:hover {
    color: #3b82f6;
}

.balance, .value, .price {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.value {
    color: #059669;
}

.price {
    font-size: 14px;
    color: #6b7280;
    font-family: 'Courier New', monospace;
}

.subtext {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-quick-wallet, .btn-quick {
    background-color: #4CAF50; /* Green for quick action */
    color: white;
    margin-left: 8px;
}

.btn-trade-wallet, .btn-trade {
    background-color: #2196F3; /* Blue for full analysis */
    color: white;
}

.price-targets {
    margin-top: 8px;
    padding: 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    font-size: 12px;
}

.price-target.tp {
    color: #4CAF50;
}

.price-target.sl {
    color: #F44336;
}

.price-target.sl-trailing {
    color: #FF9800;
}

.mint-address-clickable {
    cursor: pointer;
    color: #4a9eff;
    transition: color 0.2s;
}

.mint-address-clickable:hover {
    color: #2d7dd2;
    text-decoration: underline;
}

.current-profit.profit { color: #10B981; }
.current-profit.loss { color: #EF4444; }
.current-price { font-weight: 600; }
.current-profit.profit::before { content: '📈 '; }
.current-profit.loss::before { content: '📉 '; }

.current-price {
    font-weight: 600;
    color: #6B7280;
}

.current-profit {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}
.current-profit.profit {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}
.current-profit.loss {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.current-profit.neutral { 
    color: #6B7280; 
    background: rgba(107, 114, 128, 0.1); 
}

.history-table .type-buy {
    color: #3B82F6; /* Blue for buy */
    font-weight: bold;
}

.history-table .type-tp { color: #10B981; font-weight: bold; }
.history-table .type-sl { color: #EF4444; font-weight: bold; }
.history-table .type-MANUAL-SELL { color: #F59E0B; font-weight: bold; }
.history-table .type-DIRECT-SELL { color: #8B5CF6; font-weight: bold; }

/* Search bar button layout */
.search-bar {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#mint-search {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary:hover {
    background: #00cc88;
}

.btn-secondary:hover {
    background: #00bb77;
}

/* Specific to search section */
.search-bar .btn-search {
    background: #000000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.search-bar .btn-quick {
    background: #3B82F6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.search-bar .btn-search:hover {
    background: #333333;
}

.search-bar .btn-quick:hover {
    background: #2563EB;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wallet-header-actions {
    display: flex;
    gap: 10px;
}

.btn-track-wallets {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-track-wallets:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}


.wallet-tracker-view {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.btn-back {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: #5a6268;
}

.add-wallet-section {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    align-items: center;
}

#newWalletAddress {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

#newWalletAddress:focus {
    outline: none;
    border-color: #667eea;
}

.add-wallet-section button {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.add-wallet-section .info {
    color: #6c757d;
    font-size: 12px;
    margin-left: 10px;
}

.tracked-wallet-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wallet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wallet-address {
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    color: #495057;
    background: #e9ecef;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.wallet-address:hover {
    background: #dee2e6;
}

.wallet-actions {
    display: flex;
    gap: 10px;
}

.btn-view-portfolio {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-view-portfolio:hover {
    background: #0056b3;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-remove:hover {
    background: #c82333;
}

.wt-portfolio-container {
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.wt-portfolio-items {
    margin-top: 15px;
}

.wt-portfolio-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
    align-items: center;
}

.wt-portfolio-item.header {
    font-weight: bold;
    color: #495057;
    border-bottom: 2px solid #007bff;
}

.wt-portfolio-item:last-child {
    border-bottom: none;
}

.wt-portfolio-total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #28a745;
    font-size: 16px;
    font-weight: bold;
    text-align: right;
    color: #000000;
}

.clickable-mint {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    background: #e3f2fd;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block; /* Only as wide as content */
}

.clickable-mint:hover {
    background: #bbdefb;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 6px;
}

.no-wallets {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    background: white;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.wt-portfolio-item span:not(.clickable-mint):not(.token-symbol) {
    color: #000000; /* Black for numbers */
}

.btn-sell-all-token {
    background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sell-all-token:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #9b2c2c 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.token-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}