/* Global chat is separate from support-widget.css so legacy support styles stay untouched. */
.global-chat{position:fixed;right:24px;bottom:160px;z-index:11000;font-family:inherit;color:#f4f7ff}
.global-chat__launcher{border:1px solid rgba(91,239,255,.6);background:linear-gradient(135deg,#09233e,#114c6e);color:#fff;border-radius:999px;padding:10px 16px 10px 10px;display:flex;align-items:center;gap:9px;box-shadow:0 10px 30px rgba(0,17,45,.38),0 0 0 3px rgba(23,199,227,.08);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.global-chat__launcher:hover{transform:translateY(-3px);box-shadow:0 14px 36px rgba(0,17,45,.5),0 0 22px rgba(47,220,238,.24)}
.global-chat__launcher-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#09bdcf;color:#062237;font-size:16px}
.global-chat__launcher-label{font-weight:800;font-size:13px;white-space:nowrap}.global-chat__launcher-dot{width:7px;height:7px;border-radius:50%;background:#52ef9a;box-shadow:0 0 10px #52ef9a;animation:global-chat-pulse 1.8s infinite}
.global-chat__panel{position:absolute;right:0;bottom:58px;width:390px;max-height:min(650px,calc(100vh - 190px));display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(53,222,239,.54);border-radius:16px;background:linear-gradient(155deg,rgba(3,19,39,.98),rgba(5,31,55,.98));box-shadow:0 24px 80px rgba(0,0,0,.5),0 0 28px rgba(17,198,235,.13);opacity:0;visibility:hidden;transform:translateY(14px) scale(.97);transform-origin:bottom right;transition:opacity .2s ease,transform .2s ease,visibility .2s}
.global-chat.is-open .global-chat__panel{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.global-chat__header{min-height:62px;display:flex;align-items:center;justify-content:space-between;padding:10px 13px;background:linear-gradient(90deg,#0b3459,#09233e);border-bottom:1px solid rgba(95,228,255,.2)}
.global-chat__title-wrap{display:flex;align-items:center;gap:10px}.global-chat__title-icon{width:35px;height:35px;display:grid;place-items:center;color:#092641;background:#5ae8ee;border-radius:10px;box-shadow:0 0 15px rgba(90,232,238,.25)}
.global-chat__header h2{font-size:15px;letter-spacing:1.2px;margin:0;color:#fff}.global-chat__subtitle{display:block;color:#79adc8;font-size:10px;margin-top:3px}.global-chat__close{width:30px;height:30px;border:1px solid rgba(173,224,242,.45);border-radius:50%;background:rgba(0,0,0,.18);color:#c6e7ef;cursor:pointer}.global-chat__close:hover{background:#0bc3d7;color:#062237}
.global-chat__notice{display:flex;gap:7px;align-items:center;padding:7px 13px;color:#8db8c9;font-size:11px;background:rgba(1,13,27,.66)}.global-chat__notice i{color:#5ae8ee}
.global-chat__messages{height:360px;overflow-y:auto;padding:10px 12px 7px;scrollbar-width:thin;scrollbar-color:#159db7 transparent}.global-chat__messages::-webkit-scrollbar{width:5px}.global-chat__messages::-webkit-scrollbar-thumb{background:#159db7;border-radius:8px}
.global-chat__row{display:flex;gap:8px;padding:7px 4px;animation:global-chat-in .18s ease both}.global-chat__avatar{flex:0 0 28px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#163d5d,#0c7187);color:#dffaff;font-size:11px;font-weight:900;border:1px solid rgba(106,231,244,.45)}
.global-chat__bubble{min-width:0;flex:1}.global-chat__meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px;line-height:1.15}.global-chat__name{font-weight:800;color:#d7f4fc;font-size:12px}.global-chat__name.is-rainbow{background:linear-gradient(90deg,#ff6b8a,#ffd765,#54f5b0,#6ad9ff,#b998ff,#ff6b8a);background-size:260% auto;background-clip:text;-webkit-background-clip:text;color:transparent;animation:global-chat-rainbow 4s linear infinite}.global-chat__time{color:#6e91a6;font-size:10px;margin-left:2px}.global-chat__text{display:block;margin-top:3px;color:#d4e5ec;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.global-chat__badge{display:inline-flex;align-items:center;gap:3px;padding:2px 5px;border-radius:5px;font-size:8px;font-weight:900;letter-spacing:.15px;background:rgba(255,255,255,.09);color:#b9d4df}.global-chat__badge i{font-size:8px}.global-chat__badge--vip{background:rgba(255,196,74,.16);color:#ffd264}.global-chat__badge--admin{background:rgba(255,93,111,.17);color:#ff8b98}.global-chat__badge--top_deposit{background:rgba(40,218,177,.14);color:#63efc7}.global-chat__badge--top_bet{background:rgba(111,150,255,.18);color:#9fb6ff}
.global-chat__loading{padding:30px 0;text-align:center;color:#79a9bd;font-size:12px}.global-chat__loading span{display:inline-block;width:5px;height:5px;border-radius:50%;background:#5ae8ee;margin:0 2px;animation:global-chat-bounce 1s infinite}.global-chat__loading span:nth-child(2){animation-delay:.15s}.global-chat__loading span:nth-child(3){animation-delay:.3s}.global-chat__empty{padding:50px 12px;text-align:center;color:#759aac;font-size:12px}
.global-chat__composer{display:flex;align-items:center;gap:7px;padding:9px 10px;border-top:1px solid rgba(114,200,221,.18);background:rgba(1,13,27,.85)}.global-chat__composer-avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex:0 0 28px;background:#0bc3d7;color:#05243b;font-size:11px;font-weight:900}.global-chat__composer input{min-width:0;flex:1;border:1px solid rgba(145,214,227,.2);border-radius:8px;padding:9px 10px;background:#071e35;color:#e8faff;outline:0;font:inherit;font-size:12px}.global-chat__composer input:focus{border-color:#3bdbe8;box-shadow:0 0 0 2px rgba(59,219,232,.12)}.global-chat__composer button{width:34px;height:34px;border:0;border-radius:9px;background:#13c4d6;color:#062237;cursor:pointer}.global-chat__composer button:disabled{opacity:.55;cursor:wait}.global-chat__composer-help{min-height:0;padding:0 12px 5px;background:rgba(1,13,27,.85);color:#f7b2b2;font-size:10px}.global-chat__guest{display:flex;align-items:center;gap:7px;padding:12px;color:#a8c8d4;font-size:11px;background:rgba(1,13,27,.85)}.global-chat__guest i{color:#ffc95b}.global-chat__guest a{margin-left:auto;color:#5ae8ee;text-decoration:none;font-weight:800}.global-chat__guest a:hover{text-decoration:underline}
@keyframes global-chat-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes global-chat-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.78)}}@keyframes global-chat-rainbow{to{background-position:260% center}}@keyframes global-chat-bounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)}}
@media (max-width:600px){.global-chat{right:12px;bottom:148px}.global-chat__launcher{width:48px;height:48px;padding:0;justify-content:center;border-radius:50%}.global-chat__launcher-label,.global-chat__launcher-dot{display:none}.global-chat__launcher-icon{width:34px;height:34px}.global-chat__panel{position:fixed;right:10px;left:10px;bottom:205px;width:auto;max-height:min(70vh,600px);border-radius:14px;transform-origin:bottom right}.global-chat__messages{height:min(48vh,360px)}.global-chat__header{min-height:56px}}
.global-chat__avatar{padding:0;font:inherit;cursor:pointer;overflow:hidden}.global-chat__avatar:hover{border-color:#fff;box-shadow:0 0 12px rgba(90,232,238,.5)}.global-chat__avatar img{width:100%;height:100%;object-fit:cover}.global-chat__name{border:0;padding:0;background:transparent;font:inherit;cursor:pointer}.global-chat__name:hover{text-decoration:underline;text-underline-offset:2px}.global-chat__rank-texture{width:auto;max-width:96px;height:17px;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 0 3px rgba(255,255,255,.2))}
.global-chat-profile{position:fixed;inset:0;z-index:11100;display:grid;place-items:center;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}.global-chat-profile.is-open{opacity:1;visibility:visible}.global-chat-profile__backdrop{position:absolute;inset:0;background:rgba(1,10,23,.72);backdrop-filter:blur(5px)}.global-chat-profile__card{position:relative;width:min(370px,calc(100vw - 28px));overflow:hidden;border:1px solid rgba(91,239,255,.55);border-radius:18px;background:linear-gradient(165deg,#082542,#06172c);box-shadow:0 25px 80px rgba(0,0,0,.55),0 0 35px rgba(53,222,239,.18);animation:global-chat-profile-in .22s ease both}.global-chat-profile__close{position:absolute;z-index:2;top:10px;right:10px;width:30px;height:30px;border:1px solid rgba(187,236,244,.45);border-radius:50%;background:rgba(2,20,38,.62);color:#d9f7fb;cursor:pointer}.global-chat-profile__close:hover{background:#0bc3d7;color:#062237}.global-chat-profile__cover{height:68px;background:linear-gradient(115deg,#0b5172,#0a243f 58%,#142b59);position:relative;overflow:hidden}.global-chat-profile__cover:after{content:"";position:absolute;inset:-40px;background:repeating-linear-gradient(125deg,transparent 0 28px,rgba(116,240,255,.12) 29px 31px,transparent 32px 58px);transform:rotate(-5deg)}.global-chat-profile__head{display:flex;align-items:center;gap:12px;padding:0 20px;margin-top:-26px;position:relative;z-index:1}.global-chat-profile__avatar{width:70px;height:70px;display:grid;place-items:center;overflow:hidden;border:3px solid #70eef2;border-radius:50%;background:linear-gradient(135deg,#17617b,#0b293f);color:#e9fdff;font-size:27px;font-weight:900;box-shadow:0 5px 18px rgba(0,0,0,.35)}.global-chat-profile__avatar img{width:100%;height:100%;object-fit:cover}.global-chat-profile__identity{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding-top:26px}.global-chat-profile__identity strong{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#effcff;font-size:16px}.global-chat-profile__identity strong.is-rainbow{background:linear-gradient(90deg,#ff6b8a,#ffd765,#54f5b0,#6ad9ff,#b998ff,#ff6b8a);background-size:260% auto;background-clip:text;-webkit-background-clip:text;color:transparent;animation:global-chat-rainbow 4s linear infinite}.global-chat-profile__rank{width:auto;max-width:120px;height:21px;object-fit:contain}.global-chat-profile__stats{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:19px 20px 13px}.global-chat-profile__stats div{display:flex;flex-direction:column;gap:4px;padding:11px;border:1px solid rgba(135,214,230,.15);border-radius:10px;background:rgba(0,12,26,.32)}.global-chat-profile__stats i{color:#5ae8ee;font-size:12px}.global-chat-profile__stats span{color:#87aebe;font-size:10px}.global-chat-profile__stats strong{color:#effcff;font-size:13px}.global-chat-profile__upload{display:grid;gap:7px;padding:0 20px 13px}.global-chat-profile__upload label{color:#6ff4c9;font-size:12px;font-weight:800;cursor:pointer}.global-chat-profile__upload input{width:100%;color:#a9cbd5;font-size:11px}.global-chat-profile__upload button{justify-self:start;border:0;border-radius:8px;padding:8px 13px;background:#0bc3d7;color:#062237;font-weight:900;cursor:pointer}.global-chat-profile__upload button:disabled{opacity:.55;cursor:wait}.global-chat-profile__upload small{color:#779ba9;font-size:10px}.global-chat-profile__feedback{min-height:28px;padding:0 20px 13px;color:#ffd064;font-size:11px}.global-chat-profile__feedback:empty{display:none}@keyframes global-chat-profile-in{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
/* v3: Pokemon community palette - white cards, black outlines and red/orange accents. */
.global-chat{color:#111827}
.global-chat__launcher{border:2px solid #0a0b0e;background:linear-gradient(100deg,#ff2623 0%,#ff7418 100%);color:#fff;box-shadow:0 10px 28px rgba(31,20,16,.34),0 0 0 3px rgba(255,95,31,.12)}
.global-chat__launcher:hover{box-shadow:0 14px 34px rgba(31,20,16,.44),0 0 22px rgba(255,82,31,.3)}
.global-chat__launcher-icon{background:#fff;color:#111827;border:1px solid #0b0c10}
.global-chat__launcher-dot{background:#ffe861;box-shadow:0 0 10px #ffe861}
.global-chat__panel{border:2px solid #090b0f;background:#f4f6f9;box-shadow:0 24px 70px rgba(0,0,0,.42),0 0 0 4px rgba(255,255,255,.5)}
.global-chat__header{background:linear-gradient(100deg,#ff2824 0%,#ff7418 100%);border-bottom:2px solid #0a0b0f}
.global-chat__title-icon{background:#fff;color:#111827;border:1px solid #090b0f;box-shadow:0 4px 12px rgba(0,0,0,.18)}
.global-chat__header h2,.global-chat__subtitle{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.25)}
.global-chat__close{border:1px solid #090b0f;background:#fff;color:#111827}
.global-chat__close:hover{background:#111827;color:#fff}
.global-chat__notice{color:#dbeafe;background:#0d2940;border-bottom:2px solid #090b0f;font-weight:700}
.global-chat__notice i{color:#63e6e2}
.global-chat__messages{background:linear-gradient(180deg,#eef2f6 0%,#f8f9fb 100%)}
.global-chat__row{align-items:flex-start}
.global-chat__avatar{border:2px solid #090b0f;background:linear-gradient(145deg,#ff3926,#ff8b1d);color:#fff;box-shadow:0 3px 8px rgba(0,0,0,.18)}
.global-chat__avatar:hover{border-color:#090b0f;box-shadow:0 0 0 3px rgba(255,103,30,.24)}
.global-chat__bubble{padding:7px 9px;border:1.5px solid #111318;border-radius:11px;background:#fff;box-shadow:0 3px 9px rgba(15,23,42,.08)}
.global-chat__name{color:#111827}
.global-chat__time{color:#667085;margin-left:auto}
.global-chat__text{color:#16191f}
.global-chat__badge{border:1px solid #111318;background:#f3f4f6;color:#111827}
.global-chat__badge--vip{background:#fff2bf;color:#8a4b00}.global-chat__badge--admin{background:#ffe0dc;color:#a51d16}.global-chat__badge--top_deposit{background:#dff8eb;color:#066b45}.global-chat__badge--top_bet{background:#e5e9ff;color:#2839a5}
.global-chat__loading,.global-chat__empty{color:#475467}
.global-chat__composer{border-top:2px solid #090b0f;background:#fff}
.global-chat__composer-avatar{border:1.5px solid #090b0f;background:linear-gradient(145deg,#ff3826,#ff8c1d);color:#fff}
.global-chat__composer input{border:1.5px solid #111318;background:#f8fafc;color:#111827}
.global-chat__composer input:focus{border-color:#ff5a22;box-shadow:0 0 0 3px rgba(255,90,34,.16)}
.global-chat__composer button{border:1.5px solid #090b0f;background:linear-gradient(100deg,#ff2b25,#ff7a19);color:#fff}
.global-chat__composer-help{background:#fff;color:#c72020}
.global-chat__guest{border-top:2px solid #090b0f;background:#fff;color:#344054}.global-chat__guest i{color:#ff5b24}.global-chat__guest a{color:#c92d1c}
.global-chat__rank-texture{filter:drop-shadow(0 1px 1px rgba(0,0,0,.35))}

.global-chat-profile__backdrop{background:rgba(17,24,39,.72)}
.global-chat-profile__card{border:2px solid #090b0f;background:#fff;color:#111827;box-shadow:0 26px 80px rgba(0,0,0,.48),0 0 0 5px rgba(255,255,255,.28)}
.global-chat-profile__cover{background:linear-gradient(100deg,#ff2924 0%,#ff7b18 100%);border-bottom:2px solid #090b0f}
.global-chat-profile__cover:after{background:repeating-linear-gradient(125deg,transparent 0 28px,rgba(255,255,255,.2) 29px 31px,transparent 32px 58px)}
.global-chat-profile__close{border:1.5px solid #090b0f;background:#fff;color:#111827}
.global-chat-profile__close:hover{background:#111827;color:#fff}
.global-chat-profile__avatar{border:3px solid #090b0f;background:linear-gradient(145deg,#ff3826,#ff8c1d);color:#fff;box-shadow:0 5px 18px rgba(0,0,0,.24)}
.global-chat-profile__identity strong{color:#111827}
.global-chat-profile__stats div{border:1.5px solid #111318;background:#f6f7f9;box-shadow:0 3px 8px rgba(15,23,42,.06)}
.global-chat-profile__stats i{color:#ff4c22}.global-chat-profile__stats span{color:#667085}.global-chat-profile__stats strong{color:#111827}
.global-chat-profile__upload label{color:#b52b1d}.global-chat-profile__upload input{color:#344054}.global-chat-profile__upload button{border:1.5px solid #090b0f;background:linear-gradient(100deg,#ff2924,#ff7b18);color:#fff}.global-chat-profile__upload small{color:#667085}
.global-chat-profile__feedback{color:#b42318;font-weight:700}

@media (max-width:600px){.global-chat__panel{border-width:2px}.global-chat__bubble{padding:6px 8px}.global-chat-profile__card{width:min(370px,calc(100vw - 20px))}}

/* v4: keep Global Chat and Support Chat as two independent launchers.
   The panel still opens against the right viewport edge; only the closed
   Global Chat launcher is shifted left so the support launcher stays clear. */
.global-chat {
    right: 188px;
    bottom: 80px;
}

.global-chat:not(.is-open) .global-chat__launcher {
    transform: none;
}

.global-chat:not(.is-open) .global-chat__launcher:hover {
    transform: translateY(-3px);
}

.global-chat__panel {
    position: fixed;
    right: 24px;
    bottom: 140px;
}

.global-chat.is-open .global-chat__launcher {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 600px) {
    .global-chat {
        right: 15px;
        bottom: 148px;
    }

    .global-chat:not(.is-open) .global-chat__launcher {
        transform: none;
    }

    .global-chat:not(.is-open) .global-chat__launcher:hover {
        transform: translateY(-2px);
    }

    .global-chat__panel {
        right: 10px;
        left: 10px;
        bottom: 145px;
    }
}

/* v6: launcher color matches the navy storefront and support launcher. */
.global-chat .global-chat__launcher {
    background: linear-gradient(135deg, #081f39 0%, #123f69 100%);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(2, 12, 28, .44), 0 0 0 3px rgba(59, 130, 246, .12);
}

.global-chat .global-chat__launcher:hover {
    box-shadow: 0 15px 34px rgba(2, 12, 28, .54), 0 0 22px rgba(59, 130, 246, .28);
}

.global-chat .global-chat__launcher-icon {
    background: #2563eb;
    border-color: #60a5fa;
    color: #ffffff;
}

.global-chat .global-chat__launcher-dot {
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
}
