/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    background: #0a0a0a;
    color: #ffd700;
    overflow-x: hidden;
    /* Optimize performance */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Smooth transitions for all elements */
* {
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Header */
header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    /* Optimize repaints */
    will-change: transform;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ffd700;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    /* Hardware acceleration */
    transform: translateZ(0);
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 40px;
}

/* Connect Wallet Button */
#connectWallet {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    white-space: nowrap;
    pointer-events: auto;
    z-index: 10;
}

#connectWallet:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

#connectWallet:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

#connectWallet.hidden {
    display: none;
}

/* Balance Display */
.balance-display {
    display: flex;
    gap: 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    align-items: center;
}

.balance-display.hidden {
    display: none !important;
}

.balance-item {
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.balance-item:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.balance-item.loading {
    opacity: 0.6;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Live Indicator */
.live-indicator {
    padding: 0.4rem 0.8rem;
    background: rgba(220, 38, 127, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(220, 38, 127, 0.4);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #dc267f;
    text-shadow: 0 0 8px rgba(220, 38, 127, 0.4);
    backdrop-filter: blur(5px);
    animation: liveGlow 2s ease-in-out infinite;
    white-space: nowrap;
    text-align: center;
    cursor: help;
    transition: all 0.3s ease;
    display: none;
}

@keyframes liveGlow {
    0%, 100% { 
        box-shadow: 0 0 8px rgba(220, 38, 127, 0.3);
        background: rgba(220, 38, 127, 0.2);
    }
    50% { 
        box-shadow: 0 0 15px rgba(220, 38, 127, 0.6);
        background: rgba(220, 38, 127, 0.3);
    }
}

/* Main Container */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Grid Layout */
.dex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Card Styles */
.dex-card {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.dex-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dex-card:hover::before {
    opacity: 1;
}

.dex-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-icon {
    font-size: 1.4rem;
}

.card-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ffd700;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.card-content {
    min-height: 200px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffd700;
    font-size: 0.9rem;
}

.input-container {
    position: relative;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    /* Improve input performance */
    will-change: border-color, box-shadow;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffd700' viewBox='0 0 16 16'%3e%3cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 0.5rem;
}

.form-group input:focus, .form-group select:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    /* Scale up slightly on focus */
    transform: scale(1.01);
}

.form-group input[readonly] {
    background: rgba(40, 40, 40, 0.6);
    border-color: rgba(255, 215, 0, 0.5);
    cursor: not-allowed;
}

.lock-icon {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ffd700;
    font-size: 1rem;
    pointer-events: none;
    display: none;
}

.form-group input[readonly] + .lock-icon {
    display: block;
}

/* Token Info & Swap Preview */
.token-info, .swap-preview {
    margin: 0.5rem 0;
    padding: 0.6rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border-left: 3px solid #ffd700;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-preview {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-left: 1px solid rgba(255, 215, 0, 0.2);
    margin: 1rem 0;
    padding: 0.8rem;
}

.token-name, .swap-preview-item {
    font-weight: 600;
    color: #ffd700;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
}

#swapAmountHint {
    font-style: italic;
    transition: color 0.3s ease;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
}

/* Button Styles */
.btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    /* Hardware acceleration for smoother animations */
    will-change: transform;
    transform: translateZ(0);
    /* Prevent text selection */
    user-select: none;
    -webkit-user-select: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover:enabled {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn:active:enabled {
    transform: translateY(0) translateZ(0);
    transition: transform 0.1s ease;
}

.btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Status Messages */
.status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Smooth transitions */
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.2s ease;
    /* Hardware acceleration */
    transform: translateZ(0);
}

.status.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
    animation: statusPulse 0.5s ease-out;
}

.status.error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    animation: statusShake 0.5s ease-out;
}

/* Status animations */
@keyframes statusPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes statusShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: #ffd700;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Button loading state */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

/* Chart Styles */
.chart-container {
    margin: 1rem 0;
    background: rgba(10, 10, 10, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 1rem;
    overflow: hidden;
}

#tvChart {
    width: 100%;
    height: 300px;
    background: #0a0a0a;
    border-radius: 8px;
    display: block;
    border: none;
}

.chart-loading, .chart-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    font-size: 1rem;
    background: #0a0a0a;
    border-radius: 8px;
    flex-direction: column;
    gap: 0.5rem;
}

.chart-loading {
    color: #ffd700;
}

.chart-loading::before {
    content: '📈';
    font-size: 2rem;
}

.chart-error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    text-align: center;
    padding: 1rem;
}

/* Chart Header & Controls */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.chart-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeframe-selector {
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 215, 0, 0.05);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.timeframe-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: rgba(255, 215, 0, 0.7);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: background-color, color, transform;
}

.timeframe-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-color);
    transform: translateY(-1px) translateZ(0);
}

.timeframe-btn.active {
    background: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.2);
    transform: translateZ(0);
}

.timeframe-btn.active:hover {
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

#enhancedChart {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Pool Table */
.pool-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: rgba(15, 15, 15, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.pool-table th, .pool-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.pool-table th {
    background: rgba(255, 215, 0, 0.1);
    font-weight: 600;
    color: #ffd700;
    font-size: 0.9rem;
}

.pool-table td {
    color: #fff;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

/* Responsive Design */
@media (max-width: 1200px) {
    main {
        padding: 1.5rem;
    }
    
    .dex-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .logo {
        width: 32px;
        height: 32px;
    }
    
    .wallet-section {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.6rem;
    }
    
    .balance-display {
        order: -1;
        width: 100%;
        justify-content: center;
        gap: 0.6rem;
    }
    
    .balance-item {
        flex: 1;
        min-width: 70px;
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    #connectWallet {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .dex-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dex-card {
        padding: 1.2rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-logo {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    .logo {
        width: 28px;
        height: 28px;
    }
    
    .wallet-section {
        gap: 0.5rem;
    }
    
    .balance-display {
        gap: 0.4rem;
    }
    
    .balance-item {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        min-width: 60px;
    }
    
    #connectWallet {
        font-size: 0.8rem;
        padding: 0.45rem 0.8rem;
    }
    
    .dex-card {
        padding: 1rem;
    }
    
    .card-content {
        min-height: 150px;
    }
    
    .card-logo {
        width: 18px;
        height: 18px;
    }
    
    .form-group input, .form-group select {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* Pool Table Styles */
.pool-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.pool-table th,
.pool-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pool-table th {
    background: rgba(255, 215, 0, 0.15);
    font-weight: 600;
    color: #ffd700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.pool-table td {
    color: #e0e0e0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    max-width: 120px;
}

.pool-table tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

.pool-table tr:last-child td {
    border-bottom: none;
}

#myPools {
    min-height: 80px;
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

/* When pools are loading or empty */
#myPools:not(:has(.pool-table)) {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chart Error Styles */
.chart-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #0a0a0a;
    border-radius: 8px;
    color: #999;
    text-align: center;
    padding: 2rem;
}

.chart-error > div {
    max-width: 300px;
}

.chart-container {
    margin-top: 1rem;
}

#tvChart {
    border-radius: 8px;
    overflow: hidden;
}

/* Token List Styles */
.token-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.token-item {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.token-item:hover {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(20, 20, 20, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.token-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.token-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffd700;
}

.token-symbol {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.token-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.token-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.token-stat-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 500;
}

.token-stat-value {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.token-stat-value:has-text("$") {
    color: #28a745;
    font-weight: 700;
}

.token-stat-label:contains("Price USDT") + .token-stat-value {
    color: #28a745;
    font-weight: 700;
    font-size: 0.95rem;
}

.token-contract {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 10, 0.5);
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.token-address {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #aaa;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

.copy-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

.copy-btn.copied {
    background: rgba(40, 167, 69, 0.3);
    border-color: rgba(40, 167, 69, 0.5);
    color: #28a745;
}

.no-tokens {
    text-align: center;
    color: #888;
    padding: 2rem;
    font-style: italic;
}

.high-lp-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    animation: glowPulse 2s ease-in-out infinite;
}

.real-data-badge {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
    margin-left: 0.5rem;
}

.gj-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #1a1a1a;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.4);
    margin-left: 0.5rem;
}

.token-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.live-update-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 600;
}

.live-update-indicator::before {
    content: "🔴";
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.token-item.has-real-lp {
    border-color: rgba(0, 123, 255, 0.4);
    background: rgba(0, 123, 255, 0.05);
}

.token-item.gj-token {
    border-color: rgba(255, 215, 0, 0.6);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.token-item.gj-token .token-name {
    color: #ffd700;
    font-weight: 800;
}

.token-item.gj-token .token-symbol {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    font-weight: 700;
}

.price-usdt {
    color: #28a745 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    }
    50% { 
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.6);
    }
}

/* Verified Token List Styles */
.token-loading {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-style: italic;
}

.token-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.token-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.token-item.gj-token {
    border-color: rgba(255, 215, 0, 0.6);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.token-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.token-name-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.token-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffd700;
}

.token-name.gj-token {
    color: #ffd700;
    font-weight: 800;
}

.token-symbol {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.verified-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.token-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.token-stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.token-stat-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.2rem;
}

.token-stat-value {
    font-weight: 600;
    color: #ffd700;
    font-size: 0.9rem;
}

.price-usdt {
    color: #28a745 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

.token-contract {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 10, 0.5);
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.token-address {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #aaa;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.copy-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

.copy-btn:active {
    background: rgba(255, 215, 0, 0.4);
}

.live-update-indicator {
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 600;
}

.live-update-indicator::before {
    content: "🔴";
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
