/* QR bet assistant — a light Messenger-style conversation surface. */
.qr-bot-modal .modal-dialog {
    max-width: 680px;
    margin: 1rem auto;
}

.qr-bot-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #f6f8fc;
    box-shadow: 0 30px 90px rgba(22, 35, 61, .24);
}

.qr-bot-chat-active .tx-launcher,
.qr-play-mode-active .tx-launcher,
.qr-legacy-mode-active .tx-launcher {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transform: translateY(16px) scale(.82) !important;
}

.qr-legacy-modal .modal-dialog {
    max-width: 620px;
    margin: 1rem auto;
}

.qr-legacy-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #f6f8fc;
    box-shadow: 0 30px 90px rgba(22, 35, 61, .24);
}

.qr-legacy-shell {
    color: #17233d;
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.qr-legacy-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 76px;
    padding: 13px 64px 13px 18px;
    color: #fff;
    background-image:
        linear-gradient(90deg, rgba(20, 12, 16, .78), rgba(32, 16, 14, .44)),
        url('/images/bg.webp?v=20260716chat1');
    background-position: center 39%;
    background-size: cover;
}

.qr-legacy-avatar {
    box-sizing: border-box;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: transparent url('/TX_Bet/assets/TX_Bet/extracted/ig_khung_ava.png') center / 100% 100% no-repeat;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(20, 10, 5, .3);
}

.qr-legacy-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.qr-legacy-heading {
    min-width: 0;
    flex: 1;
}

.qr-legacy-heading strong,
.qr-legacy-heading small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-legacy-heading strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.qr-legacy-heading small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .86);
    font-size: .74rem;
}

.qr-legacy-close {
    position: absolute;
    top: 1px;
    right: 0;
    width: 52px;
    height: 33px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.qr-legacy-close img {
    display: block;
    width: 100%;
    height: auto;
}

.qr-legacy-controlbar {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    padding: 9px 18px;
    color: #536783;
    font-size: .74rem;
    font-weight: 800;
    background: #f6f8fc;
    border-bottom: 1px solid #e8edf5;
}

.qr-legacy-controlbar i {
    color: #e95c1a;
}

.qr-legacy-controlbar em {
    margin-left: 0;
    padding: 3px 7px;
    color: #d94e13;
    font-size: .56rem;
    font-style: normal;
    letter-spacing: .06em;
    background: #fff1e9;
    border-radius: 999px;
}

.qr-legacy-mode-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.qr-legacy-switch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 8px;
    color: #fff;
    font: inherit;
    font-size: .62rem;
    font-weight: 900;
    background: #e9621c;
    border: 1px solid #e9621c;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 9px rgba(222, 82, 18, .2);
    transition: background .18s ease, transform .18s ease;
}

.qr-legacy-switch:hover,
.qr-legacy-switch:focus-visible {
    background: #d8520e;
    outline: 0;
    transform: translateY(-1px);
}

.qr-legacy-body {
    padding: 17px 18px 18px;
    background: #f6f8fc;
}

.qr-legacy-choice-row {
    display: grid;
    grid-template-columns: minmax(145px, 175px) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin: 0 0 12px;
}

.qr-legacy-choice-control {
    min-width: 0;
}

.qr-legacy-rule {
    align-self: stretch;
    margin: 0;
    padding: 9px 11px 10px;
    color: #52637e;
    font-size: .67rem;
    line-height: 1.45;
    border: 1px solid #e0e7f1;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff, #f1f5fb);
}

.qr-legacy-rule,
.qr-legacy-rule p,
.qr-legacy-rule span:not(.qr-legacy-rule__rate) {
    color: #50617d !important;
    -webkit-text-fill-color: #50617d !important;
    text-shadow: none !important;
}

.qr-legacy-rule__head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: #263552;
    font-size: .7rem;
}

.qr-legacy-rule__head > i {
    color: #ef611d;
}

.qr-legacy-rule__head strong {
    color: #263552 !important;
    -webkit-text-fill-color: #263552 !important;
    font-weight: 900;
}

.qr-legacy-rule__rate {
    margin-left: auto;
    padding: 2px 6px;
    color: #cf5016 !important;
    -webkit-text-fill-color: #cf5016 !important;
    font-size: .59rem;
    font-weight: 900;
    background: #fff0e8;
    border-radius: 999px;
}

.qr-legacy-rule__choice {
    margin-bottom: 4px;
    color: #71809a;
}

.qr-legacy-rule__choice b,
.qr-legacy-rule p b {
    color: #dd571a !important;
    -webkit-text-fill-color: #dd571a !important;
    font-weight: 900;
}

.qr-legacy-rule p {
    margin: 2px 0 0;
}

.qr-legacy-label {
    display: block !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    color: #60718c !important;
    font-size: .7rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.qr-legacy-label::before,
.qr-legacy-label::after {
    display: none !important;
    content: none !important;
}

.qr-legacy-select {
    display: block !important;
    width: 100% !important;
    min-height: 39px !important;
    margin: 0 0 12px !important;
    padding: 7px 10px !important;
    color: #263552 !important;
    -webkit-text-fill-color: #263552 !important;
    font: inherit !important;
    font-size: .8rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-shadow: none !important;
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    border: 1px solid #dce4ef !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.qr-legacy-select--native {
    display: none !important;
}

.qr-legacy-bet-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.qr-legacy-bet-action {
    width: 100%;
    min-width: 0;
    min-height: 37px;
    font-size: .66rem;
}

.qr-legacy-bet-actions > .qr-legacy-bet-action:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 52%;
    justify-self: center;
}

.qr-legacy-select option {
    color: #263552 !important;
    -webkit-text-fill-color: #263552 !important;
    background: #fff !important;
}

.qr-legacy-grid {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
}

.qr-legacy-image {
    padding: 7px;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 12px;
}

.qr-legacy-image img {
    display: block;
    width: 100%;
    height: auto;
}

.qr-legacy-qr-column {
    min-width: 0;
    text-align: center;
}

.qr-legacy-qr-download {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    min-height: 33px;
    padding: 2px 5px;
    margin-top: 3px;
    place-items: center;
    color: #6d7c94;
    font-size: .82rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
    transition: color .18s ease, transform .18s ease, background .18s ease;
}

.qr-legacy-qr-download span {
    font-size: .55rem;
    font-weight: 800;
    line-height: 1.05;
}

.qr-legacy-qr-download i {
    margin-top: 1px;
    font-size: .7rem;
}

.qr-legacy-qr-download:hover,
.qr-legacy-qr-download:focus-visible,
.qr-legacy-qr-download.is-downloaded {
    color: #e55a19;
    background: #fff0e9;
    outline: 0;
    transform: translateY(-1px);
}

.qr-legacy-details {
    display: grid;
    gap: 7px;
    padding: 11px;
    margin: 0;
    background: #fff;
    border: 1px solid #e4eaf3;
    border-radius: 14px;
}

.qr-legacy-details > div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 6px;
}

.qr-legacy-details > .qr-legacy-bank-picker {
    position: relative;
    display: block;
    margin-bottom: 2px;
}

.qr-legacy-bank-select {
    display: grid;
    width: 100%;
    min-height: 42px;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
    color: #273653;
    font: inherit;
    text-align: left;
    background: #f7f9fc;
    border: 1px solid #e3eaf3;
    border-radius: 9px;
    cursor: pointer;
}

.qr-legacy-bank-select > img,
.qr-legacy-bank-option > img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 7px;
}

.qr-legacy-bank-select span,
.qr-legacy-bank-option span {
    min-width: 0;
}

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

.qr-legacy-bank-select small {
    color: #8997aa;
    font-size: .56rem;
    font-weight: 700;
}

.qr-legacy-bank-select strong {
    color: #2c3a55;
    font-size: .68rem;
    font-weight: 900;
}

.qr-legacy-bank-select b {
    color: #8290a5;
    font-size: .85rem;
}

.qr-legacy-bank-menu {
    position: absolute;
    z-index: 5;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 165px;
    padding: 4px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee6f0;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(31, 47, 76, .18);
}

.qr-legacy-bank-menu[hidden] {
    display: none;
}

.qr-legacy-bank-option {
    display: grid;
    width: 100%;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 7px;
    padding: 6px;
    color: #2a3955;
    font: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.qr-legacy-bank-option:hover,
.qr-legacy-bank-option:focus-visible,
.qr-legacy-bank-option.is-selected {
    background: #fff1e9;
    outline: 0;
}

.qr-legacy-bank-option strong {
    font-size: .66rem;
    font-weight: 900;
}

.qr-legacy-bank-option small {
    margin-top: 1px;
    color: #8997aa;
    font-size: .58rem;
}

.qr-legacy-details dt {
    color: #8391a7;
    font-size: .68rem;
    font-weight: 700;
}

.qr-legacy-details dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #2d3c57;
    font-size: .72rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-legacy-details dd.is-content {
    color: #e35b1b;
}

.qr-legacy-note {
    margin: 12px 0 0;
    padding: 8px 10px;
    color: #7d8ba0;
    font-size: .68rem;
    line-height: 1.48;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 10px;
}

.qr-play-mode-modal .modal-dialog {
    max-width: 470px;
    margin: 1rem auto;
}

.qr-play-mode-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: #f7f9fd;
    box-shadow: 0 28px 84px rgba(21, 30, 50, .3);
}

.qr-play-mode-header {
    position: relative;
    padding: 22px 60px 21px 22px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(15, 21, 37, .93), rgba(36, 35, 61, .76)),
        url('/images/bg.webp?v=20260716chat1') center / cover;
}

.qr-play-mode-kicker {
    display: block;
    margin-bottom: 5px;
    color: #ffd98c;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.qr-play-mode-header h2 {
    margin: 0;
    font-size: 1.16rem;
    font-weight: 900;
}

.qr-play-mode-header p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: .74rem;
    line-height: 1.48;
}

.qr-play-mode-close {
    position: absolute;
    top: 13px;
    right: 13px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    font-size: 1rem;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 11px;
    cursor: pointer;
}

.qr-play-mode-options {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.qr-play-mode-choice {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: 48px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 11px;
    min-height: 80px;
    padding: 14px;
    color: #2f3d58;
    font: inherit;
    text-align: left;
    background: #fff;
    border: 1px solid #e2e8f1;
    border-radius: 15px;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.qr-play-mode-choice:hover,
.qr-play-mode-choice:focus-visible {
    outline: 0;
    transform: translateY(-2px);
}

.qr-play-mode-choice--bot {
    padding-top: 19px;
    color: #6b3108;
    background: linear-gradient(135deg, #fffdf5, #fff1bd);
    border-color: #ffc83f;
    box-shadow: 0 9px 22px rgba(255, 173, 24, .24), inset 0 0 0 1px rgba(255, 255, 255, .58);
}

.qr-play-mode-choice--bot:hover,
.qr-play-mode-choice--bot:focus-visible {
    border-color: #ff9f1c;
    box-shadow: 0 13px 28px rgba(255, 151, 12, .32), inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.qr-play-mode-choice__badge {
    position: absolute;
    top: -8px;
    left: 15px;
    padding: 3px 8px;
    color: #fff;
    font-size: .54rem;
    font-weight: 900;
    letter-spacing: .08em;
    background: #ef7315;
    border: 2px solid #fff7db;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(213, 93, 13, .24);
}

.qr-play-mode-choice__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #8997ac;
    font-size: 1.18rem;
    background: #f1f4f8;
    border-radius: 14px;
}

.qr-play-mode-choice--bot .qr-play-mode-choice__icon {
    color: #fff;
    background: linear-gradient(135deg, #ff9a29, #ef5b14);
    box-shadow: 0 7px 15px rgba(238, 91, 20, .28);
}

.qr-play-mode-choice__content {
    min-width: 0;
}

.qr-play-mode-choice__content strong,
.qr-play-mode-choice__content small {
    display: block;
}

.qr-play-mode-choice__content strong {
    font-size: .86rem;
    font-weight: 900;
}

.qr-play-mode-choice__content small {
    margin-top: 3px;
    color: #718098;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.35;
}

.qr-play-mode-choice--bot .qr-play-mode-choice__content small {
    color: #895b25;
}

.qr-play-mode-choice__arrow {
    color: #9aa7b9;
    font-size: .75rem;
}

.qr-play-mode-choice--bot .qr-play-mode-choice__arrow {
    color: #e66513;
}

.qr-play-mode-choice.is-chosen {
    pointer-events: none;
    transform: scale(.98);
    opacity: .72;
}

.qr-bot-shell {
    display: flex;
    flex-direction: column;
    height: min(760px, calc(100vh - 2rem));
    min-height: 540px;
    color: #17233d;
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.qr-bot-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 76px;
    padding: 13px 64px 13px 18px;
    color: #fff;
    isolation: isolate;
    background-image:
        linear-gradient(90deg, rgba(20, 12, 16, .78), rgba(32, 16, 14, .44)),
        url('/images/bg.webp?v=20260716chat1');
    background-position: center 39%;
    background-size: cover;
}

.qr-bot-header::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(255, 104, 34, .16), transparent 64%);
}

.qr-bot-header > * {
    position: relative;
    z-index: 1;
}

.qr-bot-avatar {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    overflow: visible;
    border-radius: 50%;
    background: transparent url('/TX_Bet/assets/TX_Bet/extracted/ig_khung_ava.png') center / 100% 100% no-repeat;
    box-shadow: 0 8px 18px rgba(20, 10, 5, .3);
}

.qr-bot-avatar img {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
    border-radius: 50%;
}

.qr-bot-avatar::after {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 11px;
    height: 11px;
    content: "";
    background: #2ed47a;
    border: 2px solid #ff762e;
    border-radius: 50%;
}

.qr-bot-heading {
    min-width: 0;
    flex: 1;
}

.qr-bot-heading strong,
.qr-bot-heading small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-bot-heading strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.qr-bot-heading small {
    margin-top: 2px;
    font-size: .74rem;
    color: rgba(255, 255, 255, .86);
}

.qr-bot-close {
    display: grid;
    position: absolute;
    z-index: 2;
    top: 1px;
    right: 0;
    width: 52px;
    height: 33px;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease;
}

.qr-bot-close img {
    display: block;
    width: 100%;
    height: auto;
}

.qr-bot-close:hover,
.qr-bot-close:focus-visible {
    filter: brightness(1.1);
    outline: 0;
    transform: scale(1.06);
}

.qr-bot-controlbar {
    display: grid;
    min-height: 58px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f6f8fc;
    border-bottom: 1px solid #e8edf5;
}

.qr-bot-controlbar__logo {
    position: relative;
    z-index: 1;
    grid-column: 1;
    width: 38px;
    height: 38px;
    padding: 4px;
    background: #fff;
    border: 1px solid #e9edf4;
    border-radius: 13px;
    box-shadow: 0 5px 12px rgba(35, 52, 81, .1);
}

.qr-bot-controlbar__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-bot-tabs {
    display: flex;
    align-self: center;
    width: min(270px, calc(100% - 30px));
    flex: 0 0 auto;
    gap: 2px;
    padding: 4px;
    margin: 10px auto 8px;
    background: linear-gradient(135deg, #111522, #252b3c);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(20, 29, 49, .17), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.qr-bot-controlbar .qr-bot-tabs {
    grid-column: 2;
    width: min(270px, 100%);
    justify-self: center;
    margin: 0;
}

.qr-bot-sound-toggle {
    display: grid;
    width: 40px;
    height: 38px;
    grid-column: 3;
    place-items: center;
    justify-self: end;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    transition: transform .18s ease, filter .18s ease;
}

.qr-bot-sound-toggle img {
    display: block;
    max-width: 100%;
    max-height: 34px;
    object-fit: contain;
}

.qr-bot-sound-toggle:hover,
.qr-bot-sound-toggle:focus-visible {
    filter: brightness(1.08);
    outline: 0;
    transform: scale(1.08);
}

.qr-bot-sound-toggle[aria-pressed="false"] img {
    max-height: 31px;
}

.qr-bot-tab {
    position: relative;
    flex: 1 1 50%;
    min-height: 34px;
    color: rgba(255, 255, 255, .73);
    font-size: .82rem;
    font-weight: 800;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.qr-bot-tab.is-active {
    color: #ee5b1c;
    background: #fff;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .18);
}

.qr-bot-tab__badge {
    position: absolute;
    top: -7px;
    right: 2px;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    place-items: center;
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    line-height: 1;
    background: #f04444;
    border: 2px solid #1b2030;
    border-radius: 999px;
    box-shadow: 0 3px 7px rgba(190, 41, 41, .32);
    animation: qr-bot-badge-in .32s cubic-bezier(.2, .8, .2, 1) both;
}

.qr-bot-tab__badge[hidden] {
    display: none;
}

.qr-bot-panel {
    display: none;
    min-height: 0;
    flex: 1;
}

.qr-bot-panel.is-active {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.qr-bot-messages {
    min-height: 0;
    flex: 1 1 0;
    padding: 18px 16px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 139, 61, .1), transparent 32%),
        #f6f8fc;
}

.qr-bot-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 88%;
    margin: 0 0 13px;
    animation: qr-bot-message-in .56s cubic-bezier(.18, .82, .24, 1) both;
}

.qr-bot-message--user {
    flex-direction: row-reverse;
    margin-left: auto;
}

.qr-bot-message--reply {
    transform-origin: left bottom;
    animation: qr-bot-reply-in .58s cubic-bezier(.18, .82, .24, 1) both;
}

.qr-bot-message--outgoing {
    transform-origin: right bottom;
    animation: qr-bot-outgoing-in .48s cubic-bezier(.2, .86, .26, 1) both;
}

.qr-bot-message.is-refreshing {
    pointer-events: none;
    opacity: .26;
    filter: blur(1px);
    transform: scale(.972);
    transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}

.qr-bot-message.is-updated {
    transform-origin: left bottom;
    animation: qr-bot-payment-refresh .48s cubic-bezier(.18, .82, .24, 1) both;
}

.qr-bot-message__avatar {
    box-sizing: border-box;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 5px;
    object-fit: contain;
    background: transparent url('/TX_Bet/assets/TX_Bet/extracted/ig_khung_ava.png') center / 100% 100% no-repeat;
    border: 0;
    border-radius: 50%;
}

.qr-bot-message__bubble {
    position: relative;
    padding: 10px 13px;
    color: #263552;
    font-size: .88rem;
    line-height: 1.52;
    background: #fff;
    border: 1px solid #e7ecf4;
    border-radius: 5px 17px 17px 17px;
    box-shadow: 0 5px 16px rgba(35, 52, 81, .06);
}

.qr-bot-message--reply .qr-bot-message__bubble:not(.qr-bot-message__bubble--qr) {
    animation: qr-bot-bubble-settle .58s cubic-bezier(.18, .82, .24, 1) both;
}

.qr-bot-message__bubble--qr {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.qr-bot-message--waiting {
    align-items: center;
    margin-bottom: 9px;
}

.qr-bot-message--waiting .qr-bot-message__avatar {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
    padding: 3px;
    opacity: .48;
}

.qr-bot-message__bubble--waiting {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 1px;
    color: #9aa8ba;
    font-size: .66rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.25;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.qr-bot-waiting-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-width: 15px;
}

.qr-bot-waiting-dots i {
    width: 3px;
    height: 3px;
    background: #a5b3c6;
    border-radius: 50%;
    animation: qr-bot-typing .9s ease-in-out infinite;
}

.qr-bot-waiting-dots i:nth-child(2) { animation-delay: .12s; }
.qr-bot-waiting-dots i:nth-child(3) { animation-delay: .24s; }

.qr-bot-result-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 29px;
    margin-top: 10px;
    padding: 5px 10px;
    color: #d95718;
    font: inherit;
    font-size: .68rem;
    font-weight: 900;
    line-height: 1;
    background: #fff7f1;
    border: 1px solid #ffcdb5;
    border-radius: 999px;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.qr-bot-result-action:hover,
.qr-bot-result-action:focus-visible {
    color: #fff;
    background: #ed6720;
    border-color: #ed6720;
    outline: 0;
    transform: translateY(-1px);
}

.qr-bot-result-action:disabled,
.qr-bot-result-action.is-creating {
    cursor: wait;
    opacity: .7;
    transform: none;
}

.qr-bot-message--user .qr-bot-message__bubble {
    color: #fff;
    background: linear-gradient(135deg, #ff6b21, #ff8743);
    border-color: transparent;
    border-radius: 17px 5px 17px 17px;
    box-shadow: 0 8px 18px rgba(255, 107, 33, .22);
    animation: qr-bot-user-bubble-pop .48s cubic-bezier(.2, .86, .26, 1) both;
}

.qr-bot-message__bubble strong {
    font-weight: 800;
}

.qr-bot-rule-card {
    margin-top: 9px;
    padding: 8px 8px 16px;
    overflow: hidden;
    color: #fff2cf;
    font-size: .74rem;
    line-height: 1.45;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
    background: transparent url('/TX_Bet/assets/minigame/extracted/top_jackpot_bg.png') center / 100% 100% no-repeat;
    border: 0;
    border-radius: 0;
}

.qr-bot-rule-card__head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px 5px;
    color: #ffe197;
    font-size: .69rem;
    font-weight: 900;
    background: transparent;
    border: 0;
}

.qr-bot-rule-card__icon {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    color: #ffd068;
    font-size: .7rem;
}

.qr-bot-rule-card > p {
    margin: 0;
    padding: 5px 9px 0;
}

.qr-bot-rule-card > p:last-child {
    padding-bottom: 8px;
}

.qr-bot-rule-card > p b {
    color: #ffe49d;
    font-weight: 900;
}

.qr-bot-rule-card__note {
    display: flex;
    gap: 5px;
    margin-top: 6px !important;
    padding-top: 7px !important;
    color: #f8e5bd;
    font-size: .67rem;
    background: transparent;
    border-top: 1px dashed rgba(255, 230, 169, .45);
}

.qr-bot-rule-card__note i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #ffd068;
}

.qr-bot-message__bubble--guide {
    min-width: min(100%, 258px);
    padding: 22px 20px 27px;
    color: #fff2cf;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
    background: transparent url('/TX_Bet/assets/minigame/extracted/top_jackpot_bg.png') center / 100% 100% no-repeat;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.qr-bot-message__bubble--guide strong {
    color: #ffe49d;
}

.qr-bot-message__bubble--guide .qr-bot-message__meta {
    color: rgba(255, 236, 190, .75);
}

.qr-bot-message__meta {
    display: block;
    margin-top: 5px;
    color: #8b98ad;
    font-size: .66rem;
    font-weight: 700;
}

.qr-bot-message--user .qr-bot-message__meta {
    color: rgba(255, 255, 255, .78);
    text-align: right;
}

.qr-bot-qr-card {
    min-width: min(100%, 280px);
    padding: 9px;
    color: #263552;
    background: #fff;
    border: 1px solid #e4eaf3;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(35, 52, 81, .1);
}

.qr-bot-qr-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 5px 8px;
    font-size: .72rem;
    font-weight: 800;
}

.qr-bot-qr-card__tag {
    padding: 3px 7px;
    color: #d94e13;
    font-size: .64rem;
    background: #fff1e9;
    border-radius: 999px;
}

.qr-bot-qr-card__body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qr-bot-qr-card__image-wrap {
    position: relative;
    flex: 0 0 146px;
    width: 146px;
    padding: 8px;
    background: #fff;
    border: 1px solid #f0f2f7;
    border-radius: 13px;
}

.qr-bot-qr-card__aside {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 8px;
}

.qr-bot-qr-card__aside p {
    margin: 0;
    color: #71809a;
    font-size: .7rem;
    line-height: 1.45;
}

.qr-bot-bank-picker {
    position: relative;
    z-index: 2;
}

.qr-bot-bank-select {
    display: grid;
    width: 100%;
    min-height: 44px;
    grid-template-columns: 27px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
    color: #273653;
    font: inherit;
    text-align: left;
    background: #f7f9fc;
    border: 1px solid #e6ebf3;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.qr-bot-bank-select:hover,
.qr-bot-bank-select:focus-visible {
    background: #fff;
    border-color: #ffbc9b;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 107, 33, .1);
}

.qr-bot-bank-logo {
    display: block;
    width: 27px;
    height: 27px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 8px;
}

.qr-bot-bank-select span,
.qr-bot-bank-option span {
    min-width: 0;
}

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

.qr-bot-bank-select small {
    color: #8a98ad;
    font-size: .58rem;
    font-weight: 700;
}

.qr-bot-bank-select strong {
    color: #273653;
    font-size: .69rem;
    font-weight: 800;
}

.qr-bot-bank-select b {
    color: #8794aa;
    font-size: .9rem;
    font-weight: 800;
    transition: transform .18s ease;
}

.qr-bot-bank-select[aria-expanded="true"] b {
    transform: rotate(180deg);
}

.qr-bot-bank-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    max-height: 175px;
    padding: 4px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e0e7f0;
    border-radius: 11px;
    box-shadow: 0 14px 26px rgba(31, 47, 76, .2);
}

.qr-bot-bank-menu[hidden] {
    display: none;
}

.qr-bot-bank-option {
    display: grid;
    width: 100%;
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 8px;
    padding: 7px;
    color: #283753;
    font: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.qr-bot-bank-option:hover,
.qr-bot-bank-option:focus-visible,
.qr-bot-bank-option.is-selected {
    background: #fff1e9;
    outline: 0;
}

.qr-bot-bank-option strong {
    font-size: .69rem;
    font-weight: 800;
}

.qr-bot-bank-option small {
    margin-top: 1px;
    color: #8996aa;
    font-size: .6rem;
}

.qr-bot-transfer-details {
    display: grid;
    gap: 4px;
    margin: 0;
}

.qr-bot-transfer-details > div {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: baseline;
    gap: 6px;
}

.qr-bot-transfer-details dt {
    margin: 0;
    color: #8996aa;
    font-size: .6rem;
    font-weight: 700;
}

.qr-bot-transfer-details dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #34425e;
    font-size: .65rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-bot-transfer-details dd.is-content {
    color: #e5571a;
}

.qr-bot-qr-card__download {
    align-self: flex-start;
    min-height: 0;
    padding: 1px 0;
    color: #e5571a;
    font: inherit;
    font-size: .65rem;
    font-weight: 800;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color .18s ease, transform .18s ease;
}

.qr-bot-qr-card__download:hover,
.qr-bot-qr-card__download:focus-visible {
    color: #bf4210;
    outline: 0;
    transform: translateY(-1px);
}

.qr-bot-qr-card__image-wrap > img:not(.qr-bot-qr-card__logo) {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
}

.qr-bot-qr-card__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    padding: 4px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    box-shadow: 0 4px 13px rgba(24, 37, 61, .15);
    transform: translate(-50%, -50%);
}

.qr-bot-qr-card__detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 4px 2px;
    font-size: .72rem;
}

.qr-bot-qr-card__detail span {
    min-width: 0;
    overflow: hidden;
    color: #71809a;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-bot-qr-card__detail strong {
    color: #e95716;
    font-size: .72rem;
}

.qr-bot-quick-replies {
    flex: 0 0 auto;
    flex-shrink: 0;
    padding: 14px 14px 13px 51px;
    background-color: #f8fafc;
    background-image: url('/TX_Bet/assets/minigame/extracted/top_jackpot_separator.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: min(231px, calc(100% - 24px)) 3px;
    border-top: 0;
}

.qr-bot-quick-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 106px;
    align-items: stretch;
    gap: 11px;
    width: 100%;
}

.qr-bot-quick-main {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    gap: 8px;
}

.qr-bot-bet-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 6px;
    padding-bottom: 9px;
    overflow: visible;
}

.qr-bot-quick-reply {
    font: inherit;
    cursor: pointer;
    transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.qr-bot-bet-option {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding: 6px 8px 8px;
    color: #56300f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .01em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
    background: transparent url('/TX_Bet/assets/button/extracted/btn_taoban.png') center / 100% 100% no-repeat;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transform: translateY(0) scale(.9);
    transform-origin: center;
    transition: transform .18s ease, filter .16s ease, color .18s ease;
    will-change: transform, filter;
}

.qr-bot-bet-option__label {
    display: block;
    position: relative;
    z-index: 2;
    transform: translateY(-2px);
}

.qr-bot-bet-option:hover,
.qr-bot-bet-option:focus-visible {
    color: #56300f;
    background: transparent url('/TX_Bet/assets/button/extracted/btn_taoban.png') center / 100% 100% no-repeat;
    border-color: transparent;
    outline: 0;
    box-shadow: none;
    transform: translateY(-1px) scale(.93);
}

.qr-bot-quick-reply--bet[aria-pressed="true"] {
    z-index: 2;
    isolation: isolate;
    color: #56300f;
    background: transparent url('/TX_Bet/assets/button/extracted/btn_taoban.png') center / 100% 100% no-repeat;
    border-color: transparent;
    box-shadow: none;
    animation: qr-bot-bet-selected-glow .28s ease-in-out infinite alternate;
    transform: translateY(0) scale(1);
}

.qr-bot-quick-reply--bet[aria-pressed="true"]::after {
    position: absolute;
    z-index: 1;
    right: 12%;
    bottom: 5px;
    left: 12%;
    height: 7px;
    content: "";
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(255, 255, 232, .98) 0%, rgba(255, 231, 66, .94) 28%, rgba(255, 180, 0, .58) 56%, transparent 78%);
    border-radius: 50%;
    filter: blur(1.4px);
    animation: qr-bot-bet-aura .16s ease-in-out infinite alternate;
}

.qr-bot-game-switch {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 7px 9px;
    color: #35506f;
    text-align: left;
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.qr-bot-action-icon {
    display: inline-grid;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #e95a1a;
    font-size: .8rem;
}

.qr-bot-action-icon i {
    width: 1em;
    text-align: center;
}

.qr-bot-game-switch__text {
    display: flex;
    min-width: 0;
    margin-left: 6px;
    flex-direction: column;
    gap: 2px;
}

.qr-bot-game-switch__text strong,
.qr-bot-game-switch__text small {
    display: block;
}

.qr-bot-game-switch__text strong {
    color: #35506f;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
}

.qr-bot-game-switch__text small {
    max-width: 150px;
    overflow: hidden;
    color: #7a8ba3;
    font-size: .56rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-bot-game-switch__chevron {
    margin-left: auto;
    color: #92a1b5;
    font-size: .65rem;
    transition: transform .24s ease;
}

.qr-bot-game-switch[aria-expanded="true"] .qr-bot-game-switch__chevron {
    transform: rotate(180deg);
}

.qr-bot-game-switch:hover,
.qr-bot-game-switch:focus-visible {
    color: #35506f;
    background: #fff8f4;
    border-color: #ffbf9f;
    box-shadow: 0 5px 11px rgba(53, 80, 111, .12);
    outline: 0;
    transform: translateY(-1px);
}

.qr-bot-game-switch:disabled {
    cursor: wait;
    opacity: .6;
    transform: none;
}

.qr-bot-quick-utilities {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding-left: 10px;
    border-left: 1px solid #dfe7f1;
}

.qr-bot-quick-reply--utility {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 34px;
    padding: 5px 6px;
    color: #627692;
    font-size: .62rem;
    font-weight: 800;
    line-height: 1.05;
    text-align: left;
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 8px;
}

.qr-bot-quick-reply--utility .qr-bot-action-icon {
    width: 20px;
    height: 20px;
    color: #7589a3;
    font-size: .72rem;
}

.qr-bot-quick-reply--utility:hover,
.qr-bot-quick-reply--utility:focus-visible {
    color: #e95716;
    background: #fff7f2;
    border-color: #ffcfb8;
    box-shadow: none;
}

.qr-bot-quick-reply--utility:hover .qr-bot-action-icon,
.qr-bot-quick-reply--utility:focus-visible .qr-bot-action-icon {
    color: #e95716;
}

.qr-bot-game-menu {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 0;
    gap: 6px;
    padding: 0 2px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: max-height .32s ease, opacity .22s ease, padding .32s ease, transform .32s ease;
}

.qr-bot-game-menu.is-open {
    max-height: 188px;
    padding: 2px;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.qr-bot-game-option {
    min-height: 30px;
    padding: 5px 7px;
    overflow: hidden;
    color: #536987;
    font: inherit;
    font-size: .65rem;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.qr-bot-game-option:hover,
.qr-bot-game-option:focus-visible,
.qr-bot-game-option.is-selected {
    color: #df5318;
    background: #fff7f2;
    border-color: #ffbe9f;
    outline: 0;
}

.qr-bot-game-option:hover,
.qr-bot-game-option:focus-visible {
    transform: translateY(-1px);
}

.qr-bot-compose {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px 14px;
    background: #fff;
    border-top: 1px solid #e8edf5;
}

.qr-bot-compose__input {
    min-width: 0;
    flex: 1;
    height: 43px;
    padding: 0 14px;
    color: #253551;
    font: inherit;
    font-size: .83rem;
    background: #f4f6fa;
    border: 1px solid transparent;
    border-radius: 14px;
    outline: 0;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.qr-bot-compose__input:focus {
    background: #fff;
    border-color: #ffb48f;
    box-shadow: 0 0 0 4px rgba(255, 107, 33, .1);
}

.qr-bot-compose__send {
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    padding: 0;
    color: #fff;
    font-size: 1rem;
    background: #ff6b21;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 17px rgba(255, 107, 33, .26);
    transition: transform .18s ease, background .18s ease;
}

.qr-bot-compose__send:hover,
.qr-bot-compose__send:focus-visible {
    background: #e95716;
    outline: 0;
    transform: translateY(-1px) scale(1.02);
}

.qr-bot-history {
    min-height: 0;
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f6f8fc;
}

.qr-bot-history__note {
    margin: 0 0 12px;
    color: #8090a8;
    font-size: .76rem;
    line-height: 1.5;
}

.qr-bot-history__empty {
    padding: 42px 12px;
    color: #8391a7;
    font-size: .85rem;
    text-align: center;
}

.qr-bot-history-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px 14px;
    padding: 12px 1px;
    border-bottom: 1px solid #e8edf5;
}

.qr-bot-history-row:last-child {
    border-bottom: 0;
}

.qr-bot-history-row__title {
    color: #263552;
    font-size: .82rem;
    font-weight: 800;
}

.qr-bot-history-row__time {
    color: #8b99ac;
    font-size: .68rem;
    text-align: right;
}

.qr-bot-history-row__detail {
    color: #75839a;
    font-size: .72rem;
}

.qr-bot-history-row__result {
    align-self: center;
    padding: 4px 8px;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .02em;
    border-radius: 999px;
}

.qr-bot-history-row__result.is-win {
    color: #188252;
    background: #e9fbf1;
}

.qr-bot-history-row__result.is-lose {
    color: #c94a45;
    background: #fff0ef;
}

.qr-bot-history-row__result.is-pending {
    color: #a86508;
    background: #fff7df;
}

.qr-bot-copy {
    padding: 3px 6px;
    color: #e2571c;
    font-size: .65rem;
    font-weight: 800;
    background: #fff4ee;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.qr-bot-typing {
    display: inline-flex;
    gap: 4px;
    padding: 9px 11px;
}

.qr-bot-typing i {
    width: 5px;
    height: 5px;
    background: #a7b2c2;
    border-radius: 50%;
    animation: qr-bot-typing 1.32s ease-in-out infinite;
}

.qr-bot-typing i:nth-child(2) { animation-delay: .14s; }
.qr-bot-typing i:nth-child(3) { animation-delay: .28s; }

.qr-bot-quick-reply:disabled,
.qr-bot-game-option:disabled {
    cursor: wait;
    opacity: .6;
    transform: none;
}

@keyframes qr-bot-message-in {
    from { opacity: 0; transform: translateY(14px) scale(.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes qr-bot-typing {
    0%, 60%, 100% { opacity: .38; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

@keyframes qr-bot-reply-in {
    0% { opacity: 0; transform: translateX(-12px) translateY(8px) scale(.96); }
    66% { opacity: 1; transform: translateX(1px) translateY(-1px) scale(1.008); }
    100% { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}

@keyframes qr-bot-outgoing-in {
    0% { opacity: 0; transform: translateX(16px) translateY(8px) scale(.94); }
    70% { opacity: 1; transform: translateX(-1px) translateY(-1px) scale(1.01); }
    100% { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}

@keyframes qr-bot-bubble-settle {
    0% { box-shadow: 0 0 0 rgba(35, 52, 81, 0); }
    65% { box-shadow: 0 9px 22px rgba(35, 52, 81, .1); }
    100% { box-shadow: 0 5px 16px rgba(35, 52, 81, .06); }
}

@keyframes qr-bot-user-bubble-pop {
    0% { filter: saturate(.9) brightness(.98); }
    55% { filter: saturate(1.08) brightness(1.04); }
    100% { filter: saturate(1) brightness(1); }
}

@keyframes qr-bot-payment-refresh {
    0% { opacity: .18; filter: blur(1px); transform: translateY(6px) scale(.975); }
    64% { opacity: 1; filter: blur(0); transform: translateY(-1px) scale(1.012); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes qr-bot-bet-selected-glow {
    0% {
        filter: brightness(1.02) saturate(1.08);
        box-shadow: none;
    }
    100% {
        filter: brightness(1.19) saturate(1.35);
        box-shadow: none;
    }
}

@keyframes qr-bot-bet-aura {
    0% { opacity: .42; transform: scaleX(.76) scaleY(.7); }
    100% { opacity: 1; transform: scaleX(1) scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
    .qr-bot-message,
    .qr-bot-message__bubble,
    .qr-bot-typing i,
    .qr-bot-message.is-updated,
    .qr-bot-quick-reply--bet[aria-pressed="true"] {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .qr-bot-quick-reply--bet[aria-pressed="true"]::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@keyframes qr-bot-badge-in {
    from { opacity: 0; transform: scale(.55); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 575.98px) {
    .qr-bot-modal {
        overflow: hidden !important;
    }

    .qr-bot-modal .modal-dialog {
        height: 100dvh;
        min-height: 100%;
        max-height: 100dvh;
        margin: 0;
    }

    .qr-bot-modal .modal-content {
        height: 100dvh;
        min-height: 0;
        max-height: 100dvh;
        border-radius: 0;
    }

    .qr-legacy-modal .modal-dialog {
        margin: .65rem;
    }

    .qr-legacy-modal .modal-content {
        border-radius: 18px;
    }

    .qr-legacy-header {
        min-height: 68px;
        padding: 10px 56px 10px 13px;
    }

    .qr-legacy-avatar {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        padding: 7px;
    }

    .qr-legacy-controlbar,
    .qr-legacy-body {
        padding-right: 12px;
        padding-left: 12px;
    }

    .qr-legacy-switch {
        min-height: 26px;
        padding: 4px 7px;
        font-size: .57rem;
    }

    .qr-legacy-mode-actions {
        gap: 4px;
    }

    .qr-legacy-choice-row {
        grid-template-columns: minmax(108px, 126px) minmax(0, 1fr);
        gap: 8px;
        margin-bottom: 10px;
    }

    .qr-legacy-rule {
        padding: 7px 8px;
        font-size: .61rem;
    }

    .qr-legacy-rule__head {
        gap: 4px;
        font-size: .62rem;
    }

    .qr-legacy-rule__rate {
        padding: 2px 4px;
        font-size: .52rem;
    }

    .qr-legacy-bank-select {
        min-height: 37px;
        grid-template-columns: 23px minmax(0, 1fr) auto;
        gap: 4px;
        padding: 4px;
    }

    .qr-legacy-bank-select > img,
    .qr-legacy-bank-option > img {
        width: 23px;
        height: 23px;
    }

    .qr-legacy-grid {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 8px;
    }

    .qr-legacy-details {
        gap: 5px;
        padding: 8px;
        border-radius: 10px;
    }

    .qr-legacy-details > div {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 3px;
    }

    .qr-legacy-details dt {
        font-size: .58rem;
    }

    .qr-legacy-details dd {
        font-size: .62rem;
    }

    .qr-bot-shell {
        height: 100dvh;
        max-height: 100dvh;
        min-height: 0;
    }

    .qr-bot-header {
        min-height: 70px;
        padding: 11px 56px 11px 14px;
    }

    .qr-bot-controlbar {
        min-height: 54px;
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        padding: 8px 12px;
    }

    .qr-bot-controlbar__logo {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .qr-bot-controlbar .qr-bot-tabs {
        width: min(246px, 100%);
    }

    .qr-bot-sound-toggle {
        width: 34px;
        height: 34px;
    }

    .qr-bot-sound-toggle img {
        max-height: 30px;
    }

    .qr-bot-message {
        gap: 5px;
        max-width: 94%;
    }

    .qr-bot-messages {
        padding: 14px 7px 8px;
    }

    .qr-bot-message--qr {
        width: 100%;
        max-width: 100%;
    }

    .qr-bot-message--qr .qr-bot-message__bubble--qr {
        min-width: 0;
        flex: 1;
    }

    .qr-bot-message__avatar {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
        padding: 4px;
    }

    .qr-bot-rule-card {
        font-size: .7rem;
    }

    .qr-bot-rule-card__note {
        font-size: .63rem;
    }

    .qr-bot-quick-replies {
        flex: 0 0 auto;
        flex-shrink: 0;
        padding: 12px 11px 12px;
    }

    .qr-bot-quick-layout {
        grid-template-columns: minmax(0, 1fr) 92px;
        gap: 7px;
    }

    .qr-bot-quick-main {
        gap: 5px;
    }

    .qr-bot-bet-options {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .qr-bot-bet-options > .qr-bot-bet-option {
        flex: 0 0 calc((100% - 5px) / 2);
        width: calc((100% - 5px) / 2);
    }

    .qr-bot-bet-options > .qr-bot-bet-option:last-child:nth-child(odd) {
        margin-right: auto;
        margin-left: auto;
    }

    .qr-bot-game-switch {
        min-height: 40px;
        padding: 6px 8px;
    }

    .qr-bot-game-switch__text small {
        max-width: 132px;
    }

    .qr-bot-quick-utilities {
        gap: 4px;
        padding-left: 7px;
    }

    .qr-bot-quick-reply--utility {
        grid-template-columns: 17px minmax(0, 1fr);
        min-height: 32px;
        padding: 4px 4px;
        font-size: .56rem;
    }

    .qr-bot-quick-reply--utility .qr-bot-action-icon {
        width: 17px;
        height: 18px;
        font-size: .66rem;
    }

    .qr-bot-game-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qr-bot-qr-card__image-wrap {
        box-sizing: border-box;
        flex-basis: 112px;
        width: 112px;
        padding: 5px;
        border-radius: 10px;
    }

    .qr-bot-qr-card {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding: 6px;
        border-radius: 14px;
    }

    .qr-bot-qr-card__top {
        padding: 2px 3px 6px;
    }

    .qr-bot-qr-card__body {
        gap: 6px;
    }

    .qr-bot-qr-card__aside {
        gap: 4px;
    }

    .qr-bot-bank-select {
        min-height: 38px;
        grid-template-columns: 23px minmax(0, 1fr) auto;
        gap: 4px;
        padding: 4px;
        border-radius: 8px;
    }

    .qr-bot-bank-logo {
        width: 23px;
        height: 23px;
        border-radius: 6px;
    }

    .qr-bot-bank-select strong {
        font-size: .63rem;
    }

    .qr-bot-transfer-details {
        gap: 2px;
    }

    .qr-bot-transfer-details > div {
        grid-template-columns: 41px minmax(0, 1fr);
        gap: 3px;
    }

    .qr-bot-transfer-details dt {
        font-size: .55rem;
    }

    .qr-bot-transfer-details dd {
        font-size: .6rem;
    }
}
