/* ═══════════ GLOBAL STYLES ═══════════ */

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0e1a;
}
::-webkit-scrollbar-thumb {
    background: #2a2f4a;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6c5ce7;
}

/* ═══════════ TICKER BAR ═══════════ */

.ticker-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    color: #9ca3af;
    letter-spacing: 0.02em;
}

.ticker-item .price-up {
    color: #34d399;
}

.ticker-item .price-down {
    color: #f87171;
}

.ticker-item .price-live {
    color: #a29bfe;
}

.ticker-item .coin-name {
    color: #d1d5db;
    font-weight: 600;
}

.ticker-separator {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2a2f4a;
    margin: 0 8px;
    flex-shrink: 0;
}

.ticker-group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: max-content;
}

/* ═══════════ NAV LINK ACTIVE STATE ═══════════ */

.nav-link.active {
    color: #a29bfe;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.35);
}

.nav-link:not(.active):hover {
    background: rgba(255, 255, 255, 0.04);
}

/* ═══════════ WALLET CARD ═══════════ */

.wallet-card {
    background:
        url("assets/Untitled design.png") center / cover,
        radial-gradient(ellipse at top right, rgba(108, 92, 231, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(255, 0, 19, 0.04) 0%, transparent 50%),
        linear-gradient(135deg, #141828 0%, #1a1f35 50%, #141828 100%);
}

/* TRON pattern overlay */
.pattern-overlay {
    /* background-image: url("assets/Untitled design.png") no-repeat center / cover; */
    background-size: 60px 60px;
}

/* ═══════════ TOKEN ROW HOVER GLOW ═══════════ */


#tokens-box {
    justify-content: center;
}
.token-row {
    position: relative;
    overflow: hidden;
}

.token-row::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
}

#trx-row::before {
    background: radial-gradient(circle at 10% 50%, rgba(255, 0, 19, 0.06) 0%, transparent 70%);
}

#usdt-row::before {
    background: radial-gradient(circle at 10% 50%, rgba(38, 161, 123, 0.06) 0%, transparent 70%);
}

.token-row:hover::before {
    opacity: 1;
}

/* ═══════════ ACTION BUTTONS ═══════════ */

.action-btn > div {
    position: relative;
    overflow: hidden;
}

.action-btn > div::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.action-btn:hover > div::after {
    opacity: 1;
}

/* ═══════════ ENTRY ANIMATIONS ═══════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wallet-card {
    animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.token-row {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.token-row:nth-child(1) { animation-delay: 0.15s; }
.token-row:nth-child(2) { animation-delay: 0.25s; }

.action-btn {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.action-btn:nth-child(1) { animation-delay: 0.35s; }
.action-btn:nth-child(2) { animation-delay: 0.45s; }

/* ═══════════ RESPONSIVE ═══════════ */

@media (max-width: 640px) {
    .wallet-card {
        padding: 1rem;
        border-radius: 1.25rem;
    }
}
