/*** ACCOUNT DASHBOARD, HISTORY FILTERS, AND ANALYTICS ***/
.woocommerce-MyAccount-navigation-link--vox-analytics a::before {
    content: "\f239" !important;
    display: inline-block;
    margin-right: 0.45rem;
    font-family: dashicons !important;
    vertical-align: -0.1em;
}

.vxcr-history__shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.85rem;
}

.vxcr-history__date-range {
    display: grid;
    gap: 0.65rem;
}

.vxcr-history__date-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.vxcr-history__range-label {
    min-width: 3.25rem;
    font-weight: 700;
}

.vxcr-history__select {
    width: auto;
    min-width: 4.25rem;
    max-width: 6rem;
}

.vxcr-history__select[name$="_year"] {
    min-width: 5.25rem;
}

.vxcr-history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.vxcr-history-pagination__arrow {
    min-width: 2.5rem;
    min-height: 2.5rem;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1;
}

.vxcr-dashboard-cards,
.vxcr-analytics-grid,
.vxcr-analytics-taxonomies__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.vxcr-dashboard-card,
.vxcr-analytics-card {
    display: grid;
    gap: 0.65rem;
    padding: 1.1rem;
    border: 1px solid var(--vxcr-color-border-soft);
    border-radius: 18px;
    background: var(--vxcr-color-surface-soft);
    text-decoration: none;
}

.vxcr-dashboard-card .dashicons {
    width: 2rem;
    height: 2rem;
    font-size: 2rem;
    color: var(--vxcr-color-primary);
}

.vxcr-dashboard-card strong {
    color: var(--vxcr-color-text);
    font-size: 1.05rem;
}

.vxcr-dashboard-card span:not(.dashicons) {
    color: var(--vxcr-color-muted);
}

.vxcr-analytics,
.vxcr-account-dashboard,
.vxcr-analytics-taxonomies {
    display: grid;
    gap: 1.25rem;
}

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

.vxcr-analytics-row {
    display: grid;
    gap: 0.35rem;
}

.vxcr-analytics-row > span:not(.vxcr-analytics-bar) {
    color: var(--vxcr-color-muted);
    font-size: 0.92rem;
}

.vxcr-analytics-bar {
    display: block;
    overflow: hidden;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--vxcr-color-border-soft);
}

.vxcr-analytics-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--vxcr-color-primary);
}

.vxcr-completion-meter {
    display: inline-grid;
    place-items: center;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: conic-gradient(var(--vxcr-color-success) var(--vxcr-completed-percent), var(--vxcr-color-border-soft) 0);
    position: relative;
    isolation: isolate;
}

.vxcr-completion-meter::before {
    content: "";
    position: absolute;
    inset: 0.7rem;
    border-radius: inherit;
    background: var(--vxcr-color-surface);
    z-index: -1;
}

.vxcr-completion-meter strong {
    font-size: 1.6rem;
}

@media (max-width: 780px) {
    .vxcr-dashboard-cards,
    .vxcr-analytics-grid,
    .vxcr-analytics-taxonomies__grid {
        grid-template-columns: 1fr;
    }

    .vxcr-history__date-line {
        display: grid;
        grid-template-columns: auto repeat(3, minmax(4.25rem, max-content));
    }

    .vxcr-history__filter--submit {
        grid-column: 2 / -1;
        justify-content: center;
    }
}

/*** ANALYTICS CHARTS AND COMPLETION METERS ***/
.vxcr-analytics-taxonomies__grid .vxcr-analytics-card {
    align-content: start;
}

.vxcr-completion-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}

.vxcr-completion-meter {
    --vxcr-completion-color: var(--vxcr-color-success);
    display: grid;
    place-items: center;
    gap: 0.45rem;
    width: 9rem;
    text-align: center;
}

.vxcr-completion-meter.is-stopped {
    --vxcr-completion-color: var(--vxcr-color-danger, #c93535);
}

.vxcr-completion-meter__inner {
    display: inline-grid;
    place-items: center;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--vxcr-color-surface) 0 58%, transparent 59%), conic-gradient(var(--vxcr-completion-color) var(--vxcr-completion-percent), var(--vxcr-color-border-soft) 0);
}

.vxcr-completion-meter__inner strong,
.vxcr-completion-meter__inner span {
    grid-area: 1 / 1;
}

.vxcr-completion-meter__inner strong {
    transform: translateY(-0.45rem);
    font-size: 1.45rem;
    line-height: 1;
}

.vxcr-completion-meter__inner span {
    transform: translateY(0.75rem);
    color: var(--vxcr-color-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vxcr-completion-meter small {
    color: var(--vxcr-color-muted);
}

.vxcr-analytics-trend {
    overflow: hidden;
}

.vxcr-trend-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
}

.vxcr-trend-controls label {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    margin: 0;
}

.vxcr-trend-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(3.25rem, 1fr);
    gap: 0.65rem;
    min-height: 13rem;
    overflow-x: auto;
    padding: 0.5rem 0 0.25rem;
}

.vxcr-trend-day {
    display: grid;
    grid-template-rows: 9rem auto;
    gap: 0.45rem;
    min-width: 3.25rem;
}

.vxcr-trend-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.25rem;
    min-height: 9rem;
    border-bottom: 1px solid var(--vxcr-color-border-soft);
}

.vxcr-trend-bar {
    display: block;
    width: 0.65rem;
    min-height: 0.35rem;
    border-radius: 999px 999px 0 0;
    background: var(--vxcr-color-primary);
}

.vxcr-trend-bar--time {
    background: var(--vxcr-color-success);
}

.vxcr-trend-label {
    color: var(--vxcr-color-muted);
    font-size: 0.78rem;
    text-align: center;
    white-space: nowrap;
}

.vxcr-analytics-trend:has(input[value="listens"]:checked) .vxcr-trend-bar--time,
.vxcr-analytics-trend:has(input[value="time"]:checked) .vxcr-trend-bar--listens {
    display: none;
}

@supports not selector(:has(*)) {
    .vxcr-trend-controls {
        display: none;
    }
}

@media (max-width: 780px) {
    .vxcr-completion-pair {
        justify-content: center;
    }
}
.vxcr-completion-pair .vxcr-completion-meter::before {
    content: none;
}

.vxcr-completion-pair .vxcr-completion-meter strong {
    font-size: 1.45rem;
}

/*** DASHBOARD OVERVIEW CARDS ***/
.woocommerce-MyAccount-navigation-link--edit-account a::before,
.woocommerce-MyAccount-navigation-link--orders a::before,
.woocommerce-MyAccount-navigation-link--edit-address a::before {
    display: inline-block;
    margin-right: 0.45rem;
    font-family: dashicons !important;
    vertical-align: -0.1em;
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: "\f336" !important;
}

.woocommerce-MyAccount-navigation-link--orders a::before {
    content: "\f174" !important;
}

.woocommerce-MyAccount-navigation-link--edit-address a::before {
    content: "\f230" !important;
}

.vxcr-dashboard-section {
    display: grid;
    gap: 1rem;
}

.vxcr-dashboard-section > h3 {
    margin: 0;
}

.vxcr-dashboard-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.vxcr-dashboard-overview-card {
    display: grid;
    align-content: start;
    gap: 0.7rem;
    padding: 1.1rem;
    border: 1px solid var(--vxcr-color-border-soft);
    border-radius: 18px;
    background: var(--vxcr-color-surface-soft);
}

.vxcr-dashboard-overview-card h4,
.vxcr-dashboard-overview-card h5 {
    margin: 0;
}

.vxcr-dashboard-overview-card h5 {
    color: var(--vxcr-color-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vxcr-dashboard-fact {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--vxcr-color-border-soft);
}

.vxcr-dashboard-fact span {
    color: var(--vxcr-color-muted);
}

.vxcr-dashboard-fact strong {
    color: var(--vxcr-color-text);
    text-align: right;
}

.vxcr-dashboard-empty {
    margin: 0;
    color: var(--vxcr-color-muted);
}

.vxcr-completion-pair {
    justify-content: center;
}

@media (max-width: 780px) {
    .vxcr-dashboard-overview-grid {
        grid-template-columns: 1fr;
    }

    .vxcr-dashboard-fact {
        display: grid;
        gap: 0.2rem;
    }

    .vxcr-dashboard-fact strong {
        text-align: left;
    }
}

/*** ACCOUNT TYPOGRAPHY AND DASHBOARD LAYOUT ***/
.woocommerce-MyAccount-navigation-link--orders a::before {
    content: "\f312" !important;
}

.vxcr-account-dashboard > h2,
.vxcr-history > h2,
.vxcr-analytics > h2,
.woocommerce-MyAccount-content > h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.15;
}

.vxcr-dashboard-section > h3,
.vxcr-history > h3,
.vxcr-analytics > h3 {
    margin: 0;
    font-size: clamp(1.3rem, 1.8vw, 1.65rem);
    font-weight: 650;
    line-height: 1.2;
}

.vxcr-dashboard-overview-card h4,
.vxcr-analytics-card h3,
.vxcr-favorites h2 {
    font-size: clamp(1.15rem, 1.55vw, 1.35rem);
    font-weight: 650;
    line-height: 1.25;
}

.vxcr-dashboard-overview-card h5 {
    font-size: 0.92rem;
    font-weight: 700;
}

.vxcr-dashboard-overview-grid {
    grid-template-columns: 1fr;
}

.vxcr-dashboard-overview-stack {
    display: grid;
    gap: 1rem;
}

.vxcr-dashboard-overview-columns {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.vxcr-dashboard-overview-columns--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vxcr-dashboard-overview-columns--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vxcr-dashboard-overview-columns > div {
    display: grid;
    align-content: start;
    gap: 0.7rem;
}

.vxcr-dashboard-overview-columns .vxcr-dashboard-fact:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 780px) {
    .vxcr-dashboard-overview-columns--three,
    .vxcr-dashboard-overview-columns--two {
        grid-template-columns: 1fr;
    }

    .vxcr-dashboard-overview-columns .vxcr-dashboard-fact:last-child {
        border-bottom: 1px solid var(--vxcr-color-border-soft);
        padding-bottom: 0.55rem;
    }
}

/*** COMMON HISTORY AND ANALYTICS FILTERS ***/
:root {
    --vxcr-color-border: #000;
}

.vxcr-history__filter,
.vxcr-history__filter--submit {
    min-inline-size: 5.5rem;
    justify-content: center;
}


