.bank-select {
    position: relative;
}

.bank-select-button {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    color: #fff;
    background: rgba(5,6,20,.82);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.bank-select-button:focus-visible {
    outline: 0;
    border-color: #6f50ff;
    box-shadow: 0 0 0 4px rgba(111,80,255,.15);
}

.bank-select-logo,
.bank-option-logo,
.bank-public-logo,
.bank-admin-logo {
    flex: 0 0 auto;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
}

.bank-select-logo {
    width: 38px;
    height: 38px;
}

.bank-select-logo img,
.bank-option-logo img,
.bank-public-logo img,
.bank-admin-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bank-select-copy {
    min-width: 0;
    flex: 1;
}

.bank-select-copy strong,
.bank-select-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bank-select-copy small {
    margin-top: 2px;
    color: #969db8;
    font-size: 12px;
}

.bank-select-chevron {
    margin-left: auto;
    transition: transform .2s ease;
}

.bank-select.is-open .bank-select-chevron {
    transform: rotate(180deg);
}

.bank-select-menu {
    position: absolute;
    z-index: 70;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    max-height: 390px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: #101126;
    box-shadow: 0 24px 70px rgba(0,0,0,.48);
}

.bank-select.is-open .bank-select-menu {
    display: block;
}

.bank-select-search-wrap {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px;
    background: #101126;
}

.bank-select-search {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    padding: 0 13px;
    color: #fff;
    background: rgba(3,4,15,.76);
    outline: 0;
}

.bank-option-list {
    max-height: 322px;
    overflow-y: auto;
    padding: 0 8px 8px;
}

.bank-option {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.bank-option:hover,
.bank-option.is-selected {
    background: rgba(255,255,255,.065);
}

.bank-option[hidden] {
    display: none;
}

.bank-option-logo {
    width: 36px;
    height: 36px;
}

.bank-option-copy {
    min-width: 0;
    flex: 1;
}

.bank-option-copy strong,
.bank-option-copy small {
    display: block;
}

.bank-option-copy strong {
    font-size: 14px;
}

.bank-option-copy small {
    margin-top: 3px;
    color: #9198b4;
    font-size: 11px;
}

.bank-logo-upload-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.bank-logo-preview {
    width: 78px;
    height: 78px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.045);
}

.bank-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bank-public-card {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
}

.bank-public-logo {
    width: 46px;
    height: 46px;
}

.bank-public-copy {
    min-width: 0;
}

.bank-public-copy span,
.bank-public-copy strong,
.bank-public-copy small {
    display: block;
}

.bank-public-copy span,
.bank-public-copy small {
    color: var(--muted);
}

.bank-public-copy strong {
    font-size: 1.2rem;
    overflow-wrap: anywhere;
}

.bank-public-card .copy-link {
    position: static;
    justify-self: end;
}

.bank-catalog-page {
    width: min(1250px, 100%);
    margin: 0 auto;
    padding: 22px 18px 54px;
}

.bank-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.bank-admin-card {
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 20px;
    background: rgba(13,14,38,.92);
    overflow: hidden;
}

.bank-admin-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.bank-admin-logo {
    width: 54px;
    height: 54px;
}

.bank-admin-copy {
    min-width: 0;
    flex: 1;
}

.bank-admin-copy strong,
.bank-admin-copy small {
    display: block;
}

.bank-admin-copy small {
    margin-top: 4px;
    color: #969db8;
}

.bank-admin-body {
    padding: 16px;
}

.bank-admin-fields {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}

.bank-admin-fields .full {
    grid-column: 1 / -1;
}

.bank-admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 14px;
}

@media (max-width: 860px) {
    .bank-catalog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .bank-logo-upload-row {
        grid-template-columns: 1fr;
    }

    .bank-admin-fields {
        grid-template-columns: 1fr;
    }

    .bank-admin-fields .full {
        grid-column: auto;
    }

    .bank-public-card {
        grid-template-columns: auto minmax(0,1fr);
    }

    .bank-public-card .copy-link {
        grid-column: 1 / -1;
        justify-self: stretch;
        text-align: center;
    }
}


/* R71: compact logo picker with instant preview */
.bank-logo-picker-field {
    min-width: 0;
}

.bank-logo-picker {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;
    background: rgba(5,7,21,.56);
}

.bank-logo-file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.bank-logo-edit-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    margin: 0 !important;
    border: 1px solid rgba(124,92,255,.42);
    border-radius: 12px;
    background: rgba(124,92,255,.14);
    color: #d8d0ff;
    cursor: pointer;
    transition: .18s ease;
}

.bank-logo-edit-btn:hover {
    background: rgba(124,92,255,.28);
    border-color: rgba(124,92,255,.7);
    transform: translateY(-1px);
}

.bank-logo-edit-icon {
    font-size: 21px;
    line-height: 1;
}

.bank-logo-picker-copy {
    min-width: 0;
    flex: 1;
}

.bank-logo-picker-copy strong,
.bank-logo-picker-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bank-logo-picker-copy strong {
    font-size: 12px;
    color: #fff;
}

.bank-logo-picker-copy small {
    margin-top: 3px;
    color: #8f99bb;
    font-size: 10px;
}
