:root {
    --primary-color: #13111a;
    --secondary-color: #1f1b2e;
    --accent-color: #a855f7;
    --accent-glow: #b65cff;
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    
    /* Typography scale using relative units */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-md: 1.125rem;
    --font-lg: 1.25rem;
    --font-xl: 1.5rem;
    --font-2xl: 2rem;
    --font-3xl: 2.5rem;
    
    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #0a0a0a;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background grid pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(120deg, 
            rgba(168, 85, 247, 0.1) 0%,
            rgba(168, 85, 247, 0.05) 25%,
            rgba(168, 85, 247, 0.02) 50%,
            rgba(168, 85, 247, 0.05) 75%,
            rgba(168, 85, 247, 0.1) 100%
        ),
        linear-gradient(90deg, 
            rgba(168, 85, 247, 0.12) 1px, 
            transparent 1px
        ),
        linear-gradient(0deg, 
            rgba(168, 85, 247, 0.12) 1px, 
            transparent 1px
        );
    background-size: 100% 100%, 100px 100px, 100px 100px;
    background-position: 0 0, 0 0, 0 0;
    pointer-events: none;
    z-index: -2;
    box-shadow: inset 0 0 100px rgba(168, 85, 247, 0.1);
}

/* Dark overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* Hero section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-12) 10%;
    min-height: 85vh;
    position: relative;
    gap: var(--space-12);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(
        circle at 50% 0%, 
        rgba(255, 255, 255, 0.05) 0%, 
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
}

.hero-text {
    flex: 1;
    padding-right: 4rem;
}

.hero-text h1 {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-6);
    background: linear-gradient(45deg, #a855f7, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: var(--font-md);
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    background: none;
    -webkit-text-fill-color: var(--text-secondary);
    text-shadow: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.hero-text p a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.hero-text p a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.hero-text p a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.hero-text p a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Navigation styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 10%;
    background: rgba(31, 27, 46, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.spectral-link,
.twitter-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: all 0.3s ease;
}

.spectral-link:hover,
.twitter-link:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.spectral-link img,
.twitter-link svg {
    width: 20px;
    height: 20px;
    color: var(--text-color);
}

.spectral-link img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Общие стили для блоков с графиками */
.stat-pnl-summary,
.stat-balance-block {
    padding: 1.5rem;
}

.pnl-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pnl-content span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pnl-content strong {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    color: var(--text-color);
}

.chart-container {
    width: 100%;
    height: 60px;
    margin-top: 1rem;
    position: relative;
}

.chart-container .tooltip {
    position: absolute;
    background: rgba(31, 27, 46, 0.95);
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    pointer-events: none;
    border: 1px solid rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(4px);
    transform: translate(-50%, -100%);
    top: -8px;
    z-index: 1;
}

.chart-container .hover-point {
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.6));
}

/* Third row - Token */
.stat-token {
    grid-column: 1 / -1;
    grid-row: 1;
    background: rgba(31, 27, 46, 0.8);
}

.token-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.token-row strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    background: rgba(168, 85, 247, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    color: var(--text-color);
}

.contract-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(168, 85, 247, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    position: relative;
}

.contract-address:hover {
    color: var(--accent-color);
    background: rgba(168, 85, 247, 0.15);
}

.contract-address::after {
    content: 'Click to copy';
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(31, 27, 46, 0.95);
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(4px);
}

.contract-address:hover::after {
    opacity: 1;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: var(--space-8) 5%;
        text-align: center;
        margin-top: 6rem;
        gap: var(--space-8);
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .hero-text h1 {
        font-size: var(--font-2xl);
    }

    .nav-links {
        display: none;
    }

    .info-blocks {
        padding: var(--space-8) 5%;
        gap: var(--space-6);
    }

    .faq {
        padding: var(--space-12) 10%;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .stat-token {
        grid-row: 1;
    }

    .stat-pnl-summary {
        grid-row: 2;
    }

    .stat-balance-block {
        grid-row: 3;
    }

    .stat-pnl-details {
        grid-row: 4;
    }

    .stat-volume-block {
        grid-row: 5;
    }

    .hero-buttons {
        display: flex;
        justify-content: center;
    }

    .stat-block, .overview-block {
        width: 100%;
    }
}

/* Token info styles */
.token-info, .wallet-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(168, 85, 247, 0.15);
    transition: border-color 0.3s ease;
}

.token-info:hover, .wallet-info:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.token-info {
    margin-bottom: 1.5rem;
}

.section-title {
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

.token-info p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    font-size: 0.95rem;
}

.token-info p:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.token-info p strong {
    color: var(--text-color);
    font-weight: 500;
    min-width: 100px;
}

.token-info p span {
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    background: rgba(168, 85, 247, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Wallet stats styles */
.wallet-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    min-height: 300px;
}

.stat {
    background: rgba(31, 27, 46, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.1);
    padding: 0;
}

.stat:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.05);
}

.stat span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.stat strong {
    font-size: 1.2rem;
    color: var(--text-color);
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Info blocks styles */
.info-blocks {
    padding: 4rem 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
}

.info-block {
    background: rgba(31, 27, 46, 0.6);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    border: 1px solid rgba(168, 85, 247, 0.1);
    backdrop-filter: blur(10px);
}

.info-block:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(31, 27, 46, 0.8);
}

.info-block h2 {
    color: var(--accent-color);
    margin-bottom: var(--space-6);
    font-size: var(--font-2xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.info-block p {
    color: var(--text-secondary);
    font-size: var(--font-md);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    font-weight: 400;
}

.info-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-block li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.info-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.8;
}

.info-block li strong {
    color: var(--text-color);
    font-weight: 500;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.info-block:hover li::before {
    background: var(--accent-glow);
    box-shadow: 0 0 8px var(--accent-color);
}

/* FAQ styles */
.faq {
    padding: var(--space-12) 10% var(--space-8);
    position: relative;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.accordion-item {
    margin-bottom: var(--space-4);
    background: rgba(31, 27, 46, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.accordion-header {
    width: 100%;
    padding: var(--space-6);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-lg);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.4;
    font-family: inherit;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Добавляем иконку для аккордеона */
.accordion-header::after {
    content: '+';
    font-size: var(--font-xl);
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    transform: rotate(45deg);
}

.accordion-header:hover {
    background: rgba(168, 85, 247, 0.05);
}

.accordion-header.active {
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background: rgba(31, 27, 46, 0.4);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.accordion-header.active + .accordion-content {
    max-height: 1000px; /* Достаточно большое значение для любого контента */
}

.content-wrapper {
    padding: var(--space-6);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
}

.accordion-header.active + .accordion-content .content-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.accordion-content h4 {
    color: var(--accent-color);
    margin-bottom: var(--space-3);
    margin-top: var(--space-6);
    font-size: var(--font-md);
    font-weight: 500;
}

.accordion-content h4:first-child {
    margin-top: var(--space-4);
}

.accordion-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    font-size: var(--font-base);
    line-height: 1.6;
}

.accordion-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.accordion-content li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
    font-size: var(--font-base);
}

.accordion-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.8;
}

.accordion-content li strong {
    color: var(--text-color);
    display: block;
    margin-bottom: var(--space-1);
    font-size: var(--font-base);
    font-weight: 500;
}

/* Footer styles */
footer {
    background: rgba(31, 27, 46, 0.6);
    padding: var(--space-8) 10%;
    text-align: center;
    margin-top: var(--space-8);
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.footer-content h3 {
    color: var(--accent-color);
    font-size: var(--font-lg);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Добавляем иконку Spectral */
.footer-content h3::before {
    content: '';
    width: 24px;
    height: 24px;
    background: url('../static/images/logo_spectral.svg') no-repeat center;
    background-size: contain;
    filter: brightness(0) invert(1) opacity(0.9);
}

.footer-content p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    line-height: 1.6;
    max-width: 480px;
}

@media (max-width: 768px) {
    footer {
        padding: var(--space-6) 5%;
    }
    
    .footer-content h3 {
        font-size: var(--font-md);
    }
    
    .footer-content h3::before {
        width: 20px;
        height: 20px;
    }
    
    .footer-content p {
        font-size: var(--font-xs);
        padding: 0 var(--space-4);
    }
}

/* Contract styles */
.contract-row {
    position: relative;
}

.contract-address {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contract-address:hover {
    background: rgba(168, 85, 247, 0.15);
}

.contract-address.copied {
    background: rgba(168, 85, 247, 0.15);
}

/* Button styles */
.hero-buttons {
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: var(--font-md);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.8) 0%, 
        rgba(217, 70, 239, 0.8) 100%
    );
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15);
    backdrop-filter: blur(4px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.9) 0%, 
        rgba(217, 70, 239, 0.9) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

.btn-primary:hover::before {
    left: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: var(--space-8) 5%;
        text-align: center;
        margin-top: 6rem;
        gap: var(--space-8);
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .hero-text h1 {
        font-size: var(--font-2xl);
    }

    .nav-links {
        display: none;
    }

    .info-blocks {
        padding: var(--space-8) 5%;
        gap: var(--space-6);
    }

    .faq {
        padding: var(--space-8) 5% var(--space-6);
    }

    .stats-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .stat-token {
        grid-row: 1;
    }

    .stat-pnl-summary {
        grid-row: 2;
    }

    .stat-balance-block {
        grid-row: 3;
    }

    .stat-pnl-details {
        grid-row: 4;
    }

    .stat-volume-block {
        grid-row: 5;
    }

    .hero-buttons {
        display: flex;
        justify-content: center;
    }

    .stat-block, .overview-block {
        width: 100%;
    }

    footer {
        padding: var(--space-6) 5%;
        margin-top: var(--space-6);
    }
}

@keyframes valueUpdate {
    0% {
        color: var(--accent-color);
    }
    100% {
        color: var(--text-color);
    }
}

.value-updated {
    animation: valueUpdate 1s ease-out;
}

.stat strong {
    font-size: 1.2rem;
    color: var(--text-color);
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Обвляем стили для P&L */
.stat-pnl {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    height: 100%;
}

.pnl-periods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    height: 100%;
}

.pnl-periods > span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
}

.pnl-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(31, 27, 46, 0.8);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.pnl-item:hover {
    background: rgba(168, 85, 247, 0.1);
}

.pnl-item .period {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pnl-item strong {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .stat-pnl {
        grid-column: span 2;
        height: auto;
        min-height: 200px;
    }
    
    .pnl-periods {
        flex-direction: column;
    }
}

/* Добавляем стили для мецающего курсара */
.cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
}

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

/* Добавляем стили для мерцающего курсора в главном тексте */
.hero-text h1 .cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
}

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

/* Добавляем стили для tooltip */
.copy-tooltip {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(31, 27, 46, 0.95);
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(4px);
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(31, 27, 46, 0.95) transparent transparent transparent;
}

.contract-address:hover .copy-tooltip {
    opacity: 1;
}

/* Обновляем стили для Balance */
.stat-balance {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.stat-balance span {
    margin-bottom: 0.5rem;
}

.stat-balance strong {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.balance-chart {
    position: relative;
    margin-top: auto;
    width: 100%;
    height: 60px;
}

.balance-chart .tooltip {
    position: absolute;
    background: rgba(31, 27, 46, 0.95);
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    pointer-events: none;
    border: 1px solid rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(4px);
    transform: translate(-50%, -100%);
    top: -8px;
    z-index: 1;
}

.balance-chart .hover-point {
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.6));
}

.volume-periods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.volume-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(31, 27, 46, 0.8);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.volume-item:hover {
    background: rgba(168, 85, 247, 0.1);
}

.volume-item .period {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.volume-item strong {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Data block styles */
.data-block {
    flex: 1;
    background: rgba(31, 27, 46, 0.6);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat {
    background: rgba(31, 27, 46, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

/* Grid positions */
.stat-token {
    grid-column: 1 / -1;
    grid-row: 1;
    background: rgba(31, 27, 46, 0.8);
}

.stat-pnl-summary {
    grid-column: 1;
    grid-row: 2;
    padding: 1.5rem;
}

.stat-pnl-details {
    grid-column: 1;
    grid-row: 3;
}

.stat-balance-block {
    grid-column: 2;
    grid-row: 2;
    padding: 1.5rem;
}

.stat-volume-block {
    grid-column: 2;
    grid-row: 3;
    padding: 0;
}

/* Periods styles */
.pnl-periods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    height: 100%;
}

.pnl-periods > span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
}

.pnl-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(31, 27, 46, 0.8);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.pnl-item:hover {
    background: rgba(168, 85, 247, 0.1);
}

.pnl-item .period {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pnl-item strong {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-token {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .stat-pnl-summary {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .stat-balance-block {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }

    .stat-pnl-details {
        grid-column: 1 !important;
        grid-row: 4 !important;
    }

    .stat-volume-block {
        grid-column: 1 !important;
        grid-row: 5 !important;
    }
}

/* Accessibility improvements */
.btn:focus-visible,
.accordion-header:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}