/* Rate widget — modern glass card matching site theme */
.exchange-rate-widget {
    position: relative;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.10), rgba(240, 171, 252, 0.06));
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    transition: all 0.25s ease;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.exchange-rate-widget::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(320px at 0% 0%, rgba(167, 139, 250, 0.18), transparent 70%);
    pointer-events: none;
}

.exchange-rate-widget:hover {
    border-color: rgba(167, 139, 250, 0.42);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.18);
    transform: translateY(-1px);
}

.rate-widget-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rate-widget-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #a78bfa, #f0abfc);
    color: #1a1330;
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.35);
}

.rate-widget-info {
    flex: 1;
    min-width: 0;
}

.rate-widget-pair {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rate-widget-value {
    font-size: 1.08rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #f0abfc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Маржа скрыта — пользовательское требование */
.rate-widget-margin { display: none !important; }

/* Светлая тема */
body.light-theme .exchange-rate-widget {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.06), rgba(240, 171, 252, 0.04));
    border-color: rgba(167, 139, 250, 0.22);
}
body.light-theme .rate-widget-pair {
    color: rgba(0, 0, 0, 0.55);
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

@media (max-width: 480px) {
    .exchange-rate-widget { padding: 12px 14px; }
    .rate-widget-icon { width: 32px; height: 32px; font-size: 1rem; }
    .rate-widget-value { font-size: 0.98rem; }
}
