.crypto-page {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.crypto-left {
    flex: 0 0 300px; 
    order: 1;
}

.crypto-center {
    flex: 1;
    order: 2;
}

.crypto-right {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    order: 3;
}

@media(max-width:1024px){
    .crypto-page {
        flex-direction: column;
    }

    .crypto-center { order: 1; } 
    .crypto-left   { order: 2; } 
    .crypto-right  { order: 3; } 

    .crypto-left, .crypto-center, .crypto-right {
        flex: 1 1 auto;
    }
}

.crypto-details-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

.crypto-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    background-color: #131722;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.crypto-header-banner.is-up {
    background: linear-gradient(90deg, #131722 0%, rgba(72, 187, 120, 0.2) 100%);
    border-left: 3px solid var(--color-up);
}

.crypto-header-banner.is-down {
    background: linear-gradient(90deg, #131722 0%, rgba(245, 101, 101, 0.2) 100%);
    border-left: 3px solid var(--color-down);
}

.crypto-header-banner .header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.crypto-header-banner .asset-name {
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.2;
}

.crypto-header-banner .asset-ticker {
    font-size: 1rem;
    opacity: 0.8;
}

.crypto-header-banner .header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.crypto-header-banner .price-value {
    font-weight: bold;
    font-size: 1.2rem;
}

.crypto-header-banner .price-perf {
    font-size: 1rem;
    opacity: 0.8;
}

.asset-name { font-size: 1.4rem; font-weight: 800; color: #fff; margin-right: 10px; }
.asset-ticker { color: #718096; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.price-value { font-size: 1.6rem; font-weight: 700; }
.price-perf { margin-left: 15px; padding: 4px 10px; border-radius: 6px; font-weight: bold; background: rgba(0,0,0,0.3); }
.is-up .price-perf { color: var(--color-up); }
.is-down .price-perf { color: var(--color-down); }

.levels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.levels-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.level-group-container {
    background: rgba(20, 22, 26, 0.4);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.group-title {
    font-size: 0.75rem;
    color: var(--color-info);
    margin-bottom: 15px;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(78, 170, 241, 0.2);
    padding-bottom: 5px;
    text-transform: uppercase;
}

.group-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.level-card {
    background: rgba(30, 32, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.level-card:hover { transform: translateY(-2px); border-color: rgba(78, 170, 241, 0.3); }

.level-invalid {
    opacity: 0.4;
}

.level-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.key-tag { font-size: 0.65rem; font-weight: 800; color: #a0aec0; text-transform: uppercase; }
.dist-pct { font-size: 0.7rem; font-weight: 600; font-family: monospace; }

.level-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
}

.level-meta {
    margin-top: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.7;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .levels-grid { grid-template-columns: 1fr; }
    .price-value { font-size: 1.2rem; }
}

.label-main {
    display: flex;          
    flex-direction: row;     
    align-items: center;     
    gap: 4px;               
    line-height: 1.1;
}

.label-main .period {
    font-size: 0.75rem;
    font-weight: 600;
}

.label-main i {
    font-size: 0.8rem;
    flex-shrink: 0;          
}
