/**
 * Trust2 — Crypto Pairs section (futuristic, original card proportions)
 */

body.frontend-futuristic .fe-crypto-pairs {
    position: relative;
    overflow: hidden;
}

body.frontend-futuristic .fe-crypto-pairs__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    color: rgba(255, 255, 255, 0.05);
}

body.frontend-futuristic .fe-pairs-bg__grid {
    width: 100%;
    height: 100%;
    animation: fePairsGridDrift 50s linear infinite;
}

body.frontend-futuristic .fe-pairs-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
}

body.frontend-futuristic .fe-pairs-bg__orb--1 {
    width: 380px;
    height: 380px;
    top: 5%;
    right: -5%;
    background: color-mix(in srgb, var(--color-primary) 30%, transparent);
    animation: fePairsOrb 16s ease-in-out infinite;
}

body.frontend-futuristic .fe-pairs-bg__orb--2 {
    width: 320px;
    height: 320px;
    bottom: 0;
    left: -4%;
    background: rgba(56, 189, 248, 0.15);
    animation: fePairsOrb 20s ease-in-out infinite reverse;
}

body.frontend-futuristic .fe-crypto-pairs .container {
    z-index: 1;
}

body.frontend-futuristic .fe-crypto-pairs__head {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    text-align: center;
}

body.frontend-futuristic .fe-crypto-pairs__head h2 {
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

body.frontend-futuristic .fe-crypto-pairs__head p {
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fe-muted);
}

@media (min-width: 992px) {
    body.frontend-futuristic .fe-crypto-pairs__head {
        max-width: 42rem;
        margin-bottom: 3rem;
    }

    body.frontend-futuristic .fe-crypto-pairs__head p {
        max-width: 36rem;
        font-size: 1.05rem;
    }
}

/* —— Pair card (original converstion-item size/layout) —— */
body.frontend-futuristic .fe-pair-card {
    position: relative;
    height: auto;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-primary) 35%, transparent),
        rgba(255, 255, 255, 0.06) 50%,
        color-mix(in srgb, #38bdf8 20%, transparent)
    );
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.frontend-futuristic .fe-pair-card__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 35px 30px;
    border-radius: 19px;
    background: linear-gradient(160deg, rgba(17, 24, 39, 0.97) 0%, rgba(8, 12, 22, 0.99) 100%);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

body.frontend-futuristic .fe-pair-card__glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 85% 30%, color-mix(in srgb, var(--color-primary) 15%, transparent), transparent 55%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

body.frontend-futuristic .fe-pair-card__corner {
    position: absolute;
    width: 18px;
    height: 18px;
    color: color-mix(in srgb, var(--color-primary) 65%, #fff);
    opacity: 0.4;
    z-index: 3;
    pointer-events: none;
}

body.frontend-futuristic .fe-pair-card__corner--tl { top: 12px; left: 12px; }
body.frontend-futuristic .fe-pair-card__corner--br { bottom: 12px; right: 12px; }

body.frontend-futuristic .fe-pair-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.35),
        0 0 40px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

body.frontend-futuristic .fe-pair-card:hover .fe-pair-card__glow {
    opacity: 1;
}

body.frontend-futuristic .fe-pair-card:hover .fe-pair-card__icons img:first-child {
    margin-right: -50px;
}

/* Content — left (original) */
body.frontend-futuristic .fe-pair-card__content {
    flex-grow: 1;
    text-align: left;
    min-width: 0;
}

body.frontend-futuristic .fe-pair-card__pair {
    margin-bottom: 10px;
    line-height: 1;
    font-size: 18px;
    font-weight: 600;
    color: var(--fe-text);
}

body.frontend-futuristic .fe-pair-card__pair i {
    margin: 0 6px;
    color: var(--color-primary);
    vertical-align: middle;
}

body.frontend-futuristic .fe-pair-card__rate {
    margin-bottom: 0;
    font-size: inherit;
    color: var(--fe-muted);
    line-height: 1.5;
}

body.frontend-futuristic .fe-pair-card__rate strong {
    color: var(--color-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Icons — right (original 45px overlap) */
body.frontend-futuristic .fe-pair-card__icons {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.frontend-futuristic .fe-pair-card__icons img {
    min-width: 45px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: contain;
    transition: margin 0.4s ease;
}

body.frontend-futuristic .fe-pair-card__icons img:first-child {
    margin-right: -10px;
    position: relative;
    z-index: 2;
}

body.frontend-futuristic .fe-pair-card__icons img:last-child {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) and (max-width: 1199px) {
    body.frontend-futuristic .fe-pair-card__inner {
        padding: 28px 24px;
        gap: 20px;
    }
}

/* Mobile — original main.css converstion-item proportions */
@media (max-width: 767px) {
    body.frontend-futuristic .fe-crypto-pairs {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    body.frontend-futuristic .fe-crypto-pairs__head {
        margin-bottom: 1.5rem;
    }

    body.frontend-futuristic .fe-pair-card {
        border-radius: 16px;
    }

    body.frontend-futuristic .fe-pair-card__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 22px 20px;
        gap: 20px;
        border-radius: 15px;
    }

    body.frontend-futuristic .fe-pair-card__content {
        text-align: left;
    }

    body.frontend-futuristic .fe-pair-card__pair {
        font-size: 17px;
        margin-bottom: 8px;
    }

    body.frontend-futuristic .fe-pair-card__rate {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    body.frontend-futuristic .fe-pair-card__icons img {
        min-width: 42px;
        width: 42px;
        height: 42px;
    }

    body.frontend-futuristic .fe-pair-card__icons img:first-child {
        margin-right: -10px;
    }

    body.frontend-futuristic .fe-pair-card:hover .fe-pair-card__icons img:first-child {
        margin-right: -10px;
    }
}

@keyframes fePairsGridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

@keyframes fePairsOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 16px); }
}

@media (prefers-reduced-motion: reduce) {
    body.frontend-futuristic .fe-pairs-bg__grid,
    body.frontend-futuristic .fe-pairs-bg__orb {
        animation: none !important;
    }

    body.frontend-futuristic .fe-pair-card:hover {
        transform: none;
    }

    body.frontend-futuristic .fe-pair-card:hover .fe-pair-card__icons img:first-child {
        margin-right: -10px;
    }
}
