/* ArzPaya Related Currencies — cpv2 supplementary cards */

.arzpaya-related-currencies {
    direction: rtl;
    margin-bottom: 32px;
    font-family: IRANSansWeb, Tahoma, Arial, sans-serif;
}

.arzpaya-related-currencies__title {
    margin: 0 0 20px;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.5;
    color: var(--text-body, #213364);
}

.arzpaya-related-currencies__carousel-wrap {
    margin-bottom: 0;
}

.arzpaya-related-currencies__cards {
    display: grid;
    grid-template-columns: repeat(var(--arc-count, 4), minmax(0, 1fr));
    gap: 16px;
}

.arzpaya-related-currencies__dots {
    display: none;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.arzpaya-related-currencies__dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(33, 51, 100, 0.18);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.arzpaya-related-currencies__dot.is-active {
    width: 20px;
    border-radius: 4px;
    background: var(--accent-primary, #3d72fe);
}

.arzpaya-related-currencies__card {
    position: relative;
    display: block;
    min-height: 148px;
    padding: 16px;
    border: 1px solid var(--border-color, #e8edf5);
    border-radius: 12px;
    background: var(--card-bg, #fff);
    box-shadow: 0 2px 8px rgba(33, 51, 100, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease, transform 0.3s ease;
}

.arzpaya-related-currencies__card:hover {
    border-color: rgba(61, 114, 254, 0.28);
    box-shadow: 0 8px 20px rgba(33, 51, 100, 0.08);
}

.arzpaya-related-currencies__card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.arzpaya-related-currencies__card-body {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.arzpaya-related-currencies__card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.arzpaya-related-currencies__identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.arzpaya-related-currencies__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.arzpaya-related-currencies__meta {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    min-width: 0;
    text-align: right;
}

.arzpaya-related-currencies__name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-body, #213364);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.arzpaya-related-currencies__symbol {
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-muted, #6b7a99);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.arzpaya-related-currencies__figures {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    text-align: left;
}

.arzpaya-related-currencies__prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.arzpaya-related-currencies__price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.arzpaya-related-currencies__price-usdt {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary, #1a2744);
}

.arzpaya-related-currencies__price-irt {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-muted, #6b7a99);
}

.arzpaya-related-currencies__change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    direction: ltr;
}

.arzpaya-related-currencies__change.is-up {
    background: #dcfce7;
    color: #16a34a;
}

.arzpaya-related-currencies__change.is-down {
    background: #fee2e2;
    color: #dc2626;
}

.arzpaya-related-currencies__change.is-neutral {
    background: #f3f4f6;
    color: #6b7280;
}

.arzpaya-related-currencies__change-icon {
    font-size: 10px;
    line-height: 1;
}

.arzpaya-related-currencies__change-icon:empty {
    display: none;
}

.arzpaya-related-currencies__chart {
    margin-top: auto;
    width: 100%;
    min-height: 48px;
}

.arzpaya-related-currencies__chart--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(33, 51, 100, 0.06) 0%, rgba(33, 51, 100, 0.12) 50%, rgba(33, 51, 100, 0.06) 100%);
}

.arzpaya-related-currencies__chart-empty-text {
    padding: 0 8px;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: var(--text-muted, #6b7a99);
}

.arzpaya-related-currencies__sparkline {
    display: block;
    width: 100%;
    height: 48px;
}

/* Mobile carousel */
@media (max-width: 768px) {
    .arzpaya-related-currencies__cards {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 4px 12px;
    }

    .arzpaya-related-currencies__cards::-webkit-scrollbar {
        display: none;
    }

    .arzpaya-related-currencies__card {
        flex: 0 0 82%;
        min-height: 112px;
        scroll-snap-align: start;
        opacity: 0.88;
    }

    .arzpaya-related-currencies__card.is-active {
        opacity: 1;
        transform: scale(1.01);
    }

    .arzpaya-related-currencies__card-body {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .arzpaya-related-currencies__card-info {
        flex: 1;
        min-width: 0;
        order: 2;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
    }

    .arzpaya-related-currencies__figures {
        align-items: flex-start;
        text-align: right;
    }

    .arzpaya-related-currencies__prices {
        align-items: flex-start;
    }

    .arzpaya-related-currencies__chart {
        flex: 0 0 42%;
        max-width: 140px;
        min-height: 56px;
        order: 1;
        margin-top: 0;
    }

    .arzpaya-related-currencies__chart--empty {
        min-height: 56px;
    }

    .arzpaya-related-currencies__sparkline {
        height: 56px;
    }

    .arzpaya-related-currencies__dots {
        display: flex;
    }
}

/* Dark mode */
[data-theme="dark"] .arzpaya-related-currencies__title {
    color: var(--text-body, #e8edf5);
}

[data-theme="dark"] .arzpaya-related-currencies__card {
    background: var(--card-bg, #1a2235);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

[data-theme="dark"] .arzpaya-related-currencies__card:hover {
    border-color: rgba(79, 139, 255, 0.35);
}

[data-theme="dark"] .arzpaya-related-currencies__name,
[data-theme="dark"] .arzpaya-related-currencies__price-usdt {
    color: var(--text-primary, #f0f4ff);
}

[data-theme="dark"] .arzpaya-related-currencies__price-irt,
[data-theme="dark"] .arzpaya-related-currencies__symbol,
[data-theme="dark"] .arzpaya-related-currencies__chart-empty-text {
    color: var(--text-muted, #9aa8c4);
}

[data-theme="dark"] .arzpaya-related-currencies__change.is-up {
    background: rgba(74, 222, 128, 0.16);
    color: #4ade80;
}

[data-theme="dark"] .arzpaya-related-currencies__change.is-down {
    background: rgba(248, 113, 113, 0.16);
    color: #f87171;
}

[data-theme="dark"] .arzpaya-related-currencies__change.is-neutral {
    background: rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

[data-theme="dark"] .arzpaya-related-currencies__chart--empty {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 100%);
}

[data-theme="dark"] .arzpaya-related-currencies__dot {
    background: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .arzpaya-related-currencies__dot.is-active {
    background: var(--accent-primary, #4f8bff);
}
