/* EXCHANGE V2 - REAL SELECTORS */

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-counts {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-counts span {
    width: 100% !important;
    min-height: 38px !important;
    padding: 6px 10px !important;
    box-sizing: border-box !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-card {
    padding: 8px !important;
    margin-bottom: 8px !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-button {
    min-height: 38px !important;
    padding: 6px 10px !important;
    margin: 0 !important;
}

.mybro-exchange-card {
    display: grid !important;
    grid-template-columns: 54px 1fr !important;
    gap: 5px !important;
    padding: 10px !important;
    margin-bottom: 2px !important;
}

.mybro-exchange-avatar {
    width: 54px !important;
    height: 54px !important;
}

.mybro-exchange-avatar img,
.mybro-exchange-avatar-img {
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}
.mybro-screen[data-screen="exchange"] .mybro-exchange-card{
    background:rgba(9,9,9,.86)!important;
    border:2px solid rgba(255,106,0,.85)!important;
    border-radius:18px!important;
    box-shadow:0 16px 28px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.08)!important;
}

.mybro-screen[data-screen="exchange"] .mybro-match-badge{
    background:#ff6a00!important;
    color:#111!important;
    border:2px solid #ffd24a!important;
    border-radius:999px!important;
    font-weight:900!important;
}

.mybro-screen[data-screen="exchange"] .mybro-contact-chip{
    background:rgba(255,255,255,.1)!important;
    border:1px solid rgba(255,255,255,.25)!important;
    color:#fff!important;
}

.mybro-screen[data-screen="exchange"] .mybro-whatsapp-chip{
    color:#25D366!important;
}

.mybro-screen[data-screen="exchange"] .mybro-telegram-chip{
    color:#229ED9!important;
}

.mybro-screen[data-screen="exchange"] .mybro-exchange-actions .mybro-button{
    background:#ff6a00!important;
    color:#111!important;
    border:2px solid #ffd24a!important;
    font-weight:900!important;
}

.mybro-screen[data-screen="exchange"] .mybro-exchange-counts span{
    background:rgba(255,255,255,.08)!important;
    border:1px solid rgba(255,255,255,.14)!important;
    border-radius:12px!important;
}

.mybro-exchange-body {
    min-width: 0 !important;
}

.mybro-exchange-match-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.mybro-exchange-match-head strong {
    font-size: 19px !important;
    line-height: 1 !important;
}

.mybro-exchange-location {
    font-size: 12px !important;
    line-height: 1.1 !important;
    margin-top: 3px !important;
}

.mybro-exchange-contact-icons {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-wrap: nowrap !important;
    margin-top: 5px !important;
}

.mybro-contact-chip {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mybro-contact-svg {
    width: 14px !important;
    height: 14px !important;
}

.mybro-view-match-chip {
    width: auto !important;
    min-height: 26px !important;
    height: 26px !important;
    padding: 3px 9px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
}

.mybro-match-badge {
    flex: 0 0 auto !important;
    padding: 5px 8px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.mybro-exchange-counts {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: 8px !important;
}

.mybro-exchange-counts span {
    width: 100% !important;
    min-height: 42px !important;
    padding: 7px 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.mybro-exchange-actions {
    grid-column: 1 / -1 !important;
    display: grid !important;
    /*grid-template-columns: repeat(1, minmax(0, 1fr)) !important;*/
    gap: 8px !important;
    margin-top: 8px !important;
}

.mybro-exchange-actions .mybro-button,
.mybro-request-contact-button {
    min-height: 42px !important;
    padding: 7px 10px !important;
    margin: 0 !important;
    font-size: 13px !important;
    border-radius: 12px !important;
}

.mybro-exchange-actions .mybro-request-contact-button:only-child {
    grid-column: 1 / -1 !important;
}
/* EXCHANGE V2 - COMPACT REAL HTML */

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-avatar {
    width: 46px !important;
    height: 46px !important;
    align-self: flex-start !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-avatar-img,
body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-avatar img {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-body {
    min-width: 0 !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-match-head {
    gap: 6px !important;
    margin-bottom: 4px !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-match-head strong {
    font-size: 18px !important;
    line-height: 1 !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-location {
    margin-top: 2px !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-contact-icons {
    margin-top: 5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-wrap: nowrap !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-contact-chip {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-contact-svg {
    width: 13px !important;
    height: 13px !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-view-match-chip {
    width: auto !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 2px 8px !important;
    margin: 0 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-match-badge {
    padding: 5px 7px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-counts {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    margin-top: 6px !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-counts span {
    min-height: 34px !important;
    padding: 5px 9px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-actions {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 6px !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-actions .mybro-button {
    min-height: 36px !important;
    padding: 5px 8px !important;
    margin: 0 !important;
    font-size: 12px !important;
    border-radius: 10px !important;
}
/* Fix circular avatar/contact chips */

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-avatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex: 0 0 48px !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-avatar-img,
body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-avatar img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-contact-chip {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 26px !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-contact-chip .mybro-contact-svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    display: block !important;
}
.mybro-exchange-details{
    max-height:0;
    overflow:hidden;
    opacity:0;
    transition:
        max-height .35s ease,
        opacity .25s ease;
}

.mybro-exchange-card.is-open .mybro-exchange-details{
    max-height:300px;
    opacity:1;
}

.mybro-exchange-toggle{
    width:100%;
    margin-top:8px !important;
    min-height:34px !important;
    font-size:12px !important;
    background:rgba(255,106,0,.12) !important;
    border:1px solid rgba(255,106,0,.45) !important;
}
/* Avatar centering fix */

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-avatar img,
body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-avatar-img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

/* Button Centered */

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-toggle {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    min-height: 34px !important;
    padding: 6px 10px !important;
    border-radius: 12px !important;
    background: rgba(255,106,0,.14) !important;
    border: 1px solid rgba(255,106,0,.55) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    letter-spacing: .04em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.mybro-collector-standalone .mybro-screen[data-screen="exchange"] .mybro-exchange-details {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}
/* Exchange Request Buttons */

.mybro-exchange-actions{
    display:flex !important;
    width:100%;
    gap:10px;
}

.mybro-request-exchange{
    width:100% !important;
    flex:1 1 100% !important;
}

.mybro-request-exchange.is-pending{
    width:100% !important;
    flex:1 1 100% !important;
}

.mybro-request-exchange.is-declined{
    width:100% !important;
    flex:1 1 100% !important;
}

.mybro-whatsapp-button,
.mybro-telegram-button{
    flex:1;
}
.mybro-screen[data-screen="home"]{
    position:relative;
}

.mybro-notification-bell{
    position:absolute;
    top:12px;
    right:12px;

    width:36px;
    height:36px;

    border:2px solid #ff8c00;
    border-radius:50%;

    background:#101010;
    padding:0;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;
    z-index:100;
}

.mybro-notification-bell img{
    width:24px;
    height:24px;
    object-fit:contain;
    display:block;
}

.mybro-notification-bell span{
    position:absolute;
    top:-5px;
    right:-5px;

    min-width:20px;
    height:20px;

    background:#ff8c00;
    color:#fff;

    border-radius:50%;

    font-size:12px;
    font-weight:700;

    display:flex;
    align-items:center;
    justify-content:center;
}
#mybro-notifications-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.mybro-notification-item{
    border:1px solid rgba(255,140,0,.45);
    border-radius:14px;
    padding:12px;
    background:rgba(0,0,0,.35);
}

.mybro-notification-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:10px;
}
.mybro-activity-status{
    font-size:10px;
    font-weight:900;
    text-transform:uppercase;
    padding:4px 7px;
    border-radius:999px;
    white-space:nowrap;
}

.mybro-activity-status.received{
    background:#ff8c00;
    color:#111;
}

.mybro-activity-status.accepted{
    background:#04cf5c;
    color:#111;
}

.mybro-activity-status.declined{
    background:#e60000;
    color:#fff;
}
#mybro-pack-add-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.85);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99998;
    padding:18px;
}

#mybro-pack-add-modal.is-open{
    display:flex;
}

#mybro-pack-add-modal .mybro-scan-code-box{
    width:100%;
    max-width:420px;
}

#mybro-pack-add-modal-input{
    width:100%;
    margin-top:12px;
}
/* =========================================================
   Open Pack Add Card modal hard fix
   Keeps the modal out of the old inline Open Pack layout.
   ========================================================= */
body.mybro-collector-standalone #mybro-pack-add-modal{
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 100500 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    box-sizing: border-box !important;
    background: rgba(0,0,0,.86) !important;
    backdrop-filter: blur(14px) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: hidden !important;
}

body.mybro-collector-standalone #mybro-pack-add-modal.is-open{
    display: flex !important;
}

body.mybro-collector-standalone #mybro-pack-add-modal .mybro-scan-code-box{
    width: min(92vw, 430px) !important;
    min-height: 360px !important;
    max-height: 86dvh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    padding: 24px 18px !important;
    border-radius: 26px !important;
    border: 2px solid rgba(255,124,0,.90) !important;
    background: rgba(5,5,5,.97) !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.68), 0 0 28px rgba(255,106,0,.22) !important;
}

body.mybro-collector-standalone #mybro-pack-add-modal-input{
    width: 100% !important;
    min-height: 45px !important;
    box-sizing: border-box !important;
    margin: 18px 0 12px !important;
    padding: 14px 16px !important;
    font-size: 22px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    color: #fff !important;
    background: #111 !important;
    border: 2px solid #ff7c00 !important;
    border-radius: 0 !important;
}

body.mybro-collector-standalone #mybro-pack-add-modal .mybro-modal-actions{
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 18px !important;
}

body.mybro-collector-standalone #mybro-pack-add-modal .mybro-modal-actions button{
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 12px 8px !important;
    border-radius: 14px !important;
}
.mybro-dialog-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.82);
    z-index:99999;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:20px;
}

.mybro-dialog-box{
    width:min(92vw,480px);

    background:#090909;

    border:2px solid #ff7c00;
    border-radius:20px;

    padding:24px;

    box-shadow:0 20px 60px rgba(0,0,0,.6);

    text-align:center;
}

.mybro-dialog-box h2{
    margin:0 0 14px;
    color:#ff7c00;
}

.mybro-dialog-box p{
    margin:0 0 24px;
    color:#fff;
    line-height:1.4;
}

.mybro-dialog-actions{
    display:flex;
    gap:10px;
}

.mybro-dialog-actions button{
    flex:1;
}
#mybro-dialog-overlay{
    position:fixed !important;
    inset:0 !important;
    display:none;
    align-items:center !important;
    justify-content:center !important;
    background:rgba(0,0,0,.86) !important;
    z-index:2147483000 !important;
    padding:20px !important;
}

#mybro-dialog-overlay .mybro-dialog-box{
    position:relative !important;
    z-index:2147483001 !important;
    width:min(92vw,460px) !important;
    background:#050505 !important;
    border:2px solid #ff7c00 !important;
    border-radius:24px !important;
    padding:24px !important;
    box-shadow:0 24px 70px rgba(0,0,0,.75) !important;
    text-align:center !important;
}

#mybro-dialog-overlay .mybro-dialog-actions{
    display:flex !important;
    gap:10px !important;
}

#mybro-dialog-overlay .mybro-dialog-actions button{
    flex:1 !important;
    margin:0 !important;
}
