.q-select {
    width: calc(50% - 60px);
    font: 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #e9eef6;
    position: relative;
}

.q-select__control {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #171b22;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 0 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
    height: 44px;
    line-height: 44px;
}

.q-select[data-open="true"] .q-select__control {
    border-color: #007bff;
    box-shadow: none;
}

.q-select__value {
    display: flex;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}

.q-coin__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    display: block;
}

.q-coin__text {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
}

.q-coin__name {
    color: #e9eef6;
}

.q-coin__symbol {
    color: #e9eef6;
    font-weight: 700;
}

.q-select__caret {
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 0.25s ease;
    opacity: 0.9;
}

.q-select[data-open="true"] .q-select__caret {
    transform: rotate(180deg);
}

.q-select__dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #171b22;
    border: 1px solid #2b3240;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    max-height: 340px;
    overflow: auto;
    display: none;
    padding: 8px;
    z-index: 40;
}

.q-select[data-open="true"] .q-select__dropdown {
    display: block;
}

.q-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.q-option[aria-selected="true"] {
    background: #2a3241;
}

.q-option:hover {
    background: #222833;
}

.q-option__left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.q-option__right {
    margin-left: 16px;
    color: #9aa3b2;
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

/* Кастомний скролбар */
.q-select__dropdown::-webkit-scrollbar {
    width: 10px;
}

.q-select__dropdown::-webkit-scrollbar-thumb {
    background: #2a3241;
    border-radius: 10px;
}

/* Фокус */
.q-select__control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: none;
}

.q-option:focus {
    outline: none;
}

.swap-box {
    border: 1px solid #2a2e39;
    border-radius: 8px;
    padding: 1.5rem 2.5rem;
}

.swap-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.exchange-image {
    border-radius: 50%;
    background: #26de81;
    padding: 10px;
    margin: 0 14px;
    cursor: pointer;
}

.q-msg {
    font-size: 13px;
}

.q-msg--error {
    color: #e53935;
}

.q-msg a.q-link {
    color: #e53935;
    text-decoration: underline;
    cursor: pointer;
}

.q-muted {
    color: #8a8f98;
}

.swap-col {
    display: flex;
    flex-direction: column;
    width: calc(50% - 60px);
    position: relative;
}

.exchange-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #f0b90b;
    color: #0f131a;
    transition: filter .15s ease;
}

.exchange-button:hover {
    filter: brightness(1.08);
}

.swap-hero {
    margin-bottom: 0;
}

.q-input-wrap {
    position: relative;
}

.q-input {
    width: 100%;
    border: 1px solid #2b3240;
    background: #121722;
    color: #e9eef6;
    font-size: 16px;
    border-radius: 4px;
    padding: 0 14px;
    height: 44px;
    line-height: 44px;
}

.q-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.q-balance {
    margin: 8px 4px 8px;
    color: #b6bdc7;
}

.q-balance span {
    color: #fff;
}

.q-btn {
    width: 200px;
    height: 46px;
    border-radius: 10px;
    border: none;
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    opacity: 1;
    transition: opacity .15s ease, filter .15s ease;
}

.q-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.q-btn:not(:disabled):hover {
    filter: brightness(1.08);
}

.q-btn-ghost {
    background: #007bff;
    border: none;
    color: #e9eef6;
    padding: 12px 15px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    margin: 42px 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.q-btn-ghost:hover {
    filter: brightness(1.08);
}

.q-btn:focus,
.q-btn-ghost:focus {
    outline: none;
}

.q-accent {
    color: #22c55e;
}

.swap-info {
    display: flex;
    gap: 24px;
    align-items: center;
    margin: 18px 4px;
    flex-wrap: wrap;
}

.balance-under {
    text-decoration: underline;
}

.swap-line-second {
    align-items: flex-start;
}

.rate-box,
.q-commission {
    margin-top: 30px;
}

.rate-box {
    display: flex;
    justify-content: space-between;
}

.rate-box div:last-child{
    text-align: right;
}

.q-msg--error {
    position: absolute;
    bottom: -28px;
}

.swap-action {
    text-align: center;
}

.questions {
    margin-bottom: 80px;
}

.questions__title {
    margin-bottom: 25px;
}

.accordion-item {
    text-align: left;
    position: relative;
    border: 1px solid #2a2e39;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-item.active .accordion-header {
    background: #222833;
}

.accordion-header {
    cursor: pointer;
    padding: 15px;
    font-weight: bold;
    font-size: 16px;
}

.accordion-header::after {
    content: "▼";
    position: absolute;
    right: 15px;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 15px;
    color: #fff;
}

#light .q-select__control,
#light .q-input {
    background: #f9f9f9;
    border: 1px solid #9d9d9d;
    color: #1c1c28;
}

#light .q-coin__name,
#light .q-coin__symbol {
    color: #1c1c28;
}

#light .q-select__dropdown {
    background: #ececec;
    border: 1px solid #d1d1d1;
}

#light .q-option[aria-selected="true"] {
    background: #e0e0e0;
}

#light .q-option:hover {
    background: #c9c9c9;
}

#light .accordion-item.active .accordion-header {
    background: #e0e0e0;
}

#light .accordion-content {
    color: #1c1c28;
}