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

body {
    background: #0a0a0f;
    overflow: hidden;
    font-family: 'Orbitron', monospace;
    color: #fff;
}

#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Center dancing jester GIF */
.center-gif-container {
    position: fixed;
    top: calc(50% - 40px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

.center-gif {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6),
                0 0 60px rgba(255, 215, 0, 0.3);
    animation: center-pulse 2s ease-in-out infinite;
    display: block;
}

@keyframes center-pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6),
                    0 0 60px rgba(255, 215, 0, 0.3);
        border-color: #FFD700;
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.8),
                    0 0 100px rgba(255, 215, 0, 0.4);
        border-color: #FFA500;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    padding-bottom: 180px;
}

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

.logo-gif {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #9b4dca;
    box-shadow: 0 0 30px rgba(155, 77, 202, 0.6),
                0 0 60px rgba(155, 77, 202, 0.3);
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 30px rgba(155, 77, 202, 0.6),
                    0 0 60px rgba(155, 77, 202, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.8),
                    0 0 100px rgba(255, 215, 0, 0.4);
    }
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #9b4dca 0%, #ffd700 50%, #ff4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(155, 77, 202, 0.5);
    letter-spacing: 4px;
}

.promo-link {
    position: absolute;
    top: 30px;
    left: 30px;
    pointer-events: auto;
}

.promo-link a {
    display: inline-block;
    font-size: 0.8rem;
    color: #ffd700;
    text-decoration: none;
    padding: 11px 19px;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.8px;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3),
                0 0 24px rgba(255, 215, 0, 0.15);
    animation: promo-pulse 2s ease-in-out infinite;
}

@keyframes promo-pulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.3),
                    0 0 24px rgba(255, 215, 0, 0.15);
        border-color: rgba(255, 215, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5),
                    0 0 40px rgba(255, 215, 0, 0.25);
        border-color: rgba(255, 215, 0, 0.9);
    }
}

.promo-link a:hover {
    background: rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.6),
                0 0 48px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.status {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #888;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4444;
    animation: blink 1s ease-in-out infinite;
}

.status-dot.connected {
    background: #44ff44;
    animation: none;
    box-shadow: 0 0 10px #44ff44;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.stats {
    position: absolute;
    bottom: 220px;
    left: 30px;
    display: flex;
    gap: 30px;
    background: rgba(15, 15, 25, 0.8);
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid rgba(155, 77, 202, 0.3);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 0.6rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #9b4dca;
}

.contract-section {
    position: fixed;
    bottom: 215px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    z-index: 25;
}

.top-accumulator {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 25px;
    background: rgba(0, 255, 136, 0.2) !important;
    border: 2px solid #00ff88 !important;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
    animation: accumulatorGlow 2s ease-in-out infinite;
    min-width: 180px;
}

@keyframes accumulatorGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.2); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 136, 0.4); }
}

.accumulator-label {
    font-size: 0.7rem;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.accumulator-address {
    font-size: 0.8rem;
    color: #fff;
    font-family: monospace;
    cursor: pointer;
    transition: color 0.3s ease;
}

.accumulator-address:hover {
    color: #00ff88;
}

.accumulator-amount {
    font-size: 0.75rem;
    color: #00ff88;
    font-weight: bold;
}

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

.contract-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
}

.contract-address {
    font-size: 0.75rem;
    color: #ffd700;
    cursor: pointer;
    padding: 8px 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: monospace;
}

.contract-address:hover {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.copy-feedback {
    font-size: 0.7rem;
    color: #44ff44;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
}

.social-link {
    pointer-events: auto;
}

.social-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #1DA1F2;
    text-decoration: none;
    padding: 8px 14px;
    background: rgba(29, 161, 242, 0.1);
    border: 1px solid rgba(29, 161, 242, 0.4);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

.social-link a:hover {
    background: rgba(29, 161, 242, 0.2);
    box-shadow: 0 0 15px rgba(29, 161, 242, 0.3);
}

.social-link a::before {
    content: '𝕏';
    font-size: 1rem;
    font-weight: bold;
}

.stat-value.change {
    color: #888;
}

.stat-value.change.positive {
    color: #44ff88;
}

.stat-value.change.negative {
    color: #ff4444;
}

/* Transaction Feed */
.tx-feed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.98) 0%, rgba(10, 10, 15, 0.9) 80%, transparent 100%);
    z-index: 20;
    padding: 15px 30px;
    display: flex;
    flex-direction: column;
}

.tx-feed-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.tx-feed-title {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tx-feed-live {
    font-size: 0.65rem;
    color: #44ff44;
    background: rgba(68, 255, 68, 0.15);
    padding: 3px 8px;
    border-radius: 3px;
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tx-feed-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.tx-feed-list::-webkit-scrollbar {
    width: 4px;
}

.tx-feed-list::-webkit-scrollbar-track {
    background: transparent;
}

.tx-feed-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

.tx-feed-empty {
    color: #444;
    font-size: 0.75rem;
    text-align: center;
    padding: 20px;
}

.tx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(30, 30, 45, 0.6);
    border-radius: 6px;
    border-left: 3px solid #9b4dca;
    animation: tx-slide-in 0.3s ease-out;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tx-item:hover {
    background: rgba(40, 40, 60, 0.8);
}

.tx-item.buy {
    border-left-color: #44ff88;
}

.tx-item.sell {
    border-left-color: #ff4444;
}

@keyframes tx-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tx-type {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    min-width: 50px;
    text-align: center;
}

.tx-type.buy {
    color: #44ff88;
    background: rgba(68, 255, 136, 0.15);
}

.tx-type.sell {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.15);
}

.tx-type.transfer {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
}

.tx-amount {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    min-width: 100px;
}

.tx-addresses {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #888;
    font-family: monospace;
}

.tx-arrow {
    color: #9b4dca;
}

.tx-address {
    color: #aaa;
}

.tx-address.holder {
    color: #ffd700;
}

.tx-address.amm {
    color: #fbbf24;
    font-weight: 700;
}

.tx-time {
    font-size: 0.65rem;
    color: #555;
    min-width: 50px;
    text-align: right;
}

.tx-link {
    font-size: 0.6rem;
    color: #666;
    text-decoration: none;
    padding: 2px 6px;
    border: 1px solid #333;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.tx-link:hover {
    color: #9b4dca;
    border-color: #9b4dca;
}

/* Responsive */
@media (max-width: 768px) {
    .overlay {
        padding: 20px;
        padding-bottom: 160px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .logo-gif {
        width: 50px;
        height: 50px;
    }

    .promo-link {
        top: 70px;
        right: 15px;
    }

    .promo-link a {
        font-size: 0.6rem;
        padding: 8px 12px;
    }

    .stats {
        flex-direction: column;
        gap: 15px;
        bottom: 160px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .contract-section {
        bottom: 160px;
        right: 15px;
    }

    .contract {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .contract-address {
        font-size: 0.6rem;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tx-feed {
        height: 130px;
        padding: 10px 15px;
    }

    .tx-item {
        padding: 6px 10px;
        gap: 8px;
    }

    .tx-addresses {
        display: none;
    }

    .tx-amount {
        font-size: 0.75rem;
        min-width: 80px;
    }
}
