.asset-dropdown { display: none; }
.asset-dropdown.active { display: block; }

.asset-dropdown-empty,
.asset-dropdown-item { padding: 11px; }

.asset-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    cursor: pointer;
}

.asset-dropdown-item-left {
    display: inline-flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 9px;
}

.asset-dropdown-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    overflow: hidden;
    border-radius: 11px;
    background: #edf4e9;
}

.asset-dropdown-item-symbol { font-weight: 950; }

.asset-dropdown-item-text {
    min-width: 0;
    max-width: 100%;
}

.asset-dropdown-item-symbol-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}

.asset-dropdown-item-symbol {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-dropdown-item-mixer-badge,
.asset-selected-mixer-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 7px;
    border: 1px solid rgba(96, 208, 240, 0.5);
    border-radius: 999px;
    color: #0f8aa8;
    background: rgba(96, 208, 240, 0.14);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.asset-selected-mixer-badge {
    flex: 0 0 auto;
}

.asset-dropdown-item-chain,
.asset-dropdown-item-chain-name,
.asset-selected-chain,
.net-badge,
.order-token-chain-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 7px;
    border: 1px solid #d5e5d2;
    border-radius: 999px;
    color: var(--accent-primary);
    background: #f3f8f1;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

.asset-dropdown-item-chain {
    flex: 0 1 auto;
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .asset-dropdown-empty,
    .asset-dropdown-item {
        padding: 9px;
    }

    .asset-dropdown-item {
        gap: 6px;
    }

    .asset-dropdown-item-left {
        gap: 7px;
    }

    .asset-dropdown-item-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        border-radius: 10px;
    }

    .asset-dropdown-item-symbol-row {
        gap: 4px;
    }

    .asset-dropdown-item-mixer-badge,
    .asset-selected-mixer-badge,
    .asset-dropdown-item-chain,
    .asset-dropdown-item-chain-name,
    .asset-selected-chain,
    .net-badge,
    .order-token-chain-badge {
        padding: 2px 5px;
        font-size: 9px;
    }

    .asset-dropdown-item-mixer-badge {
        padding-inline: 4px;
        font-size: 8px;
        letter-spacing: 0;
    }

    .asset-dropdown-item-chain {
        max-width: 52px;
    }

    .asset-selected-mixer-badge {
        padding-inline: 4px;
        font-size: 8px;
        letter-spacing: 0;
    }
}

.asset-dropdown-footer {
    position: sticky;
    bottom: -10px;
    padding-top: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 45%);
}

.asset-dropdown-more,
.asset-dropdown-retry {
    width: 100%;
    min-height: 38px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #f8fbf6;
    font-weight: 900;
}

.token-icon--placeholder { opacity: 0.7; }

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10000;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    min-width: min(340px, calc(100vw - 32px));
    max-width: min(440px, calc(100vw - 32px));
    padding: 13px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.success { border-color: #b8dcc4; }
.toast.error { border-color: #efc2c2; }
.toast-icon { color: var(--accent-primary); }
.toast-message {
    min-width: 0;
    color: var(--text-primary);
    font-weight: 800;
}
.toast-code {
    color: var(--text-muted);
    font-size: 12px;
}
.toast-close {
    width: 28px;
    height: 28px;
    color: var(--text-secondary);
    border: 1px solid rgba(220, 229, 217, 0.92);
    border-radius: 50%;
    background: #fff;
}

.reviews-section {
    padding: 0 0 clamp(34px, 6vw, 64px);
    background: transparent;
}

.reviews-panel {
    position: relative;
    overflow: visible;
    padding: 56px clamp(20px, 4vw, 34px) clamp(20px, 4vw, 34px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 246, 0.88)),
        radial-gradient(circle at 12% 0%, rgba(105, 167, 216, 0.18), transparent 30%),
        radial-gradient(circle at 95% 20%, rgba(47, 125, 91, 0.13), transparent 28%);
    box-shadow: var(--shadow-md);
}

.reviews-panel::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 22px;
    pointer-events: none;
}

.reviews-head {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    max-width: calc(100% - 44px);
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1;
    text-align: center;
    transform: translateX(-50%);
    white-space: nowrap;
}

.reviews-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #415448;
    font-size: 10.5px;
    font-weight: 950;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.reviews-eyebrow::before,
.reviews-eyebrow::after {
    content: none;
}

.reviews-total {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    color: #68776c;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.reviews-total::before {
    content: "";
    width: 1px;
    height: 14px;
    margin-right: 8px;
    background: rgba(47, 125, 91, 0.28);
}

.reviews-total strong {
    color: #147044;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.01em;
    text-transform: none;
}

.reviews-head h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(1.35rem, 3.2vw, 2.1rem);
    font-weight: 950;
    letter-spacing: -0.045em;
}

.reviews-head p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: clamp(0.92rem, 2vw, 1rem);
    font-weight: 700;
    line-height: 1.55;
}

.reviews-track {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.review-tile {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    padding: 12px 16px;
    overflow: visible;
    border: 1px solid rgba(220, 229, 217, 0.9);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 26px rgba(48, 65, 49, 0.07);
    line-height: 0;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.review-tile__deposit {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: calc(100% - 16px);
    padding: 4px 8px;
    overflow: hidden;
    color: #31513f;
    border: 1px solid rgba(47, 125, 91, 0.34);
    border-radius: 999px;
    background: #eef9f1;
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1;
    text-overflow: ellipsis;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.review-tile__deposit strong {
    color: #12643d;
    font-size: 11.5px;
    font-weight: 950;
}

a.review-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 125, 91, 0.28);
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(48, 65, 49, 0.12);
}

.review-tile img {
    display: block;
    max-width: 100%;
    max-height: 54px;
    border-radius: 12px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .toast {
        right: 9px;
        bottom: 9px;
    }

    .reviews-section {
        padding-bottom: 34px;
    }

    .reviews-panel {
        padding: 52px 18px 18px;
        border-radius: 24px;
    }

    .reviews-head {
        top: 16px;
        gap: 10px;
        max-width: calc(100% - 28px);
        padding: 0 10px;
    }

    .reviews-eyebrow {
        font-size: 8.5px;
        letter-spacing: 0.12em;
    }

    .reviews-total {
        gap: 4px;
        font-size: 8.5px;
        letter-spacing: 0.02em;
    }

    .reviews-total::before {
        height: 12px;
        margin-right: 6px;
    }

    .reviews-total strong {
        font-size: 11px;
    }

    .reviews-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .review-tile {
        min-height: 72px;
        padding: 10px;
        border-radius: 16px;
    }

    .review-tile__deposit {
        padding: 3px 6px;
        font-size: 9px;
    }

    .review-tile__deposit strong {
        font-size: 10px;
    }

    .review-tile img {
        max-height: 46px;
    }
}
