/* Crypto — Sidebar Zone (narrow vertical strip).
 *
 * Mirrors the Split Horizontal design end-to-end — chunky 3D button card,
 * centered logo+name header, price on its own line, badges (mcap + change)
 * centered below, dashed white chart container with symbol/range labels.
 * All units are container-relative so proportions hold at any size.
 */

.ck-sidebar {
    width: 100%;
    height: 100%;
    container-type: size;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font, 'Roboto'), sans-serif;
}

.ck-sidebar-card {
    position: relative;
    width: 80cqw;
    height: 80cqh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* cqh for vertical spacing — sidebar's "tall" dimension — so gaps feel
     * roomy in the narrow-and-tall zone rather than cramped. */
    gap: 5cqh;
    padding: 5cqh 4.5cqmin;
    direction: ltr;

    background-color: var(--text);
    color: var(--bg);
    border-radius: 1cqmin;
    -webkit-box-shadow:
        inset 0 0.25cqmin 0 rgba(255, 255, 255, 0.22),
        0 1.5cqmin 0 #000;
    -moz-box-shadow:
        inset 0 0.25cqmin 0 rgba(255, 255, 255, 0.22),
        0 1.5cqmin 0 #000;
    box-shadow:
        inset 0 0.25cqmin 0 rgba(255, 255, 255, 0.22),
        0 1.5cqmin 0 #000;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.ck-sidebar-card::after {
    content: "";
    position: absolute;
    bottom: -2.2cqmin;
    left: -0.6cqmin;
    width: 100%;
    height: 100%;
    padding: 0.6cqmin;
    z-index: -1;
    background-color: #000;
    border-radius: 1cqmin;
    box-sizing: content-box;
}

.ck-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5cqmin;
    flex-shrink: 0;
    width: 100%;
}

.ck-sidebar-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2cqmin;
    flex-shrink: 0;
    width: 100%;
}

.ck-sidebar-logo {
    width: 10cqmin !important;
    height: 10cqmin !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.ck-sidebar-name {
    font-size: 6.5cqmin !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.01em !important;
    color: var(--bg) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ck-sidebar-price {
    font-size: 14cqmin !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
    direction: ltr;
    unicode-bidi: embed;
    color: var(--bg) !important;
    text-align: center;
}

.ck-sidebar-mcap {
    padding: 0.8cqmin 2cqmin;
    border-radius: 10cqmin;
    background: color-mix(in srgb, var(--bg) 25%, transparent);
    color: var(--bg) !important;
    font-size: 5cqmin !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.01em;
    direction: ltr;
    unicode-bidi: embed;
    white-space: nowrap;
}

.ck-sidebar-change {
    padding: 0.8cqmin 2cqmin;
    border-radius: 10cqmin;
    color: #fff !important;
    font-size: 5cqmin !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    direction: ltr;
    unicode-bidi: embed;
    white-space: nowrap;
}
.ck-sidebar-change.is-up   { background: #22c55e; }
.ck-sidebar-change.is-down { background: #ef4444; }

.ck-sidebar-chart {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 1.5cqmin;
    padding: 2cqmin 2.5cqmin;
    border: 0.8cqmin dashed color-mix(in srgb, var(--bg) 35%, transparent);
    box-sizing: border-box;
}
.ck-sidebar-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}
.ck-sidebar-chart-symbol {
    position: absolute;
    bottom: 1cqmin;
    left: 1.5cqmin;
    font-size: 5cqmin !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text) !important;
    opacity: 0.75;
    pointer-events: none;
}
.ck-sidebar-chart-label {
    position: absolute;
    bottom: 1cqmin;
    right: 1.5cqmin;
    font-size: 5cqmin !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text) !important;
    opacity: 0.75;
    pointer-events: none;
}
