.exchange-wrapper {
    margin-top: 40px;
}

/* Card */
.exchange-card {
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 20px;
    padding: 20px 20px 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

/* Tabs */
.exchange-card .nav-tabs {
    border-bottom: none;
}
.exchange-card .nav-link {
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 4px 0 8px;
    margin-right: 20px;
    font-weight: 500;
}
.exchange-card .nav-link:hover {
    color: var(--text-main);
}
.exchange-card .nav-link.active {
    color: var(--sv-primary);
    border-color: var(--sv-primary);
    background-color: transparent;
}

/* Sections */
.exchange-section {
    background: #F5FAF8;
    border-radius: 16px;
    padding: 14px 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
}
.exchange-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* Inputs + button (light, rounded) */
.currency-select-widget .input-group .form-control.js-amount-input {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    border-radius: 999px 0 0 999px;
}
.currency-select-widget .input-group .form-control.js-amount-input::placeholder {
    color: var(--text-muted);
}
.currency-select-widget .input-group-append .btn {
    background: #F0F5F3;
    border: 1px solid var(--border-light);
    border-left: none;
    color: var(--text-main);
    border-radius: 0 999px 999px 0;
}

/* Submit button */
.exchange-submit-btn {
    width: 100%;
    font-size: 1.05rem;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 999px;
}

/* Dropdown panel (light, aligned to right) */
.currency-select-panel {
    position: absolute;
    z-index: 1050;
    background: #FFFFFF;
    color: var(--text-main);
    border-radius: 18px;
    border: 1px solid var(--border-light);
    width: 360px;
    max-height: 380px;
    overflow-y: auto;
    margin-top: 6px;
    right: 0;
    left: auto;
    box-shadow: var(--shadow-card);
}

.currency-select-header {
    position: sticky;
    top: -1px;
    z-index: 2;
    padding: 8px 10px;
    background: #F5FAF8;
    border-bottom: 1px solid var(--border-light);
}

.currency-select-header .form-control {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    border-radius: 999px;
}
.currency-select-header .form-control::placeholder {
    color: var(--text-muted);
}

/* loader row */
.currency-loader {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
}

.currency-select-panel .form-control {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    border-radius: 999px;
}
.currency-select-panel .form-control::placeholder {
    color: var(--text-muted);
}

/* Items */
.currency-select-widget .currency-item {
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.currency-select-widget .currency-item img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}
.currency-select-widget .currency-item:hover {
    background: #F0F5F3;
}

/* Small typography */
.currency-symbol {
    font-weight: 600;
    font-size: 0.9rem;
}
.currency-name {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.currency-empty {
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
}