.traffic-dashboard {
    display: grid;
    gap: 22px;
}

.traffic-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.traffic-range-button {
    min-width: 76px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(14, 14, 17, .14);
    border-radius: 999px;
    background: transparent;
    color: #111114;
    font-family: "Barlow", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    cursor: pointer;
}

.traffic-range-button.active {
    border-color: #ff004f;
    background: #ff004f;
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 0, 79, .18);
}

.traffic-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.traffic-metric-card {
    min-height: 158px;
}

.traffic-metric-card strong {
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: clamp(44px, 5vw, 68px);
    letter-spacing: -.04em;
}

.traffic-metric-card small {
    max-width: 190px;
}

.traffic-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
    gap: 20px;
    align-items: start;
}

.traffic-stack {
    display: grid;
    gap: 20px;
}

.traffic-panel {
    padding: 22px;
    border-radius: 24px;
}

.traffic-panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.traffic-panel-heading h2 {
    margin: 4px 0 0;
}

.traffic-panel-heading p {
    max-width: 360px;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #77716d;
    text-align: right;
}

.traffic-trend {
    min-height: 250px;
    display: grid;
    grid-template-columns: repeat(var(--traffic-days), minmax(8px, 1fr));
    gap: 5px;
    align-items: end;
    padding: 20px 4px 0;
    border-top: 1px solid rgba(14, 14, 17, .08);
    background:
        linear-gradient(to top, rgba(14, 14, 17, .045) 1px, transparent 1px) 0 0 / 100% 25%;
}

.traffic-trend-column {
    min-width: 0;
    height: 210px;
    display: grid;
    grid-template-rows: 1fr 22px;
    gap: 8px;
    align-items: end;
}

.traffic-trend-column > span {
    width: 100%;
    min-height: 3px;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #ff296d 0%, #ff004f 100%);
    box-shadow: 0 8px 20px rgba(255, 0, 79, .14);
    transform-origin: bottom;
    animation: trafficBarIn .5s cubic-bezier(.2, .8, .2, 1) both;
}

.traffic-trend-column small {
    min-width: 0;
    font-size: 8px;
    font-weight: 700;
    color: #8a837e;
    text-align: center;
    white-space: nowrap;
}

.traffic-list {
    display: grid;
    gap: 10px;
}

.traffic-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid rgba(14, 14, 17, .09);
    border-radius: 14px;
    background: rgba(255, 255, 255, .58);
}

.traffic-list-row-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.traffic-list-row-copy strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.traffic-list-row-copy span {
    overflow: hidden;
    font-size: 11px;
    color: #7c756f;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.traffic-list-row-value {
    min-width: 64px;
    text-align: right;
}

.traffic-list-row-value strong {
    display: block;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 26px;
    line-height: .9;
    color: #111114;
}

.traffic-list-row-value small {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #ff004f;
    text-transform: uppercase;
}

.traffic-bar {
    grid-column: 1 / -1;
    height: 4px;
    border-radius: 99px;
    background: rgba(14, 14, 17, .07);
    overflow: hidden;
}

.traffic-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #ff004f;
}

.traffic-dark-panel {
    padding: 22px;
    border-radius: 24px;
    background: #0f0f12;
    color: #fff;
}

.traffic-dark-panel h2 {
    color: #fff;
}

.traffic-dark-panel p {
    color: rgba(255, 255, 255, .56);
}

.traffic-dark-panel .traffic-list-row {
    border-color: rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .035);
}

.traffic-dark-panel .traffic-list-row-copy span {
    color: rgba(255, 255, 255, .48);
}

.traffic-dark-panel .traffic-list-row-value strong {
    color: #fff;
}

.traffic-dark-panel .traffic-bar {
    background: rgba(255, 255, 255, .08);
}

.traffic-conversions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.traffic-conversion-card {
    min-height: 118px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: rgba(255, 255, 255, .035);
    display: grid;
    align-content: space-between;
    gap: 12px;
}

.traffic-conversion-card span {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
}

.traffic-conversion-card strong {
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 42px;
    line-height: .9;
    color: #fff;
}

.traffic-conversion-card.accent {
    border-color: rgba(255, 0, 79, .38);
    background: linear-gradient(135deg, rgba(255, 0, 79, .17), rgba(255, 0, 79, .035));
}

.traffic-data-note {
    padding: 14px 16px;
    border: 1px solid rgba(14, 14, 17, .09);
    border-radius: 14px;
    background: #f5f2ee;
    font-size: 12px;
    line-height: 1.5;
    color: #6f6863;
}

.traffic-empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 24px;
    border: 1px dashed rgba(14, 14, 17, .18);
    border-radius: 16px;
    color: #77716d;
    text-align: center;
}

@keyframes trafficBarIn {
    from { transform: scaleY(.05); opacity: .3; }
    to { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 1180px) {
    .traffic-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .traffic-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .traffic-header-actions {
        width: 100%;
    }

    .traffic-range-button {
        flex: 1;
    }

    .traffic-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .traffic-panel,
    .traffic-dark-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .traffic-panel-heading {
        display: grid;
        align-items: start;
    }

    .traffic-panel-heading p {
        text-align: left;
    }

    .traffic-trend {
        gap: 3px;
        overflow-x: auto;
        grid-template-columns: repeat(var(--traffic-days), minmax(14px, 1fr));
    }

    .traffic-trend-column small {
        font-size: 7px;
    }
}

@media (max-width: 480px) {
    .traffic-metrics,
    .traffic-conversions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .traffic-trend-column > span {
        animation: none;
    }
}
