.topbar-bcv-item {
    display: flex;
    align-items: center;
    margin-right: 0;
}

.topbar-bcv-widget {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.30rem 0.65rem;
    cursor: pointer;
    appearance: none;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    color: #0f172a;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topbar-bcv-widget:hover,
.topbar-bcv-widget:focus {
    outline: none;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.24);
}

.topbar-bcv-rate-block {
    display: grid;
    gap: 0.08rem;
    line-height: 1;
}

.topbar-bcv-label {
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2563eb;
}

.topbar-bcv-rate {
    font-size: 0.94rem;
    font-weight: 800;
    white-space: nowrap;
}

.topbar-bcv-divider {
    width: 1px;
    height: 2rem;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.55), rgba(148, 163, 184, 0));
}

.topbar-bcv-datetime {
    display: grid;
    gap: 0.1rem;
    line-height: 1;
    white-space: nowrap;
}

.topbar-bcv-date,
.topbar-bcv-time {
    display: block;
    font-size: 0.76rem;
}

.topbar-bcv-date {
    color: #475569;
    font-weight: 700;
}

.topbar-bcv-time {
    color: #64748b;
    font-weight: 600;
}

.topbar-bcv-modal .modal-dialog {
    max-width: 34rem;
}

.topbar-bcv-modal-content {
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.topbar-bcv-modal-header {
    align-items: flex-start;
    padding: 1.2rem 1.25rem 0.8rem;
    border-bottom: 0;
}

.topbar-bcv-modal-kicker {
    display: inline-block;
    margin-bottom: 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.topbar-bcv-modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}

.topbar-bcv-modal-header .close {
    margin: -0.2rem -0.15rem 0 auto;
    padding: 0.35rem;
    color: #475569;
    opacity: 1;
}

.topbar-bcv-modal-body {
    padding: 0 1.25rem 1.25rem;
}

.topbar-bcv-modal-rate-card {
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #eff6ff, #f8fbff);
    border: 1px solid rgba(96, 165, 250, 0.22);
}

.topbar-bcv-modal-rate-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.topbar-bcv-modal-rate-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.topbar-bcv-modal-rate-meta {
    font-size: 0.82rem;
    color: #64748b;
}

.topbar-bcv-calculator-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.topbar-bcv-field {
    margin-bottom: 0;
}

.topbar-bcv-field label {
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.topbar-bcv-field .input-group-text {
    min-width: 3.25rem;
    justify-content: center;
    font-weight: 800;
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #cbd5e1;
}

.topbar-bcv-field .form-control {
    height: calc(2.875rem + 2px);
    font-size: 1.05rem;
    font-weight: 700;
    border-color: #cbd5e1;
    color: #0f172a;
}

.topbar-bcv-field .form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.topbar-bcv-swap-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    color: #2563eb;
}

.topbar-bcv-hint {
    margin-top: 1rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #64748b;
}

@media (max-width: 767.98px) {
    .topbar-bcv-item {
        margin-right: 0.45rem;
    }

    .topbar-bcv-widget {
        gap: 0.55rem;
        padding: 0.42rem 0.7rem;
    }

    .topbar-bcv-divider,
    .topbar-bcv-date {
        display: none;
    }

    .topbar-bcv-time {
        font-size: 0.72rem;
    }

    .topbar-bcv-modal .modal-dialog {
        width: calc(100% - 1rem);
        max-width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }
}

@media (max-width: 575.98px) {
    .topbar-bcv-widget {
        gap: 0.45rem;
        padding: 0.38rem 0.58rem;
    }

    .topbar-bcv-datetime {
        display: none;
    }

    .topbar-bcv-rate {
        font-size: 0.82rem;
    }

    .topbar-bcv-label {
        font-size: 0.58rem;
    }

    .topbar-bcv-modal-header,
    .topbar-bcv-modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}