@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ================================
   TradingView-style Header
   Modern, clean, minimalist design
   ================================ */

:root {
    --tv-header-height: 64px;
    --tv-header-bg: #ffffff;
    --tv-header-border: #e5e7eb;
    --tv-header-text: #1f2937;
    --tv-header-text-muted: #6b7280;
    --tv-header-hover: #f9fafb;
    --tv-primary-blue: #3b82f6;
    --tv-primary-blue-hover: #2563eb;
    --tv-primary-blue-light: #eff6ff;
    --tv-accent: #f59e0b;
}

/* ── Main Header ── */
.tv-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--tv-header-bg);
    border-bottom: 1px solid var(--tv-header-border);
    height: var(--tv-header-height);
    overflow: visible;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.tv-header:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tv-header__container {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 48px);
    display: flex;
    align-items: center;
    gap: 32px; 
    position: relative;
    overflow: visible;
}

/* ── Logo Zone ── */
.tv-header__logo-zone {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-width: 120px;
    overflow: visible;
    transform: translateX(-42px);
}

@keyframes tvHeaderBallRollIn {
    0% {
        opacity: 0;
        transform: translate3d(-92px, -50%, 0) scale(.58) rotate(-180deg);
    }
    8% {
        opacity: 1;
    }
    53%, 100% {
        opacity: 1;
        transform: translate3d(70px, -50%, 0) scale(.88) rotate(540deg);
    }
}

.tv-header__logo-zone::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 50%;
    left: -18px;
    width: 74px;
    height: 74px;
    pointer-events: none;
    background: url('../image/ball.png') center / contain no-repeat;
    animation: tvHeaderBallRollIn 6.8s linear infinite;
}

.tv-header__logo {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--tv-header-text);
    transition: opacity 0.2s ease;
    line-height: 0;
    isolation: isolate;
}

.tv-header__logo:hover {
    opacity: 0.8;
}

.tv-header__logo-img {
    height: 40px;   
    width: auto;
    object-fit: contain;
}

/* ── Main Navigation ── */
.tv-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex: 1;
    min-width: 0;
    transform: translateX(clamp(0px, 2vw, 30px));
}

.tv-header__drawer-head,
.tv-header__drawer-close,
.tv-header__nav-item > i {
    display: none;
}

.tv-header__nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--tv-header-text-muted);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.tv-header__nav-item:hover {
    color: var(--tv-header-text);
    background: var(--tv-header-hover);
}

.tv-header__nav-item.is-active {
    color: var(--tv-primary-blue);
    font-weight: 600;
}

.tv-header__nav-item.is-active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--tv-primary-blue);
    border-radius: 3px;
}

/* ── Right Actions ── */
.tv-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ── Language Selector ── */
.tv-header__lang-selector {
    position: relative;
    display: inline-flex;
}

.tv-header__lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--tv-header-border);
    border-radius: 6px;
    background: transparent;
    color: var(--tv-header-text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 101;
    width: 64px;
    min-width: 64px;
    height: 32px;
    min-height: 32px;
    justify-content: center;
    white-space: nowrap;
    flex: 0 0 64px;
}

.tv-header__lang-btn:hover {
    color: var(--tv-header-text);
    border-color: #d1d5db;
    background: var(--tv-header-hover);
}

.tv-header__lang-btn i {
    font-size: 14px;
}

.tv-header__lang-btn span {
    font-weight: 600;
}

.tv-header__lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--tv-header-border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    display: none;
    z-index: 100;
}

.tv-header__lang-selector:hover .tv-header__lang-menu,
.tv-header__lang-selector:focus-within .tv-header__lang-menu {
    display: block;
}

.tv-header__lang-option {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    text-align: left;
    text-decoration: none;
    color: var(--tv-header-text-muted);
    font-size: 14px;
    transition: all 0.2s ease;
}

.tv-header__lang-option:first-child {
    border-radius: 7px 7px 0 0;
}

.tv-header__lang-option:last-child {
    border-radius: 0 0 7px 7px;
}

.tv-header__lang-option:hover {
    background: var(--tv-primary-blue-light);
    color: var(--tv-primary-blue);
}

.tv-header__lang-option.is-active {
    background: var(--tv-primary-blue-light);
    color: var(--tv-primary-blue);
    font-weight: 600;
}

@media (max-width: 768px) {
    .tv-header__lang-selector {
        position: relative;
        display: inline-flex;
        width: auto;
        flex: 0 0 auto;
    }

    .tv-header__lang-btn {
        width: 58px;
        min-width: 58px;
        height: 32px;
        min-height: 32px;
        justify-content: center;
        gap: 4px;
        padding: 0 6px;
    }

    .tv-header__lang-menu,
    .tv-header__lang-selector:hover .tv-header__lang-menu,
    .tv-header__lang-selector:focus-within .tv-header__lang-menu {
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        left: auto;
        width: 112px;
        min-width: 112px;
        margin: 0;
        padding: 4px;
        border: 1px solid rgba(148, 163, 184, .28);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .16);
        overflow: hidden;
    }

    .tv-header__lang-option,
    .tv-header__lang-option:first-child,
    .tv-header__lang-option:last-child {
        display: flex;
        align-items: center;
        height: 30px;
        min-height: 30px;
        padding: 6px 10px;
        border-radius: 5px;
        font-size: 12px;
        line-height: 1.1;
        white-space: nowrap;
    }
}

/* ── User Menu ── */
.tv-header__user-menu {
    position: relative;
    display: inline-flex;
}

.tv-header__user-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--tv-header-border);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    z-index: 101;
}

.tv-header__user-btn:hover {
    border-color: var(--tv-header-text);
    background: var(--tv-header-hover);
}

.tv-header__user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tv-primary-blue), var(--tv-accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.tv-header__user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--tv-header-border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    display: none;
    z-index: 100;
}

.tv-header__user-menu:hover .tv-header__user-dropdown,
.tv-header__user-menu:focus-within .tv-header__user-dropdown {
    display: block;
}

.tv-header__user-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--tv-header-text-muted);
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.tv-header__user-option:first-child {
    border-radius: 7px 7px 0 0;
}

.tv-header__user-option:last-child {
    border-radius: 0 0 7px 7px;
}

.tv-header__user-option i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.tv-header__user-option:hover {
    background: var(--tv-primary-blue-light);
    color: var(--tv-primary-blue);
}

.tv-header__user-option--logout {
    color: #dc2626;
    border-top: 1px solid var(--tv-header-border);
}

.tv-header__user-option--logout:hover {
    background: #fef2f2;
    color: #991b1b;
}

/* ── Auth Buttons ── */
.tv-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    height: 36px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tv-header__mobile-login {
    display: none;
}

.tv-header__btn--secondary {
    background: transparent;
    border: 1px solid var(--tv-header-border);
    color: var(--tv-header-text);
}

.tv-header__btn--secondary:hover {
    background: var(--tv-header-hover);
    border-color: #d1d5db;
}

.tv-header__btn--primary {
    background: var(--tv-primary-blue);
    color: white;
    border: none;
}

.tv-header__btn--primary:hover {
    background: var(--tv-primary-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ── Mobile Hamburger ── */
.tv-header__hamburger {
    display: none;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--tv-header-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tv-header__hamburger span {
    width: 18px;
    height: 2px;
    background: var(--tv-header-text);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.tv-header__hamburger:hover {
    background: var(--tv-header-hover);
}

.tv-header__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 240ms ease, visibility 240ms ease;
    z-index: 999;
    -webkit-tap-highlight-color: transparent;
}

.tv-header__overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 1024px) {
    .tv-header__container {
        gap: 16px;
        padding: 0 16px;
    }

    .tv-header__nav {
        gap: 16px;
    }

    .tv-header__nav-item {
        font-size: 14px;
        padding: 6px 8px;
    }

    .tv-header__actions {
        gap: 12px;
    }

    .tv-header__btn {
        padding: 6px 12px;
        height: 32px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .tv-header__container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 8px;
        padding: 0 12px;
    }

    .tv-header__logo-zone {
        min-width: 0;
        justify-self: start;
    }

    .tv-header__nav {
        display: flex;
        position: fixed;
        inset: 0 auto 0 0;
        width: min(88vw, 360px);
        height: 100vh;
        height: 100dvh;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--tv-header-bg);
        border-right: 1px solid var(--tv-header-border);
        box-shadow: 16px 0 44px rgba(15, 23, 42, 0.2);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        z-index: 1001;
        transform: translateX(-105%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), visibility 280ms ease;
        padding: max(12px, env(safe-area-inset-top)) 0 max(20px, env(safe-area-inset-bottom));
    }

    .tv-header__nav.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .tv-header__drawer-head {
        min-height: 76px;
        flex: 0 0 76px;
        padding: 0 20px;
        margin-bottom: 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #edf0f4;
    }

    .tv-header__drawer-brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--tv-header-text);
        font-size: 16px;
        font-weight: 800;
        text-decoration: none;
    }

    .tv-header__drawer-brand .tv-header__logo-img {
        height: 34px;
        width: 34px;
        object-fit: contain;
    }

    .tv-header__drawer-close {
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--tv-header-border);
        border-radius: 8px;
        background: #fff;
        color: var(--tv-header-text-muted);
        font-size: 16px;
        cursor: pointer;
    }

    .tv-header__drawer-close:hover {
        color: var(--tv-header-text);
        background: var(--tv-header-hover);
    }

    .tv-header__hamburger {
        display: flex;
        justify-self: end;
        grid-column: 3;
        margin-left: 0;
    }

    .tv-header__mobile-login.tv-header__btn {
        display: inline-flex;
        position: static;
        justify-self: center;
        width: auto;
        min-width: 0;
        min-height: 32px;
        height: 32px;
        grid-column: 2;
        padding: 0 11px;
        border-radius: 7px;
        font-size: 12px;
        line-height: 1;
        z-index: 1;
    }

    .tv-header__nav-item > i {
        display: inline-block;
        width: 20px;
        color: var(--tv-header-text-muted);
        text-align: center;
        font-size: 16px;
        flex: 0 0 20px;
    }

    .tv-header__nav-item:hover,
    .tv-header__nav-item.is-active {
        color: var(--tv-primary-blue);
        background: var(--tv-primary-blue-light);
    }

    .tv-header__nav-item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 48px;
        width: auto;
        margin: 2px 12px;
        padding: 0 14px;
        border-radius: 8px;
        text-align: left;
        white-space: normal;
        line-height: 1.35;
        font-size: 14px;
    }

    .tv-header__nav-item.is-active > i {
        color: var(--tv-primary-blue);
    }

    .tv-header__nav-item.is-active::after {
        display: none;
    }

    .tv-header__actions {
        display: none;
        position: static;
        background: var(--tv-header-bg);
        border-top: 1px solid #edf0f4;
        border-bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 16px 20px max(20px, env(safe-area-inset-bottom));
        width: 100%;
        box-sizing: border-box;
        margin-top: auto;
    }

    .tv-header__nav.is-open .tv-header__actions {
        display: flex;
    }

    .tv-header__actions > .tv-header__btn {
        display: none;
    }

    .tv-header__btn {
        width: 100%;
        justify-content: center;
    }

    .tv-header__lang-selector {
        width: 100%;
        display: flex;
    }

    .tv-header__lang-btn {
        width: auto;
        min-width: 84px;
        justify-content: flex-start;
        min-height: 38px;
        padding: 0 12px;
        border-radius: 8px;
        background: #f5f7fa;
        color: var(--tv-header-text);
    }

    .tv-header__user-menu {
        width: 100%;
    }

    .tv-header__user-btn {
        width: 100%;
        min-height: 42px;
        border-radius: 8px;
    }

    .tv-header__btn {
        min-height: 42px;
        height: auto;
        border-radius: 8px;
    }

    .tv-header__lang-menu {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
        background: #f9fafb;
        margin-top: 4px;
    }

    .tv-header__lang-selector:hover .tv-header__lang-menu,
    .tv-header__lang-selector:focus-within .tv-header__lang-menu {
        display: block;
    }
}

@media (max-width: 480px) {
    .tv-header__nav-item {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tv-header__logo-zone::before {
        animation: none;
        opacity: 0;
    }

    .tv-header__logo-img {
        animation: none;
    }
}

@media (max-width: 768px) {
    body.section-frame.account-modal-content {
        padding-top: 0 !important;
    }

    body.account-modal-content #agent-section {
        padding: .65rem !important;
    }

    body.account-modal-content #agent-section > h2 {
        margin-bottom: .55rem !important;
        font-size: 1rem !important;
    }

    body.account-modal-content #agent-section > div {
        margin-bottom: .55rem !important;
        padding: .7rem !important;
    }
}

/* ================================
   Body Padding Adjustment
   (To account for fixed header)
   ================================ */

html {
    scroll-padding-top: var(--tv-header-height);
}

body {
    padding-top: var(--tv-header-height);
}

body.section-frame {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.deposit-page-body.section-frame {
    background: #f4f7fb !important;
}

.tv-mobile-bottom-nav {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    width: 100%;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    overflow: visible;
    align-items: stretch;
    justify-content: stretch;
    padding: 0 6px env(safe-area-inset-bottom, 0px);
    border-top: 1px solid rgba(214, 163, 41, .2);
    border-radius: 0;
    background: #080b12;
    box-shadow: 0 -7px 20px rgba(0, 0, 0, .32);
}

.tv-mobile-bottom-nav__item {
    position: relative;
    display: grid;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    align-items: end;
    padding: 3px 2px 4px;
    color: #a5adba;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.tv-mobile-bottom-nav__item i {
    grid-row: 1;
    align-self: end;
    margin-bottom: 3px;
    font-size: 18px;
    line-height: 1;
}

.tv-mobile-bottom-nav__item span {
    grid-row: 2;
    align-self: end;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(9px, 2.65vw, 10.5px);
    font-weight: 550;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tv-mobile-bottom-nav__item.is-active {
    color: #60a5fa;
}

.tv-mobile-bottom-nav__item.is-active::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 26px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: #3b82f6;
    content: '';
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .tv-header__container {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
        padding: 0 8px;
    }

    .tv-header__logo-zone {
        transform: none;
    }

    .tv-header__nav {
        display: none !important;
    }

    .tv-header__hamburger {
        display: none !important;
    }

    .tv-header__actions {
        position: static;
        z-index: auto;
        display: flex !important;
        grid-column: 2;
        justify-self: end;
        width: auto;
        max-height: calc(100dvh - var(--tv-header-height) - 82px - env(safe-area-inset-bottom, 0px));
        overflow: visible;
        margin: 0;
        padding: 0;
        flex-direction: row;
        align-items: stretch;
        gap: 4px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .tv-header__actions > .tv-header__btn {
        display: inline-flex !important;
        width: auto;
        min-width: 0;
        min-height: 30px;
        height: 30px;
        padding: 0 7px;
        border-radius: 7px;
        font-size: 10px;
    }

    .tv-header__lang-selector,
    .tv-header__user-menu {
        width: auto;
    }

    .tv-header__lang-selector {
        display: inline-flex;
    }

    .tv-header__lang-btn {
        min-width: 0;
        min-height: 30px;
        height: 30px;
        gap: 4px;
        padding: 0 7px;
        border-radius: 7px;
        font-size: 10px;
    }

    .tv-header__user-btn {
        width: 30px;
        height: 30px;
        min-height: 30px;
        border-radius: 50%;
    }

    .tv-header__user-dropdown,
    .tv-header__lang-menu {
        top: calc(100% + 4px);
        right: 0;
        z-index: 2;
    }

    .tv-mobile-bottom-nav {
        display: flex;
        position: relative;
        inset: auto;
        flex: none;
        height: 100%;
        min-height: 0;
        grid-row: 3;
        width: 100%;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

/* ── Neutral header palette ── */
.tv-header .tv-header__nav-item {
    color: #111827;
    font-weight: 600;
}

.tv-header .tv-header__nav-item:hover {
    color: #111827;
    background: #f8fafc;
}

.tv-header .tv-header__nav-item.is-active {
    color: #111827;
    background: #f8fafc;
}

.tv-header .tv-header__nav-item.is-active::after {
    display: none;
    content: none;
}

.tv-header .tv-header__lang-btn,
.tv-header .tv-header__user-btn {
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    background-image: none !important;
    color: #111827 !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

.tv-header .tv-header__lang-btn:hover,
.tv-header .tv-header__user-btn:hover {
    border-color: #94a3b8 !important;
    background: #f8fafc !important;
    color: #111827 !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

.tv-header .tv-header__user-avatar {
    border: 1px solid #e2e8f0;
    background: #f1f5f9 !important;
    background-image: none !important;
    color: #111827 !important;
}

@media (max-width: 768px) {
    .tv-header .tv-header__nav-item:hover {
        background: #f8fafc;
    }

    .tv-header .tv-header__nav-item.is-active {
        border-left: 0;
        background: #f8fafc;
    }

    .tv-header .tv-header__nav-item.is-active > i {
        color: #111827;
    }
}

.tv-mobile-bottom-nav__item.is-active::before {
    display: none;
    content: none;
}

.tv-mobile-bottom-nav__item {
    transition: background-color .16s ease, color .16s ease;
}

@media (hover: hover) and (pointer: fine) {
    .tv-mobile-bottom-nav__item:hover {
        background: transparent !important;
    }
}

@media (min-width: 769px) {
    .tv-header .tv-header__nav-item:hover {
        background: #e2e8f0;
        box-shadow: inset 0 0 0 1px #cbd5e1;
    }

    .tv-header .tv-header__nav-item.is-active {
        background: #f1f5f9;
        box-shadow: inset 0 0 0 1px #e2e8f0;
    }
}

/* Transparent overlay palette. Contrast is supplied per item by tv-header.js. */
.tv-header {
    --tv-overlay-text: #f8fafc;
    --tv-overlay-muted: rgba(248, 250, 252, .78);
    --tv-overlay-control-border: rgba(248, 250, 252, .5);
    --tv-overlay-control-bg: rgba(15, 23, 42, .12);
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    transition: color .32s ease, border-color .32s ease;
}

.tv-header,
.tv-header__container {
    background: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
}

.tv-header[data-header-contrast="light"] {
    --tv-overlay-text: #172033;
    --tv-overlay-muted: rgba(23, 32, 51, .76);
    --tv-overlay-control-border: rgba(23, 32, 51, .34);
    --tv-overlay-control-bg: rgba(255, 255, 255, .16);
}

.tv-header__nav-item {
    color: var(--tv-overlay-item-text, var(--tv-overlay-muted)) !important;
    text-shadow: var(--tv-overlay-item-shadow, 0 1px 3px rgba(0, 0, 0, .28));
    transition: color .32s ease, background-color .32s ease, box-shadow .32s ease;
}

.tv-header__nav-item[data-contrast="light"] {
    --tv-overlay-item-text: #172033;
    --tv-overlay-item-shadow: 0 1px 2px rgba(255, 255, 255, .5);
}

.tv-header__nav-item[data-contrast="dark"] {
    --tv-overlay-item-text: #f8fafc;
    --tv-overlay-item-shadow: 0 1px 3px rgba(0, 0, 0, .42);
}

.tv-header__nav-item:hover,
.tv-header__nav-item.is-active {
    color: var(--tv-overlay-item-text, var(--tv-overlay-text)) !important;
}

.tv-header__nav-item:hover {
    background: var(--tv-overlay-hover-bg, rgba(255, 255, 255, .14)) !important;
    box-shadow: none !important;
}

.tv-header__nav-item.is-active {
    background: transparent !important;
    box-shadow: none !important;
}

.tv-header__nav-item.is-active::after {
    display: block !important;
    right: 12px;
    bottom: 1px;
    left: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--tv-overlay-item-text, var(--tv-overlay-text)) !important;
    content: '';
}

.tv-header__nav-item[data-contrast="light"] {
    --tv-overlay-hover-bg: rgba(15, 23, 42, .08);
    --tv-overlay-active-bg: rgba(15, 23, 42, .1);
    --tv-overlay-active-border: rgba(15, 23, 42, .18);
}

.tv-header__nav-item[data-contrast="dark"] {
    --tv-overlay-hover-bg: rgba(255, 255, 255, .14);
    --tv-overlay-active-bg: rgba(255, 255, 255, .2);
    --tv-overlay-active-border: rgba(255, 255, 255, .34);
}

.tv-header .tv-header__lang-btn,
.tv-header .tv-header__user-btn {
    border-color: var(--tv-overlay-control-border) !important;
    background: var(--tv-overlay-control-bg) !important;
    color: var(--tv-overlay-text) !important;
    transition: color .32s ease, border-color .32s ease, background-color .32s ease;
}

.tv-header .tv-header__user-avatar {
    border-color: var(--tv-overlay-control-border);
    background: var(--tv-overlay-control-bg) !important;
    color: var(--tv-overlay-text) !important;
    transition: color .32s ease, border-color .32s ease, background-color .32s ease;
}

/* Give the adaptive header a solid, readable surface when contrast changes. */
.tv-header {
    background: #080808 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    transition: background-color .32s ease, color .32s ease, border-color .32s ease, box-shadow .32s ease;
}

.tv-header[data-header-contrast="light"] {
    background: #ffffff !important;
    border-bottom: 0 !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .06) !important;
}

/* Compact desktop header tuning. */
:root {
    --tv-header-height: 58px;
}

.tv-header__container {
    gap: 24px;
}

.tv-header__logo-zone {
    transform: translateX(-58px);
}

.tv-header__logo-zone::before {
    width: 74px;
    height: 74px;
}

.tv-header__logo-img {
    height: 42px;
}

.tv-header__nav {
    gap: 20px;
}

.tv-header__nav-item {
    padding: 6px 9px;
    font-size: 13px;
}

.tv-header__nav-item.is-active,
.tv-header__nav-item.is-active > i {
    color: #3b82f6 !important;
    text-shadow: none !important;
}

.tv-header__nav-item.is-active::after {
    background: #3b82f6 !important;
}

.tv-header__actions {
    gap: 8px;
}

.tv-header__btn {
    min-height: 32px;
    height: 32px;
    padding: 0 11px;
    border-radius: 6px;
    font-size: 12px;
}

/* Mobile bottom navigation matches the deep-black header palette. */
.tv-mobile-bottom-nav {
    background: #080808 !important;
    border-top-color: rgba(255, 255, 255, .1) !important;
    box-shadow: 0 -7px 20px rgba(0, 0, 0, .28) !important;
}

.tv-mobile-bottom-nav__item {
    color: #ffffff !important;
    transition: color .24s ease, background-color .24s ease;
}

.tv-mobile-bottom-nav__item.is-active {
    color: #ff8500 !important;
}

.tv-mobile-bottom-nav__item.is-active::before {
    background: #ff8500 !important;
}

@media (hover: none), (pointer: coarse) {
    .tv-mobile-bottom-nav__item:hover,
    .tv-mobile-bottom-nav__item:active {
        background: transparent !important;
    }

    .tv-mobile-bottom-nav__item.is-active,
    .tv-mobile-bottom-nav__item.is-active:hover,
    .tv-mobile-bottom-nav__item.is-active:active,
    .tv-mobile-bottom-nav__item.is-active i,
    .tv-mobile-bottom-nav__item.is-active span {
        color: #ff8500 !important;
    }
}

/* Refined account icon treatment on the dark header. */
.tv-header:not([data-header-contrast="light"]) .tv-header__user-btn {
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: rgba(248, 250, 252, .86) !important;
    box-shadow: none !important;
    transform: none !important;
}

.tv-header:not([data-header-contrast="light"]) .tv-header__user-avatar {
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: inherit !important;
}

.tv-header:not([data-header-contrast="light"]) .tv-header__user-btn:hover,
.tv-header:not([data-header-contrast="light"]) .tv-header__user-btn:focus-visible {
    background: rgba(255, 255, 255, .1) !important;
    color: #f5c542 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22) !important;
    transform: translateY(-1px) !important;
    outline: none;
}

.tv-header:not([data-header-contrast="light"]) .tv-header__user-btn:focus-visible {
    outline: 1px solid rgba(245, 197, 66, .75);
    outline-offset: 2px;
}

/* Stable click-only dropdowns: opening either control never changes header flow. */
.tv-header .tv-header__lang-selector,
.tv-header .tv-header__user-menu {
    position: relative;
    flex: 0 0 auto;
}

.tv-header .tv-header__lang-menu,
.tv-header .tv-header__user-dropdown {
    display: none !important;
    position: absolute;
}

.tv-header .tv-header__lang-selector.is-open .tv-header__lang-menu,
.tv-header .tv-header__user-menu.is-open .tv-header__user-dropdown {
    display: block !important;
}

.tv-header .tv-header__lang-menu,
.tv-header .tv-header__user-dropdown,
.tv-header .tv-header__lang-selector:hover .tv-header__lang-menu,
.tv-header .tv-header__lang-selector:focus-within .tv-header__lang-menu,
.tv-header .tv-header__user-menu:hover .tv-header__user-dropdown,
.tv-header .tv-header__user-menu:focus-within .tv-header__user-dropdown {
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    margin: 0;
    transform: none;
    border-radius: 8px;
}

.tv-header .tv-header__lang-menu {
    width: 112px;
    min-width: 112px;
    overflow: hidden;
}

.tv-header .tv-header__user-dropdown {
    width: 200px;
    min-width: 200px;
    max-width: calc(100vw - 16px);
    overflow: hidden;
}

@media (max-width: 768px) {
    .tv-header .tv-header__user-dropdown {
        width: min(200px, calc(100vw - 16px));
        min-width: 0;
    }

    .tv-header .tv-header__lang-menu {
        max-width: calc(100vw - 16px);
    }
}

.tv-header:not([data-header-contrast="light"]) .tv-header__btn--secondary {
    border-color: rgba(255, 255, 255, .62) !important;
    background: rgba(255, 255, 255, .06) !important;
    color: #ffffff !important;
}

.tv-header:not([data-header-contrast="light"]) .tv-header__btn--secondary:hover {
    border-color: #ffffff !important;
}

/* Mobile account drawer; desktop keeps the existing header dropdown unchanged. */
.tv-account-drawer {
    display: none;
}

.tv-auth-modal {
    position: fixed;
    z-index: 8000;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    isolation: isolate;
}

.tv-auth-modal[open] {
    display: grid;
    place-items: center;
}

.tv-auth-modal::backdrop {
    background: transparent;
}

.tv-auth-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 15, .78);
}

.tv-auth-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(860px, calc(100vw - 32px));
    height: min(500px, calc(100dvh - 32px));
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border: 1px solid #303949;
    border-radius: 16px;
    background: #202124;
    box-shadow: 0 24px 72px rgba(0, 0, 0, .52);
}

.tv-auth-modal__frame {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    height: 100%;
    max-height: calc(100dvh - 32px);
    border: 0;
    background: transparent !important;
}

.tv-auth-modal__close {
    position: absolute;
    z-index: 2;
    top: max(10px, env(safe-area-inset-top, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(203, 213, 225, .2) !important;
    border-radius: 50% !important;
    background: rgba(15, 23, 42, .88) !important;
    box-shadow: none !important;
    color: #e2e8f0 !important;
    font: inherit;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    #tv-auth-modal .tv-auth-modal__close:hover,
    #tv-auth-modal .tv-auth-modal__close:active {
        border-color: rgba(203, 213, 225, .2) !important;
        background: rgba(15, 23, 42, .88) !important;
        box-shadow: none !important;
        color: #e2e8f0 !important;
        filter: none !important;
        transform: none !important;
    }

    .tv-auth-modal__close:focus-visible {
        outline: 2px solid #f59e0b;
        outline-offset: 2px;
    }
}

@media (max-width: 768px) {
    .tv-auth-modal[open] {
        place-items: stretch;
        height: 100vh;
    }

    .tv-header .tv-header__user-dropdown {
        display: none !important;
    }

    .tv-header .tv-header__user-menu:hover .tv-header__user-dropdown,
    .tv-header .tv-header__user-menu:focus-within .tv-header__user-dropdown,
    .tv-header .tv-header__user-menu.is-open .tv-header__user-dropdown {
        display: none !important;
    }

    .tv-header__actions > .tv-header__btn {
        display: inline-flex !important;
        min-width: 0;
        min-height: 30px;
        height: 30px;
        padding: 0 7px;
        font-size: 10px;
    }

    .tv-account-drawer {
        position: fixed;
        z-index: 2000;
        inset: 0;
        display: none;
        overflow: hidden;
        background: rgba(0, 0, 0, .62);
    }

    .tv-account-drawer.is-open {
        display: block;
    }

    .tv-account-drawer__backdrop {
        position: absolute;
        inset: 0;
        background: transparent;
    }

    .tv-account-drawer__panel {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        width: min(90vw, 420px);
        max-width: 100vw;
        height: 100%;
        height: 100dvh;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
        border: 0;
        border-radius: 18px 0 0 18px;
        background: linear-gradient(165deg, #202020 0%, #121212 68%);
        box-shadow: -18px 0 48px rgba(0, 0, 0, .38);
        color: #f8fafc;
    }

    .tv-account-drawer__profile {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        padding: 2px 0 18px;
        border-bottom: 1px solid rgba(148, 163, 184, .2);
    }

    .tv-account-drawer__avatar {
        display: inline-flex;
        flex: 0 0 48px;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        overflow: hidden;
        border: 2px solid rgba(148, 163, 184, .52);
        border-radius: 50%;
        background: radial-gradient(circle at 30% 20%, #465364, #272d35 72%);
        color: #e2e8f0;
        font-size: 25px;
        line-height: 1;
    }

    .tv-account-drawer__identity {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        gap: 5px;
        min-width: 0;
    }

    .tv-account-drawer__identity strong {
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .tv-account-drawer__identity > span {
        color: #aeb9c8;
        font-size: 12px;
        line-height: 1.3;
    }

    .tv-account-drawer__close {
        display: inline-flex;
        flex: 0 0 40px;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .12) !important;
        border-radius: 11px !important;
        background: rgba(255, 255, 255, .06) !important;
        box-shadow: none !important;
        color: #fff !important;
        font-size: 18px;
        cursor: pointer;
    }

    .tv-account-drawer__actions,
    .tv-account-drawer__guest-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 18px 0;
        border-bottom: 1px solid rgba(148, 163, 184, .2);
    }

    .tv-account-drawer__action {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 0;
        min-height: 54px;
        padding: 0 8px;
        border: 1px solid rgba(255, 217, 106, .45);
        border-radius: 12px;
        color: #17130a;
        font-size: clamp(12px, 3.7vw, 14px);
        font-weight: 800;
        line-height: 1.15;
        text-align: center;
        text-decoration: none;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
    }

    .tv-account-drawer__action > i {
        flex: 0 0 auto;
        font-size: 15px;
    }

    .tv-account-drawer__action--deposit {
        background: linear-gradient(135deg, #ffdf75, #d6a329);
    }

    .tv-account-drawer__action--withdraw {
        border-color: rgba(255, 255, 255, .16);
        background: linear-gradient(135deg, #454545, #303030);
        color: #fff;
    }

    .tv-account-drawer__nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding-top: 10px;
    }

    .tv-account-drawer__link {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 0 10px;
        border: 1px solid transparent !important;
        border-radius: 10px !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #e6e6e6 !important;
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .tv-account-drawer__link > i:first-child {
        flex: 0 0 20px;
        color: #e1b63e;
        font-size: 16px;
        text-align: center;
    }

    .tv-account-drawer__link > span {
        flex: 1 1 auto;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .tv-account-drawer__link > i:last-child {
        flex: 0 0 auto;
        color: #8b8b8b;
        font-size: 12px;
    }

    .tv-account-drawer__link:hover,
    .tv-account-drawer__link:focus-visible {
        border-color: rgba(148, 163, 184, .24) !important;
        background: rgba(148, 163, 184, .09) !important;
        outline: none;
    }

    .tv-account-drawer__link--logout {
        margin-top: 8px;
        border-top-color: rgba(255, 255, 255, .1) !important;
        color: #fca5a5 !important;
    }

    .tv-account-drawer__link--logout > i:first-child {
        color: #f87171;
    }

    .tv-auth-modal__panel {
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .tv-auth-modal__frame {
        min-height: 0;
        height: 100%;
        max-height: none;
        flex: 1 1 auto;
    }
}

.tv-header[data-header-contrast="light"] .tv-header__btn--secondary {
    border-color: rgba(15, 23, 42, .34) !important;
    background: rgba(15, 23, 42, .04) !important;
    color: #172033 !important;
}

.tv-mobile-bottom-nav,
.tv-mobile-bottom-nav__item,
.tv-mobile-bottom-nav__item span {
    font-family: Inter, sans-serif;
}

@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
    textarea,
    select,
    [contenteditable="true"] {
        font-size: 16px !important;
    }

    .community-chat-drawer {
        height: 100vh;
        height: 100svh;
    }

    body.keyboard-open .community-chat-drawer {
        top: var(--mobile-viewport-top, 0px);
        bottom: auto;
        height: var(--mobile-viewport-height, 100dvh);
    }

    body.keyboard-open .support-chat-sheet {
        margin-bottom: 0;
        max-height: calc(var(--mobile-viewport-height, 100dvh) - 20px);
    }
}

.support-widget__trigger {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1250;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 235, 166, .75);
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f6e7a1);
    color: #111827;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4), 0 0 18px rgba(250, 204, 21, .24);
    cursor: pointer;
    font-size: 21px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.support-widget__trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .46), 0 0 22px rgba(250, 204, 21, .32);
}

.support-widget__trigger:focus-visible,
.support-widget__close:focus-visible,
.support-widget__composer button:focus-visible,
.support-widget__guest a:focus-visible {
    outline: 2px solid #f6e7a1;
    outline-offset: 3px;
}

.support-widget [hidden] {
    display: none !important;
}

.support-widget__overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.support-widget__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(2, 6, 23, .8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: default;
}

.support-widget__panel {
    position: relative;
    display: flex;
    width: min(100%, 480px);
    max-height: min(88vh, 640px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, .22);
    border-radius: 22px;
    background: linear-gradient(160deg, #111827, #080d18);
    box-shadow: 0 25px 80px rgba(0, 0, 0, .58);
    color: #e2e8f0;
}

.support-widget__channels {
    display: grid;
    gap: 9px;
    padding: 14px;
}

.support-widget__channel {
    display: flex;
    min-width: 0;
    min-height: 66px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 14px;
    background: rgba(30, 41, 59, .5);
    color: #e2e8f0;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.support-widget__channel:hover {
    transform: translateY(-1px);
    border-color: rgba(251, 191, 36, .42);
    background: rgba(51, 65, 85, .68);
}

.support-widget__channel:focus-visible,
.support-widget__back:focus-visible {
    outline: 2px solid #f6e7a1;
    outline-offset: 2px;
}

.support-widget__channel-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border-radius: 13px;
    background: rgba(255, 255, 255, .94);
}

.support-widget__channel-icon img {
    display: block;
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.support-widget__channel-icon--chat {
    background: linear-gradient(135deg, #f6e7a1, #d4af37);
    color: #111827;
    font-size: 19px;
}

.support-widget__channel-copy {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    gap: 3px;
}

.support-widget__channel-copy strong {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
}

.support-widget__channel-copy small {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.35;
}

.support-widget__channel > .fa-arrow-up-right-from-square,
.support-widget__channel > .fa-chevron-right {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 13px;
}

.support-widget__chat {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

.support-widget__back {
    display: inline-flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin: 10px 14px 0;
    padding: 0 11px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 10px;
    background: rgba(30, 41, 59, .45);
    color: #cbd5e1;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.support-widget__back:hover {
    border-color: rgba(251, 191, 36, .38);
    color: #fff;
}

.support-widget__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(251, 191, 36, .12);
    background: linear-gradient(110deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .88));
}

.support-widget__header-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(251, 191, 36, .25);
    border-radius: 14px;
    background: rgba(251, 191, 36, .12);
    color: #fde68a;
    font-size: 18px;
}

.support-widget__heading {
    min-width: 0;
    flex: 1 1 auto;
}

.support-widget__heading h2 {
    margin: 0;
    color: #fffbeb;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.support-widget__heading p {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
}

.support-widget__close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 25px;
}

.support-widget__close:hover {
    background: rgba(255, 255, 255, .08);
    color: white;
}

.support-widget__messages {
    display: flex;
    min-height: 180px;
    max-height: min(48vh, 380px);
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 16px;
    background: radial-gradient(ellipse at top, rgba(30, 41, 59, .5), transparent 55%), #0b1120;
    scrollbar-color: rgba(251, 191, 36, .28) transparent;
    scrollbar-width: thin;
}

.support-widget__messages::-webkit-scrollbar {
    width: 5px;
}

.support-widget__messages::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(251, 191, 36, .28);
}

.support-widget__loading {
    margin: auto;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

/* Keep navigation typography crisp and readable across desktop and mobile. */
.tv-header,
.tv-header__nav,
.tv-header__nav-item,
.tv-header__actions,
.tv-header__btn,
.tv-header__lang-btn,
.tv-header__user-btn,
.tv-mobile-bottom-nav,
.tv-mobile-bottom-nav__item,
.tv-mobile-bottom-nav__item span {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tv-header__nav-item {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}

.tv-header .tv-header__nav-item {
    color: #e2e8f0 !important;
}

.tv-header .tv-header__nav-item:hover {
    color: #ffffff !important;
}

.tv-header .tv-header__nav-item.is-active,
.tv-header .tv-header__nav-item.is-active > i {
    color: #f5c84c !important;
    font-weight: 700;
}

.tv-header .tv-header__nav-item.is-active::after {
    background: #f5c84c !important;
}

.tv-header__btn,
.tv-header__lang-btn {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

.tv-header .tv-header__btn--secondary {
    color: #f8fafc !important;
}

.tv-header[data-header-contrast="light"] .tv-header__nav-item {
    color: #334155 !important;
}

.tv-header[data-header-contrast="light"] .tv-header__nav-item:hover {
    color: #111827 !important;
}

.tv-header[data-header-contrast="light"] .tv-header__nav-item.is-active,
.tv-header[data-header-contrast="light"] .tv-header__nav-item.is-active > i {
    color: #9a6b00 !important;
}

.tv-header[data-header-contrast="light"] .tv-header__btn--secondary {
    color: #172033 !important;
}

.tv-mobile-bottom-nav__item {
    color: #cbd5e1 !important;
}

.tv-mobile-bottom-nav__item span {
    font-size: clamp(10.5px, 2.9vw, 12px);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.1;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    text-wrap: balance;
}

.tv-mobile-bottom-nav__item i {
    font-size: 19px;
}

.tv-mobile-bottom-nav__item.is-active {
    color: #f5c84c !important;
}

@media (max-width: 768px) {
    .tv-header__btn,
    .tv-header__lang-btn {
        font-size: 11px;
    }
}

.support-widget__message-row {
    display: flex;
}

.support-widget__message-row--user {
    justify-content: flex-end;
}

.support-widget__message-bubble {
    max-width: 88%;
}

.community-chat-drawer {
    position: fixed;
    z-index: 6000;
    inset: 0 0 0 auto;
    width: min(400px, 100vw);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear 340ms;
}

.community-chat-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
}

.community-chat-drawer__panel {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    border-left: 1px solid rgba(245, 197, 66, .2);
    border-radius: 14px 0 0 14px;
    background: #0d1420;
    box-shadow: -18px 0 50px rgba(0, 0, 0, .3);
    color: #e5e7eb;
    transform: translateX(100%);
    transition: transform 340ms cubic-bezier(.22, .75, .25, 1);
}

.community-chat-drawer.is-open .community-chat-drawer__panel {
    transform: translateX(0);
}

.community-chat-drawer__header {
    display: flex;
    min-height: 68px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: #111b2a;
}

.community-chat-drawer__title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .7rem;
    color: #f5c542;
}

.community-chat-drawer__title > i {
    font-size: 1.15rem;
}

.community-chat-drawer__title h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 750;
}

.community-chat-drawer__close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #f3f4f6;
    font-size: 1.1rem;
    cursor: pointer;
}

.community-chat-drawer__close:hover,
.community-chat-drawer__close:focus-visible {
    border-color: rgba(245, 197, 66, .6);
    color: #f5c542;
}

.community-chat-drawer__status {
    min-height: 1.25rem;
    flex: 0 0 auto;
    margin: 0;
    padding: .45rem .9rem 0;
    color: #fbbf24;
    font-size: .8rem;
}

.community-chat-drawer__messages {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .75rem;
    overflow-x: hidden;
    overflow-y: auto;
    padding: .9rem;
    overscroll-behavior: contain;
    scrollbar-color: #475569 transparent;
    scrollbar-width: thin;
}

.community-chat-drawer__message {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: .6rem;
}

.community-chat-drawer__avatar {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(245, 197, 66, .3);
    border-radius: 50%;
    background: #1f2937;
    color: #f5c542;
}

.community-chat-drawer__bubble {
    max-width: calc(100% - 2.5rem);
    min-width: 0;
    padding: .6rem .75rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 4px 14px 14px 14px;
    background: #172235;
}

.community-chat-drawer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .55rem;
    margin-bottom: .25rem;
}

.community-chat-drawer__username {
    color: #f5c542;
    font-size: .8rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.community-chat-drawer__time {
    color: #9ca3af;
    font-size: .68rem;
}

.community-chat-drawer__text {
    margin: 0;
    color: #e5e7eb;
    font-size: .9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.community-chat-drawer__empty {
    margin: auto;
    color: #9ca3af;
    text-align: center;
}

.community-chat-drawer__form {
    display: flex;
    flex: 0 0 auto;
    gap: .6rem;
    padding: .85rem;
    padding-bottom: max(.85rem, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: #0b111b;
}

.community-chat-drawer__form input {
    min-width: 0;
    flex: 1 1 auto;
    padding: .75rem .85rem;
    border: 1px solid #374151;
    border-radius: 10px;
    outline: none;
    background: #111827;
    color: #fff;
}

.community-chat-drawer__form input:focus {
    border-color: #f5c542;
    box-shadow: 0 0 0 2px rgba(245, 197, 66, .18);
}

.community-chat-drawer__form button,
.community-chat-drawer__gate a {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .65rem .9rem;
    border: 0;
    border-radius: 10px;
    background: #f5c542;
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.community-chat-drawer__form button:disabled {
    cursor: wait;
    opacity: .6;
}

.community-chat-drawer__gate {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.4rem;
    text-align: center;
}

.community-chat-drawer__gate > i {
    margin-bottom: .9rem;
    color: #f5c542;
    font-size: 1.7rem;
}

.community-chat-drawer__gate h3 {
    margin: 0 0 .6rem;
    color: #f5c542;
    font-size: 1.05rem;
}

.community-chat-drawer__gate p {
    max-width: 25rem;
    margin: 0 0 1.1rem;
    color: #cbd5e1;
    font-size: .9rem;
    line-height: 1.6;
}

.community-chat-drawer__panel [hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .community-chat-drawer {
        width: min(380px, 100vw);
    }
}

@media (max-width: 600px) {
    .community-chat-drawer {
        width: 100vw;
    }

    .community-chat-drawer__panel {
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .community-chat-drawer {
        transition-duration: .01ms;
        transition-delay: 0s;
    }
}

@media (min-width: 1200px) {
        .section-shell .support-widget__trigger {
            display: none !important;
        }

        .section-shell .support-widget .support-widget__overlay,
        .section-shell .support-widget .support-widget__overlay[hidden] {
            position: fixed !important;
            inset: 82px 20px 18px auto !important;
            z-index: 40 !important;
            display: flex !important;
            width: clamp(250px, 22vw, 280px) !important;
            max-height: none !important;
            align-items: flex-start !important;
            justify-content: stretch !important;
            padding: 0 !important;
            background: transparent !important;
            pointer-events: none !important;
        }

        .section-shell .support-widget .support-widget__overlay::after {
            content: none !important;
        }

        .section-shell .support-widget .support-widget__panel {
            width: 100% !important;
            max-height: calc(100dvh - 100px) !important;
            border: 1px solid rgba(148, 163, 184, .2) !important;
            border-radius: 14px !important;
            background: linear-gradient(160deg, #111821, #0b1018) !important;
            box-shadow: 0 16px 36px rgba(0, 0, 0, .36) !important;
            color: #e2e8f0 !important;
            pointer-events: auto !important;
            animation: none !important;
        }

        .section-shell .support-widget .support-widget__panel--chat {
            height: min(680px, calc(100dvh - 100px)) !important;
        }

        .section-shell .support-widget .support-widget__header {
            min-height: 54px !important;
            padding: 12px 14px !important;
            border-bottom: 1px solid rgba(148, 163, 184, .18) !important;
            background: transparent !important;
        }

        .section-shell .support-widget .support-widget__heading h2 {
            color: #f8fafc !important;
            font-size: 15px !important;
            font-weight: 700;
        }

        .section-shell .support-widget .support-widget__header-actions {
            display: none !important;
        }

        .section-shell .support-widget .support-widget__channels {
            gap: 8px !important;
            padding: 12px !important;
            background: transparent !important;
        }

        .section-shell .support-widget .support-widget__channel {
            min-height: 50px !important;
            gap: 10px;
            padding: 8px 10px;
            border-color: rgba(148, 163, 184, .16) !important;
            border-radius: 10px !important;
            background: rgba(30, 41, 59, .42) !important;
            color: #e2e8f0 !important;
            transition: border-color .16s ease, background .16s ease;
        }

        .section-shell .support-widget .support-widget__channel:hover {
            transform: none;
            border-color: rgba(214, 163, 41, .42) !important;
            background: rgba(51, 65, 85, .55) !important;
        }

        .section-shell .support-widget .support-widget__channel-copy strong {
            color: #e2e8f0 !important;
            font-size: 13px;
            font-weight: 650;
        }

        .section-shell .support-widget .support-widget__channel > .fa-arrow-up-right-from-square,
        .section-shell .support-widget .support-widget__channel > .fa-chevron-right {
            color: #94a3b8 !important;
            font-size: 12px;
        }

        .section-shell .support-widget .support-widget__chat,
        .section-shell .support-widget .support-widget__conversation {
            background: #0b1018 !important;
        }

        .section-shell .support-widget .support-widget__messages {
            background: #0b1018 !important;
        }

        .section-shell .support-widget .support-widget__message-bubble {
            border-color: rgba(148, 163, 184, .2) !important;
            background: #17212d !important;
            color: #e2e8f0 !important;
        }

        .section-shell .support-widget .support-widget__message-row--user .support-widget__message-bubble {
            border-color: rgba(214, 163, 41, .28) !important;
            background: rgba(214, 163, 41, .12) !important;
            color: #f8fafc !important;
        }

        .section-shell .support-widget .support-widget__quick-replies,
        .section-shell .support-widget .support-widget__composer {
            border-color: rgba(148, 163, 184, .16) !important;
            background: #0f1721 !important;
        }

        .section-shell .support-widget .support-widget__quick-replies button,
        .section-shell .support-widget .support-widget__back {
            border-color: rgba(148, 163, 184, .2) !important;
            background: #17212d !important;
            color: #e2e8f0 !important;
        }

        .section-shell .support-widget .support-widget__composer input,
        .section-shell .support-widget .support-widget__guest-start input {
            border-color: rgba(148, 163, 184, .24) !important;
            background: #111821 !important;
            color: #f8fafc !important;
        }
}

@media (prefers-reduced-motion: reduce) {
    .community-chat-drawer__panel {
        transition-duration: .01ms;
    }
}

.support-widget__message-row--user .support-widget__message-bubble {
    border: 0;
    border-radius: 16px 16px 4px 16px;
    background: linear-gradient(135deg, #f6e7a1, #d4af37);
    color: #111827;
    font-weight: 600;
}

.support-widget__error {
    flex: 0 0 auto;
    margin: 0;
    padding: 9px 16px;
    border-top: 1px solid rgba(248, 113, 113, .2);
    background: rgba(127, 29, 29, .22);
    color: #fca5a5;
    font-size: 12px;
}

.support-widget__composer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(251, 191, 36, .12);
    background: rgba(2, 6, 23, .82);
}

.support-widget__composer input {
    min-width: 0;
    flex: 1 1 auto;
    padding: 11px 14px;
    border: 1px solid rgba(148, 163, 184, .4);
    border-radius: 14px;
    outline: none;
    background: rgba(30, 41, 59, .72);
    color: #f1f5f9;
    font: inherit;
    font-size: 14px;
}

.support-widget__composer input:focus {
    border-color: rgba(251, 191, 36, .6);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, .18);
}

.support-widget__composer button {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #fbbf24, #ea580c);
    color: #111827;
    cursor: pointer;
}

.support-widget__composer button:disabled {
    cursor: wait;
    opacity: .6;
}

.support-widget__guest {
    padding: 24px 20px;
    color: #cbd5e1;
    text-align: center;
}

.support-widget__guest p {
    margin: 0 0 18px;
}

.support-widget__guest a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fbbf24, #d4af37);
    color: #111827;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 768px) {
    .support-widget__trigger {
        right: 16px;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 16px);
    }

    .support-widget__overlay {
        align-items: flex-end;
        padding: 0;
    }

    .support-widget__panel {
        width: 100%;
        max-height: 90vh;
        border-radius: 22px 22px 0 0;
    }

    .support-widget__messages {
        max-height: min(48vh, 380px);
    }
}

.community-chat-drawer__socials {
    display: flex;
    min-height: 54px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: .35rem .85rem max(.5rem, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: #0b111b;
}

.community-chat-drawer__socials a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.community-chat-drawer__panel {
    border-left-color: #e5e7eb;
    background: #f8fafc;
    color: #1f2937;
}

.community-chat-drawer__header {
    border-bottom-color: #e5e7eb;
    background: #ffffff;
}

.community-chat-drawer__title {
    color: #111827;
}

.community-chat-drawer__close {
    border-color: #e2e8f0;
    background: #f1f5f9;
    color: #334155;
}

.community-chat-drawer__close:hover,
.community-chat-drawer__close:focus-visible {
    border-color: #cbd5e1;
    color: #111827;
}

.community-chat-drawer__status {
    color: #b45309;
}

.community-chat-drawer__messages {
    background: #f3f6fa;
    scrollbar-color: #cbd5e1 transparent;
}

.community-chat-drawer__message {
    width: min(92%, 100%);
    align-self: flex-start;
    justify-content: flex-start;
}

.community-chat-drawer__message.is-own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.community-chat-drawer__avatar {
    border-color: #dbe3ed;
    background: #ffffff;
    color: #475569;
}

.community-chat-drawer__bubble {
    border-color: #e2e8f0;
    border-radius: 4px 14px 14px 14px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.community-chat-drawer__message.is-own .community-chat-drawer__bubble {
    border-color: #bfdbfe;
    border-radius: 14px 4px 14px 14px;
    background: #dbeafe;
}

.community-chat-drawer__message.is-admin .community-chat-drawer__bubble {
    border-color: #f3e8c5;
    background: #fffdf6;
}

.community-chat-drawer__username {
    color: #475569;
}

.community-chat-drawer__username.is-admin {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    background: linear-gradient(100deg, #d97706, #db2777, #4f46e5, #059669, #d97706);
    background-size: 240% 100%;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    -webkit-background-clip: text;
    animation: community-chat-admin-name 5s linear infinite;
}

.community-chat-drawer__admin-brand {
    display: inline-block;
    width: auto;
    height: 14px;
    max-width: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(245, 197, 66, .4));
}

.community-chat-drawer__time {
    color: #94a3b8;
}

.community-chat-drawer__text {
    color: #1f2937;
}

.community-chat-drawer__empty {
    color: #64748b;
}

.community-chat-drawer__form {
    border-top-color: #e2e8f0;
    background: #ffffff;
}

.community-chat-drawer__form input {
    border-color: #d1d9e4;
    background: #f8fafc;
    color: #111827;
}

.community-chat-drawer__form input::placeholder {
    color: #94a3b8;
}

.community-chat-drawer__socials {
    border-top-color: #e2e8f0;
    background: #ffffff;
}

.community-chat-drawer__socials a {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.community-chat-drawer__gate h3 {
    color: #b45309;
}

.community-chat-drawer__gate p {
    color: #475569;
}

@keyframes community-chat-admin-name {
    to {
        background-position: 240% 0;
    }
}

.community-chat-drawer__socials a:hover,
.community-chat-drawer__socials a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(245, 197, 66, .55);
    background: rgba(245, 197, 66, .1);
}

.community-chat-drawer__socials img {
    display: block;
    width: 21px;
    height: 21px;
    object-fit: contain;
}

.community-chat-drawer__avatar img,
.tv-header__user-avatar img,
.tv-account-drawer__avatar img,
.profile-header-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.tv-header__user-avatar {
    overflow: hidden;
}

.tv-account-drawer__avatar {
    flex-shrink: 0;
    overflow: hidden;
}

.profile-header-avatar {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .community-chat-drawer__socials a {
        transition-duration: .01ms;
    }

    .community-chat-drawer__username.is-admin {
        animation: none;
    }
}

.support-widget__trigger {
    border-color: #475569 !important;
    background: #1e293b !important;
    color: #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .38) !important;
}

.support-widget__trigger:hover {
    background: #334155 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .46) !important;
}

.support-widget .support-widget__overlay > .support-widget__backdrop {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(2, 6, 23, .62) !important;
    box-shadow: none !important;
    transform: none !important;
    -webkit-backdrop-filter: blur(3px) !important;
    backdrop-filter: blur(3px) !important;
}

.support-widget__overlay {
    background: transparent !important;
}

.support-widget__panel {
    width: min(360px, calc(100vw - 32px));
    max-height: min(80vh, 520px);
    border-color: #334155;
    border-radius: 16px;
    background: #111827;
    box-shadow: 0 22px 64px rgba(0, 0, 0, .48);
}

.support-widget__header {
    gap: 10px;
    padding: 12px 14px;
    border-bottom-color: #263244;
    background: #111827;
}

.support-widget__header-icon {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #1e293b;
    color: #93c5fd;
    font-size: 16px;
}

.support-widget__heading h2 {
    color: #f1f5f9;
    font-size: 15px;
}

.support-widget .support-widget__header .support-widget__close {
    display: grid !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #ef4444 !important;
    font-size: 26px !important;
    line-height: 1 !important;
    transform: none !important;
}

.support-widget .support-widget__header .support-widget__close:hover {
    background: rgba(239, 68, 68, .12) !important;
    color: #f87171 !important;
}

.support-widget__channels {
    gap: 7px;
    padding: 10px;
}

.support-widget .support-widget__channel {
    min-height: 50px;
    gap: 10px;
    padding: 6px 9px;
    border-color: #2b3648;
    border-radius: 10px;
    background: #182232;
}

.support-widget .support-widget__channel:hover {
    border-color: #52647c;
    background: #202d3e;
}

.support-widget .support-widget__channel--chat {
    border: 1px solid #2b3648 !important;
    border-radius: 10px !important;
    background: #182232 !important;
    box-shadow: none !important;
    color: #e2e8f0 !important;
    transform: none !important;
}

.support-widget .support-widget__channel--chat:hover {
    border-color: #52647c !important;
    background: #202d3e !important;
}

.support-widget__channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.support-widget__channel-icon--chat {
    background: #26364b !important;
    color: #93c5fd;
}

.support-widget__channel-copy strong {
    color: #e2e8f0;
    font-size: 13px;
}

.support-widget__channel > .fa-arrow-up-right-from-square,
.support-widget__channel > .fa-chevron-right {
    color: #94a3b8;
}

.support-widget__back {
    min-height: 36px;
    margin: 8px 10px 0;
    border-color: #334155;
    background: #1e293b;
}

.support-widget__messages {
    min-height: 150px;
    padding: 12px;
    background: #0f172a;
    scrollbar-color: #475569 transparent;
}

.support-widget__messages::-webkit-scrollbar-thumb {
    background: #475569;
}

.support-widget__message-row--user .support-widget__message-bubble {
    background: #334155;
    color: #f1f5f9;
}

.support-widget__composer {
    border-top-color: #263244;
}

.support-widget__composer input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, .16);
}

.support-widget .support-widget__composer button {
    border-radius: 10px !important;
    background: #334155 !important;
    box-shadow: none !important;
    color: #e2e8f0 !important;
}

.support-widget .support-widget__guest a {
    border-radius: 9px;
    background: #334155;
    color: #f1f5f9;
}

@media (min-width: 769px) {
    .support-widget__overlay {
        padding: 24px;
    }

    .support-widget__panel {
        width: 340px;
        max-height: min(78vh, 460px);
    }
}

@media (max-width: 768px) {
    .support-widget__panel {
        width: 100%;
        max-height: min(78vh, 560px);
        border-radius: 16px 16px 0 0;
    }
}

@media (max-width: 768px) {
    .support-widget__overlay {
        align-items: center !important;
        justify-content: center !important;
        padding: 16px !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .support-widget__panel {
        width: min(320px, calc(100vw - 32px)) !important;
        max-height: min(72vh, 430px) !important;
        border-radius: 15px !important;
    }
}

@media (min-width: 769px) {
    .support-widget__panel {
        width: 320px;
        max-height: min(72vh, 420px);
    }
}

.support-widget .support-widget__header {
    min-height: 50px;
    padding: 9px 12px;
}

.support-widget .support-widget__header-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 14px;
}

.support-widget .support-widget__heading h2 {
    font-size: 14px;
}

.support-widget .support-widget__channels {
    gap: 5px;
    padding: 8px;
}

.support-widget .support-widget__channel {
    min-height: 44px;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 9px;
}

.support-widget .support-widget__channel-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.support-widget .support-widget__channel-icon img {
    width: 23px;
    height: 23px;
}

.support-widget .support-widget__channel-copy strong {
    font-size: 12px;
}

.support-widget__guest-start {
    display: grid;
    gap: 9px;
    padding: 14px 12px;
}

.support-widget__guest-start label {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
}

.support-widget__guest-start input {
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #334155;
    border-radius: 9px;
    outline: none;
    background: #0f172a;
    color: #f1f5f9;
    font: inherit;
    font-size: 13px;
}

.support-widget__guest-start input:focus {
    border-color: #64748b;
}

.support-widget__guest-start > button {
    min-height: 38px;
    border: 1px solid #475569;
    border-radius: 9px;
    background: #334155;
    color: #f8fafc;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
}

.support-widget__guest-start > button:hover {
    background: #475569;
}

.support-widget__guest-start > button:disabled {
    cursor: wait;
    opacity: .6;
}

.support-widget__quick-replies {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px 2px;
}

.support-widget__quick-replies button {
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid #334155;
    border-radius: 999px;
    background: #1e293b;
    color: #cbd5e1;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}

.support-widget__quick-replies button:hover,
.support-widget__quick-replies button:focus-visible {
    border-color: #64748b;
    background: #334155;
    color: #fff;
}

.support-widget__quick-replies button:focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: 1px;
}

.support-widget__overlay {
    position: fixed !important;
    inset: auto 20px 82px auto !important;
    z-index: 2000 !important;
    display: block !important;
    width: min(320px, calc(100vw - 32px)) !important;
    padding: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
}

.support-widget__overlay[hidden] {
    display: none !important;
}

.support-widget__overlay > .support-widget__panel {
    width: 100% !important;
    max-height: min(72vh, 420px) !important;
    pointer-events: auto;
    animation: support-popover-in .16s ease-out both;
}

.support-widget__overlay::after {
    position: absolute;
    right: 22px;
    bottom: -6px;
    width: 12px;
    height: 12px;
    border-right: 1px solid #334155;
    border-bottom: 1px solid #334155;
    background: #111827;
    content: "";
    transform: rotate(45deg);
    pointer-events: none;
}

.support-widget__overlay > .support-widget__panel::after {
    content: none;
}

/*
 * Keep this a compact anchored popover instead of a full-screen modal overlay.
 */
@media (max-width: 768px) {
    .support-widget__overlay::after {
        right: 19px;
    }
}

@media (max-width: 768px) {
    .support-widget__overlay > .support-widget__panel::after {
        content: none;
    }
}

.support-widget__close {
    color: #ef4444 !important;
}

.support-widget__close:hover {
    background: rgba(239, 68, 68, .12) !important;
    color: #f87171 !important;
}

@keyframes support-popover-in {
    from { opacity: 0; transform: translateY(6px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    .support-widget__overlay {
        inset: auto 12px calc(64px + env(safe-area-inset-bottom, 0px) + 78px) auto !important;
        width: min(320px, calc(100vw - 24px)) !important;
    }

    .support-widget__overlay > .support-widget__panel {
        max-height: min(64vh, 420px) !important;
    }

}

.support-widget__trigger {
    border-color: #bfdbfe !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .2) !important;
}

.support-widget__trigger:hover {
    background: #dbeafe !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .24) !important;
}

.support-widget__overlay {
    width: min(440px, calc(100vw - 32px)) !important;
}

.support-widget__overlay > .support-widget__panel {
    width: 100% !important;
    max-height: min(78vh, 680px) !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .2) !important;
    color: #1e293b !important;
}

.support-widget__panel--chat {
    height: min(680px, calc(100vh - 150px)) !important;
    height: min(680px, calc(100dvh - 150px)) !important;
}

.support-widget .support-widget__header {
    min-height: 58px !important;
    gap: 8px !important;
    padding: 9px 12px !important;
}

.support-widget__header-action {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e5e7eb;
    color: #111827;
    cursor: pointer;
    font: inherit;
    font-size: 17px;
    line-height: 1;
}

.support-widget__header-action:hover,
.support-widget__header-action:focus-visible {
    background: #d1d5db;
    outline: none;
}

.support-widget__header-back {
    margin-right: auto;
}

.support-widget__header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.support-widget .support-widget__header .support-widget__header-actions .support-widget__close {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
    border-radius: 50% !important;
    background: #e5e7eb !important;
    color: #111827 !important;
    font-size: 19px !important;
}

.support-widget .support-widget__header .support-widget__header-actions .support-widget__close:hover {
    background: #fecaca !important;
    color: #b91c1c !important;
}

.support-widget .support-widget__header .support-widget__header-action:not(.support-widget__close) {
    border: 1px solid #dbe3ee !important;
    background: #eff6ff !important;
    color: #334155 !important;
    box-shadow: none !important;
}

.support-widget .support-widget__header .support-widget__header-action:not(.support-widget__close):hover,
.support-widget .support-widget__header .support-widget__header-action:not(.support-widget__close):focus-visible {
    border-color: #bfdbfe !important;
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}

.support-widget .support-widget__header .support-widget__header-action[hidden] {
    display: none !important;
}

.support-widget__agent-pill {
    display: inline-flex;
    min-width: 0;
    max-width: 58%;
    align-items: center;
    gap: 7px;
    margin: 0 auto;
    padding: 5px 12px 5px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(15, 23, 42, .12);
}

.support-widget__agent-pill[hidden] {
    display: none !important;
}

.support-widget__agent-pill strong {
    overflow: hidden;
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-widget__agent-avatar {
    position: relative;
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    overflow: visible;
    border-radius: 50%;
    background: #e5e7eb;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
}

.support-widget__agent-avatar img,
.support-widget__agent-avatar > span:first-child {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    object-fit: cover;
}

.support-widget__agent-status-dot {
    position: absolute;
    right: -1px;
    bottom: 0;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, .18);
}

.support-widget__overlay::after {
    border-color: #dbe3ee !important;
    background: #fff !important;
}

.support-widget .support-widget__header {
    min-height: 66px !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #fff !important;
}

.support-widget .support-widget__heading h2 {
    color: #172033 !important;
    font-size: 16px !important;
}

.support-widget__header-icon {
    border: 1px solid #dbeafe !important;
    border-radius: 50% !important;
    background: #eff6ff !important;
    color: #2563eb !important;
}

.support-widget__channels {
    gap: 8px !important;
    padding: 14px !important;
    background: #fff !important;
}

.support-widget .support-widget__channel {
    min-height: 56px !important;
    border-color: #e2e8f0 !important;
    background: #fff !important;
    color: #1e293b !important;
}

.support-widget .support-widget__channel:hover {
    border-color: #bfdbfe !important;
    background: #f8fbff !important;
}

.support-widget .support-widget__channel-copy strong {
    color: #1e293b !important;
}

.support-widget .support-widget__channel-copy small,
.support-widget__channel > .fa-arrow-up-right-from-square,
.support-widget__channel > .fa-chevron-right {
    color: #64748b !important;
}

.support-widget__channel-icon--chat {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.support-widget__chat,
.support-widget__conversation {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    background: #fff !important;
}

.support-widget__conversation {
    display: flex !important;
    flex-direction: column !important;
}

.support-widget__back {
    min-height: 38px !important;
    margin: 10px 16px !important;
    border-color: #e2e8f0 !important;
    background: #f8fafc !important;
    color: #334155 !important;
}

.support-widget__messages {
    min-height: 0 !important;
    max-height: none !important;
    flex: 1 1 auto !important;
    gap: 14px !important;
    padding: 18px !important;
    background: #f8fafc !important;
    scrollbar-color: #cbd5e1 transparent !important;
}

.support-widget__messages::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
}

.support-widget__message-row {
    align-items: flex-end !important;
    gap: 9px !important;
}

.support-widget__avatar {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.support-widget__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.support-widget__message-bubble {
    display: grid !important;
    gap: 3px !important;
    max-width: 82% !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px 16px 16px 5px !important;
    background: #fff !important;
    color: #1e293b !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04) !important;
}

.support-widget__message-sender {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.support-widget__message-row:not(.support-widget__message-row--user) .support-widget__message-sender {
    color: #64748b;
}

.support-widget__message-row--user .support-widget__message-bubble {
    border: 1px solid #dbeafe !important;
    border-radius: 16px 16px 5px 16px !important;
    background: #eaf3ff !important;
    color: #172033 !important;
    font-weight: 500 !important;
}

.support-widget__quick-replies {
    gap: 7px !important;
    padding: 10px 14px !important;
    background: #fff !important;
}

.support-widget__quick-replies button {
    border-color: #dbe3ee !important;
    background: #f8fafc !important;
    color: #334155 !important;
}

.support-widget__quick-replies button:hover,
.support-widget__quick-replies button:focus-visible {
    border-color: #93c5fd !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.support-widget__composer {
    padding: 12px 16px max(12px, env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #e2e8f0 !important;
    background: #fff !important;
}

.support-widget__composer input,
.support-widget__guest-start input {
    border-color: #cbd5e1 !important;
    background: #fff !important;
    color: #1e293b !important;
}

.support-widget__composer input::placeholder,
.support-widget__guest-start input::placeholder {
    color: #94a3b8 !important;
}

.support-widget__composer input:focus,
.support-widget__guest-start input:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .16) !important;
}

.support-widget .support-widget__composer button,
.support-widget__guest-start > button {
    border: 0 !important;
    background: #2563eb !important;
    color: #fff !important;
}

.support-widget__guest-start label {
    color: #334155 !important;
}

.support-widget__error {
    border-color: #fecaca !important;
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

@media (max-width: 768px) {
    .support-widget__overlay {
        width: min(440px, calc(100vw - 40px)) !important;
    }

    .support-widget__overlay > .support-widget__panel {
        max-height: min(78dvh, 680px) !important;
    }

    .support-widget__panel--chat {
        height: min(680px, calc(100vh - 150px)) !important;
        height: min(680px, calc(100dvh - 150px)) !important;
    }
}

.tv-mobile-bottom-nav__item span {
    font-size: clamp(10px, 2.8vw, 11px);
    font-weight: 600;
    line-height: 1.1;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    text-wrap: balance;
}

.tv-header__funding-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tv-header__funding-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .2);
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.tv-header__funding-action > i {
    font-size: 12px;
}

.tv-header__funding-label-short {
    display: none;
}

.tv-header__funding-action--deposit {
    border-color: #376d61;
    background: linear-gradient(135deg, #285b50, #1d463e);
}

.tv-header__funding-action--withdraw {
    border-color: #43536d;
    background: linear-gradient(135deg, #34445d, #26354b);
}

.tv-header__funding-action:hover {
    border-color: #8ca69f;
    color: #fff;
    transform: translateY(-1px);
}

.tv-header .tv-header__user-btn {
    width: auto;
    min-width: 0;
    height: 36px;
    padding: 3px 10px 3px 4px;
    gap: 8px;
    border: 1px solid rgba(148, 163, 184, .32) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, .06) !important;
}

.tv-header .tv-header__user-btn:hover {
    border-color: rgba(148, 163, 184, .65) !important;
    background: rgba(255, 255, 255, .1) !important;
}

.tv-header__user-balance {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    color: #f1f5f9;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.tv-header__user-balance strong {
    font-weight: 700;
}

.tv-header__user-balance small {
    color: #aab6c8;
    font-size: 10px;
    font-weight: 600;
}

.tv-header__user-menu-indicator {
    display: none;
}

.tv-header[data-header-contrast="light"] .tv-header__user-balance {
    color: #172033;
}

.tv-header[data-header-contrast="light"] .tv-header__user-balance small {
    color: #64748b;
}

.tv-account-drawer__action--deposit {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #fff !important;
}

.tv-account-drawer__action--withdraw {
    border-color: rgba(20, 184, 166, .45) !important;
    background: linear-gradient(135deg, #0f9f8f, #0f766e) !important;
    color: #fff !important;
}

.community-chat-drawer__form button,
.community-chat-drawer__gate a {
    background: #2563eb;
    color: #fff;
}

.community-chat-drawer__form button:hover,
.community-chat-drawer__gate a:hover {
    background: #1d4ed8;
}

.community-chat-drawer__form input:focus,
.community-chat-drawer__form textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .16);
}

.community-chat-drawer__admin-brand {
    height: 22px;
    max-width: 72px;
    filter: none;
    animation: none;
    transition: none;
}

.tv-account-content-modal {
    display: none;
}

@media (max-width: 768px) {
    .tv-account-content-modal {
        position: fixed;
        z-index: 2200;
        inset: 0;
        display: block;
        overflow: hidden;
        visibility: hidden;
        pointer-events: none;
        transition: visibility 300ms ease;
    }

    .tv-account-content-modal.is-open {
        visibility: visible;
        pointer-events: auto;
    }

    .tv-account-content-modal__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .52);
        opacity: 0;
        transition: opacity 220ms ease;
    }

    .tv-account-content-modal.is-open .tv-account-content-modal__backdrop {
        opacity: 1;
    }

    .tv-account-content-modal__panel {
        position: absolute;
        inset: max(12px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid rgba(148, 163, 184, .2);
        border-radius: 16px;
        background: #0b1220;
        box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
        opacity: 0;
        transform: translate3d(0, 24px, 0) scale(.97);
        transition:
            opacity 260ms ease,
            transform 320ms cubic-bezier(.2, .8, .2, 1);
        will-change: transform, opacity;
    }

    .tv-account-content-modal.is-open .tv-account-content-modal__panel {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

    .tv-account-content-modal__header {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        padding: 0 12px 0 16px;
        border-bottom: 1px solid rgba(148, 163, 184, .18);
        background: #0b1220;
        color: #f8fafc;
    }

    .tv-account-content-modal__header h2 {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
    }

    .tv-account-content-modal__close {
        display: inline-flex;
        flex: 0 0 36px;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: 1px solid rgba(148, 163, 184, .24);
        border-radius: 10px;
        background: rgba(255, 255, 255, .06);
        color: #e2e8f0;
        font-size: 17px;
        cursor: pointer;
    }

    .tv-account-content-modal__close:hover {
        background: rgba(255, 255, 255, .12);
    }

    .tv-account-content-modal__frame {
        display: block;
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
        border: 0;
        background: #0b1220;
    }

    .tv-header__actions {
        align-items: center !important;
        gap: 5px !important;
    }

    .tv-header__funding-actions {
        gap: 4px;
    }

    .tv-header__funding-action {
        min-height: 30px;
        padding: 0 7px;
        gap: 4px;
        border-radius: 7px;
        font-size: 10px;
    }

    .tv-header__funding-label {
        display: none;
    }

    .tv-header__funding-label-short {
        display: inline;
    }

    .tv-header .tv-header__user-btn {
        height: 30px;
        padding: 2px 7px 2px 2px;
        gap: 5px;
    }

    .tv-header .tv-header__user-avatar {
        order: 2;
    }

    .tv-header__user-balance {
        order: 1;
        gap: 2px;
        font-size: 10px;
    }

    .tv-header__user-balance small {
        font-size: 9px;
    }

    .tv-header__user-menu-indicator {
        display: inline-block;
        position: absolute;
        z-index: 2;
        top: 50%;
        right: 1px;
        order: 3;
        width: 13px;
        height: 13px;
        border: 1px solid rgba(255, 255, 255, .88);
        border-radius: 50%;
        background: #334155;
        color: #fff;
        font-size: 7px;
        line-height: 11px;
        text-align: center;
        transform: translateY(-50%);
    }

    .tv-header[data-header-contrast="light"] .tv-header__user-menu-indicator {
        border-color: #fff;
        background: #334155;
        color: #fff;
    }
}

@media (max-width: 380px) {
    .tv-header__funding-action {
        padding: 0 6px;
        gap: 3px;
        font-size: 9px;
    }

    .tv-header__logo-img {
        height: 24px;
    }

    .tv-header__lang-btn {
        width: 48px !important;
        min-width: 48px !important;
        padding: 0 5px !important;
        gap: 3px !important;
        font-size: 9px !important;
    }

    .tv-header__user-balance small {
        display: none;
    }

    .tv-header__user-menu-indicator {
        right: 0;
        width: 12px;
        height: 12px;
        font-size: 6px;
        line-height: 10px;
    }
}

@media (max-width: 340px) {
    .tv-header__funding-actions {
        gap: 3px;
    }

    .tv-header__funding-action {
        padding: 0 6px;
    }

    .tv-header__funding-action > i {
        display: none;
    }

    .tv-header .tv-header__user-btn {
        padding-right: 4px;
        gap: 3px;
    }

    .tv-header .tv-header__user-avatar {
        width: 26px;
        height: 26px;
    }

    .tv-header__user-balance {
        font-size: 9px;
    }

    .tv-header__user-menu-indicator {
        right: -1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tv-account-content-modal,
    .tv-account-content-modal__backdrop,
    .tv-account-content-modal__panel {
        transition-duration: .01ms;
    }
}

@media (min-width: 1200px) {
    .section-shell .support-widget .support-widget__overlay,
    .section-shell .support-widget .support-widget__overlay[hidden] {
        position: fixed !important;
        inset: 50% 14px auto auto !important;
        z-index: 1250 !important;
        display: flex !important;
        width: 52px !important;
        max-height: calc(100dvh - 100px) !important;
        padding: 0 !important;
        background: transparent !important;
        pointer-events: none !important;
        transform: translateY(-50%);
    }

    .section-shell .support-widget .support-widget__panel {
        width: 52px !important;
        max-height: 100% !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #263244 !important;
        pointer-events: auto !important;
    }

    .section-shell .support-widget .support-widget__overlay--chat-open {
        inset: 78px 14px 18px auto !important;
        width: min(360px, calc(100vw - 40px)) !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
        transform: none !important;
    }

    .section-shell .support-widget .support-widget__panel--chat-open {
        width: min(360px, calc(100vw - 40px)) !important;
        height: min(680px, calc(100dvh - 96px)) !important;
        overflow: hidden !important;
        border: 1px solid #e8dfcc !important;
        border-radius: 14px !important;
        background: #fffdf8 !important;
        box-shadow: 0 10px 28px rgba(4, 9, 18, .2) !important;
    }

    .section-shell .support-widget .support-widget__header {
        display: none !important;
    }

    .section-shell .support-widget .support-widget__channels {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .section-shell .support-widget .support-widget__channel {
        box-sizing: border-box !important;
        display: grid !important;
        width: 56px !important;
        height: 56px !important;
        min-height: 56px !important;
        flex: 0 0 56px !important;
        place-items: center !important;
        gap: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: transparent !important;
        color: #334155 !important;
        transition: background-color .14s ease, filter .14s ease !important;
    }

    .section-shell .support-widget .support-widget__channel:hover {
        transform: none !important;
        border: 0 !important;
        background: rgba(255, 255, 255, .82) !important;
        filter: brightness(1.04);
    }

    .section-shell .support-widget .support-widget__channel-icon {
        width: 48px !important;
        height: 48px !important;
        flex-basis: 48px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .section-shell .support-widget .support-widget__channel-icon img {
        width: 46px !important;
        height: 46px !important;
        animation: support-channel-attention 1.35s ease-in-out infinite;
        transform-origin: center;
    }

    .section-shell .support-widget .support-widget__channel-icon--chat {
        border: 1px solid #bfdbfe !important;
        border-radius: 50% !important;
        background: #eff6ff !important;
        color: #2563eb !important;
        font-size: 22px !important;
        animation: none !important;
    }

    .section-shell .support-widget .support-widget__channel-copy,
    .section-shell .support-widget .support-widget__channel > .fa-arrow-up-right-from-square,
    .section-shell .support-widget .support-widget__channel > .fa-chevron-right {
        display: none !important;
    }

    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__header {
        display: flex !important;
        min-height: 52px !important;
        padding: 12px 14px !important;
        border-bottom: 1px solid #eee7d8 !important;
        background: #fffdf8 !important;
    }

    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__heading {
        display: none !important;
    }

    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__header-actions {
        display: flex !important;
        margin-left: auto !important;
    }

    .section-shell .support-widget .support-widget__overlay--chat-open .support-widget__channels,
    .section-shell .support-widget .support-widget__overlay--chat-open .support-widget__channels[hidden] {
        display: none !important;
    }

    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__chat,
    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__conversation,
    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__messages {
        background: #fffdf8 !important;
    }

    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__agent-pill {
        border-color: #e8dfcc !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__agent-pill strong {
        color: #263244 !important;
    }

    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__messages {
        scrollbar-color: #d8cfbc transparent !important;
    }

    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__message-bubble {
        border-color: #e8e4da !important;
        background: #fff !important;
        color: #334155 !important;
    }

    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__message-row--user .support-widget__message-bubble {
        border-color: #f0dfb2 !important;
        background: #fff4d7 !important;
        color: #334155 !important;
    }

    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__quick-replies,
    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__composer {
        border-color: #eee7d8 !important;
        background: #fffdf8 !important;
    }

    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__quick-replies button,
    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__back {
        border-color: #e8dfcc !important;
        background: #fff !important;
        color: #475569 !important;
    }

    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__composer input,
    .section-shell .support-widget .support-widget__panel--chat-open .support-widget__guest-start input {
        border-color: #ded7c8 !important;
        background: #fff !important;
        color: #263244 !important;
    }
}

@keyframes support-channel-attention {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0)); }
    45% { transform: scale(1.22); filter: drop-shadow(0 3px 7px rgba(212, 175, 55, .52)); }
    60% { transform: scale(1.12); filter: drop-shadow(0 1px 4px rgba(212, 175, 55, .34)); }
}

@media (prefers-reduced-motion: reduce) {
    .section-shell .support-widget .support-widget__channel-icon img,
    .section-shell .support-widget .support-widget__channel-icon--chat {
        animation: none !important;
    }
}

@media (max-width: 768px) {
    .tv-account-drawer__panel {
        font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    .tv-account-drawer__profile .tv-header__lang-selector {
        display: inline-flex;
        flex: 0 0 auto;
        width: auto;
        margin-left: auto;
    }

    .tv-account-drawer__profile .tv-header__lang-btn {
        width: 64px;
        min-width: 64px;
        height: 36px;
        min-height: 36px;
        padding: 0 7px;
        justify-content: center;
        border: 1px solid rgba(148, 163, 184, .32);
        border-radius: 9px;
        background: rgba(255, 255, 255, .06);
        color: #f8fafc;
        font-size: 12px;
    }

    .tv-account-drawer__profile .tv-header__lang-menu {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        left: auto;
        z-index: 5;
        width: 112px;
        min-width: 112px;
        margin: 0;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 9px;
        background: #20242b;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    }

    .tv-account-drawer__profile .tv-header__lang-menu,
    .tv-account-drawer__profile .tv-header__lang-selector:hover .tv-header__lang-menu,
    .tv-account-drawer__profile .tv-header__lang-selector:focus-within .tv-header__lang-menu {
        display: none !important;
    }

    .tv-account-drawer__profile .tv-header__lang-selector.is-open .tv-header__lang-menu {
        display: block !important;
    }

    .tv-account-drawer__profile .tv-header__lang-option {
        color: #dbe2ea !important;
        font-family: inherit;
    }

    .tv-account-drawer__profile .tv-header__lang-option:hover,
    .tv-account-drawer__profile .tv-header__lang-option.is-active {
        background: #344154 !important;
        color: #ffffff !important;
    }

    .tv-header__funding-action--deposit {
        border-color: #0f9f72 !important;
        background: linear-gradient(135deg, #10b981, #059669) !important;
        color: #ffffff !important;
    }

    .tv-header__funding-action--withdraw {
        border-color: #4f46e5 !important;
        background: linear-gradient(135deg, #3b82f6, #4f46e5) !important;
        color: #fff !important;
    }

    .tv-account-drawer__action--deposit {
        border-color: #0f9f72 !important;
        background: linear-gradient(135deg, #10b981, #059669) !important;
        color: #ffffff !important;
    }

    .tv-account-drawer__action--withdraw {
        border-color: rgba(79, 70, 229, .72) !important;
        background: linear-gradient(135deg, #3b82f6, #4f46e5) !important;
        color: #fff !important;
    }

    .tv-account-drawer__identity > span,
    .tv-account-drawer__link > i:first-child {
        color: #aeb9c8;
    }

    .tv-account-drawer__link > i:first-child {
        color: #aeb9c8 !important;
    }

    .tv-account-drawer__avatar {
        border-color: rgba(148, 163, 184, .52);
        background: radial-gradient(circle at 30% 20%, #465364, #272d35 72%);
        color: #e2e8f0;
    }

    .tv-account-drawer__profile {
        border-bottom-color: rgba(148, 163, 184, .2);
    }
}

.support-widget .support-widget__panel--chat-open {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .28) !important;
    color: #172033 !important;
}

.support-widget .support-widget__panel--chat-open .support-widget__header {
    border-bottom-color: #e2e8f0 !important;
    background: #ffffff !important;
}

.support-widget .support-widget__panel--chat-open .support-widget__chat,
.support-widget .support-widget__panel--chat-open .support-widget__conversation {
    background: #f1f5f9 !important;
}

.support-widget .support-widget__panel--chat-open .support-widget__messages {
    gap: 16px !important;
    padding: 20px !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(219, 234, 254, .72), transparent 58%),
        #f1f5f9 !important;
    scrollbar-color: #cbd5e1 transparent !important;
}

.support-widget .support-widget__panel--chat-open .support-widget__message-bubble {
    max-width: 86% !important;
    padding: 11px 14px !important;
    border-color: #dbe3ed !important;
    border-radius: 16px 16px 16px 5px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .06) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.support-widget .support-widget__panel--chat-open .support-widget__message-text {
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    overflow-wrap: anywhere;
}

.support-widget .support-widget__panel--chat-open .support-widget__message-sender {
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.support-widget .support-widget__panel--chat-open .support-widget__message-row--user .support-widget__message-bubble {
    border-color: #bfdbfe !important;
    border-radius: 16px 16px 5px 16px !important;
    background: #dbeafe !important;
    color: #172033 !important;
}

.support-widget .support-widget__panel--chat-open .support-widget__message-text {
    white-space: pre-line;
}

.support-widget__message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.support-widget__message-text strong {
    color: #1d4ed8;
    font-weight: 800;
}

.support-widget__typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 18px;
}

.support-widget__typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
    animation: support-typing-pulse 1s ease-in-out infinite;
}

.support-widget__typing span:nth-child(2) {
    animation-delay: 150ms;
}

.support-widget__typing span:nth-child(3) {
    animation-delay: 300ms;
}

@keyframes support-typing-pulse {
    0%, 60%, 100% { opacity: .35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

.support-widget__message-action {
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font: inherit;
    font-size: 13px;
    line-height: 1.25;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .support-widget__typing span {
        animation: none;
        opacity: .75;
    }
}

.support-widget__message-action:hover,
.support-widget__message-action:focus-visible {
    border-color: #93c5fd;
    background: #dbeafe;
    color: #1e40af;
}

.support-widget .support-widget__panel--chat-open .support-widget__quick-replies,
.support-widget .support-widget__panel--chat-open .support-widget__composer {
    border-color: #e2e8f0 !important;
    background: #ffffff !important;
}

.support-widget .support-widget__panel--chat-open .support-widget__quick-replies button {
    min-height: 34px;
    border-color: #dbe3ed !important;
    background: #f8fafc !important;
    color: #334155 !important;
    font-size: 13px !important;
}

.support-widget .support-widget__panel--chat-open .support-widget__composer {
    gap: 10px;
    padding: 14px 18px max(14px, env(safe-area-inset-bottom)) !important;
}

.support-widget .support-widget__panel--chat-open .support-widget__composer input {
    min-height: 46px;
    padding: 0 14px;
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    color: #172033 !important;
    font-size: 15px !important;
}

.support-widget .support-widget__panel--chat-open .support-widget__agent-pill {
    border-color: #dbe3ed !important;
    background: #f8fafc !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .support-widget__overlay {
        right: 12px !important;
        width: min(460px, calc(100vw - 24px)) !important;
    }

    .support-widget__overlay > .support-widget__panel {
        width: 100% !important;
        max-height: min(82dvh, 720px) !important;
    }

    .support-widget__panel--chat {
        height: min(660px, calc(100dvh - 190px)) !important;
        max-height: min(82dvh, calc(100dvh - 190px)) !important;
    }

    .support-widget .support-widget__panel--chat-open .support-widget__messages {
        padding: 16px !important;
    }
}

@media (min-width: 1200px) {
    .section-shell .support-widget .support-widget__overlay--chat-open {
        width: min(460px, calc(100vw - 40px)) !important;
    }

    .section-shell .support-widget .support-widget__panel--chat-open {
        width: min(460px, calc(100vw - 40px)) !important;
        height: min(780px, calc(100dvh - 96px)) !important;
        max-height: calc(100dvh - 96px) !important;
    }
}

.section-shell .support-widget .support-widget__panel--chat-open {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    color: #172033 !important;
}

.section-shell .support-widget .support-widget__panel--chat-open .support-widget__chat,
.section-shell .support-widget .support-widget__panel--chat-open .support-widget__conversation,
.section-shell .support-widget .support-widget__panel--chat-open .support-widget__messages {
    background: #f1f5f9 !important;
}

.section-shell .support-widget .support-widget__panel--chat-open .support-widget__messages {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(219, 234, 254, .72), transparent 58%),
        #f1f5f9 !important;
}

.section-shell .support-widget .support-widget__panel--chat-open .support-widget__message-bubble {
    border-color: #dbe3ed !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .06) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.section-shell .support-widget .support-widget__panel--chat-open .support-widget__message-text {
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    overflow-wrap: anywhere;
}

.section-shell .support-widget .support-widget__panel--chat-open .support-widget__message-sender {
    color: #64748b !important;
    font-size: 12px !important;
}

.section-shell .support-widget .support-widget__panel--chat-open .support-widget__message-row--user .support-widget__message-bubble {
    border-color: #bfdbfe !important;
    background: #dbeafe !important;
    color: #172033 !important;
}

.section-shell .support-widget .support-widget__panel--chat-open .support-widget__quick-replies,
.section-shell .support-widget .support-widget__panel--chat-open .support-widget__composer {
    border-color: #e2e8f0 !important;
    background: #ffffff !important;
}

.section-shell .support-widget .support-widget__panel--chat-open .support-widget__quick-replies button {
    border-color: #dbe3ed !important;
    background: #f8fafc !important;
    color: #334155 !important;
    font-size: 13px !important;
}

.section-shell .support-widget .support-widget__panel--chat-open .support-widget__composer input {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    color: #172033 !important;
    font-size: 15px !important;
}

@media (min-width: 1200px) {
    .section-shell .support-widget .support-widget__panel--chat-open {
        width: min(460px, calc(100vw - 40px)) !important;
        height: min(780px, calc(100dvh - 96px)) !important;
        max-height: calc(100dvh - 96px) !important;
    }
}

@media (max-width: 768px) {
    .support-widget__overlay--chat-open {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100svh !important;
        max-height: none !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .support-widget__overlay--chat-open > .support-widget__backdrop {
        display: none !important;
    }

    .support-widget__overlay--chat-open > .support-widget__panel--chat-open {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        min-height: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }

    .support-widget__panel--chat-open .support-widget__chat,
    .support-widget__panel--chat-open .support-widget__conversation {
        min-height: 0 !important;
    }

    body.keyboard-open .support-widget__overlay--chat-open {
        top: var(--mobile-viewport-top, 0px) !important;
        bottom: auto !important;
        height: var(--mobile-viewport-height, 100dvh) !important;
    }

    body.keyboard-open .support-widget__panel--chat-open .support-widget__composer {
        padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
    }
}

.tv-header__funding-action,
.tv-account-drawer__action {
    border: 1px solid rgba(201, 169, 106, .54) !important;
    border-radius: 9px !important;
    color: #f5e7c5 !important;
    box-shadow: inset 0 1px 0 rgba(255, 244, 214, .12), 0 4px 12px rgba(0, 0, 0, .26) !important;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

.tv-header__funding-action--deposit,
.tv-account-drawer__action--deposit {
    border-color: #b89555 !important;
    background: linear-gradient(135deg, #5c4827 0%, #382d1c 55%, #292319 100%) !important;
    color: #f5e7c5 !important;
}

.tv-header__funding-action--withdraw,
.tv-account-drawer__action--withdraw {
    border-color: rgba(201, 169, 106, .48) !important;
    background: linear-gradient(135deg, #25272b 0%, #181a1e 58%, #121418 100%) !important;
    color: #e9dfca !important;
}

.tv-header__funding-action--deposit > i,
.tv-account-drawer__action--deposit > i {
    color: #e2c27d !important;
}

.tv-header__funding-action--withdraw > i,
.tv-account-drawer__action--withdraw > i {
    color: #c9a96a !important;
}

.tv-header__funding-action--deposit:hover,
.tv-header__funding-action--deposit:focus-visible,
.tv-account-drawer__action--deposit:hover,
.tv-account-drawer__action--deposit:focus-visible {
    border-color: #e2c27d !important;
    background: linear-gradient(135deg, #70582f 0%, #49391f 58%, #302718 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 244, 214, .2), 0 7px 18px rgba(0, 0, 0, .34), 0 0 14px rgba(201, 169, 106, .14) !important;
    color: #fff2d1 !important;
    transform: translateY(-1px);
}

.tv-header__funding-action--withdraw:hover,
.tv-header__funding-action--withdraw:focus-visible,
.tv-account-drawer__action--withdraw:hover,
.tv-account-drawer__action--withdraw:focus-visible {
    border-color: #c9a96a !important;
    background: linear-gradient(135deg, #34343a 0%, #232329 58%, #191a1f 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 244, 214, .14), 0 7px 18px rgba(0, 0, 0, .34), 0 0 14px rgba(201, 169, 106, .11) !important;
    color: #fff2d1 !important;
    transform: translateY(-1px);
}

.tv-header__funding-action:focus-visible,
.tv-account-drawer__action:focus-visible {
    outline: 2px solid #d6bd84;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .tv-header__funding-action,
    .tv-account-drawer__action {
        transition: none !important;
    }
}

.tv-header .tv-header__btn--primary,
.tv-header .tv-header__btn--primary:hover,
.tv-header .tv-header__btn--primary:focus-visible,
.tv-header .tv-header__btn--secondary,
.tv-header .tv-header__btn--secondary:focus-visible {
    border: 1px solid #ff9638 !important;
    background: #ff7a00 !important;
    color: #111111 !important;
}

.tv-header:not([data-header-contrast="light"]) .tv-header__btn--secondary,
.tv-header[data-header-contrast="light"] .tv-header__btn--secondary {
    border: 1px solid #ff9638 !important;
    background: #ff7a00 !important;
    color: #111111 !important;
}

.tv-header .tv-header__btn--primary:hover,
.tv-header .tv-header__btn--primary:focus-visible,
.tv-header .tv-header__btn--secondary:focus-visible {
    background: #ff8a1d !important;
    box-shadow: 0 4px 14px rgba(255, 122, 0, .3) !important;
}

.tv-header .tv-header__nav-item.is-active,
.tv-header .tv-header__nav-item.is-active > i,
.tv-header[data-header-contrast="light"] .tv-header__nav-item.is-active,
.tv-header[data-header-contrast="light"] .tv-header__nav-item.is-active > i {
    color: #ff8500 !important;
}

.tv-header .tv-header__nav-item.is-active::after {
    background: #ff8500 !important;
}

@media (min-width: 769px) {
    .tv-header .tv-header__nav-item:hover,
    .tv-header .tv-header__nav-item:hover > i {
        color: #ffffff !important;
        background: transparent !important;
        background-image: none !important;
        border-color: transparent !important;
        box-shadow: none !important;
        text-shadow: 0 0 10px rgba(255, 255, 255, .28) !important;
    }

    .tv-header .tv-header__nav-item {
        transition: color .18s ease;
    }

    .tv-header .tv-header__nav-item:hover::before,
    .tv-header .tv-header__nav-item:hover::after {
        display: none !important;
        background: transparent !important;
        box-shadow: none !important;
        content: none !important;
    }
}

.tv-mobile-bottom-nav__item.is-active,
.tv-mobile-bottom-nav__item.is-active i,
.tv-mobile-bottom-nav__item.is-active span {
    color: #ff8500 !important;
}

.tv-mobile-bottom-nav__item.is-active::before {
    background: #ff8500 !important;
}

.support-widget__trigger,
.support-widget__trigger:hover,
.support-widget__trigger:focus-visible {
    border-color: #ff9a35 !important;
    background: #ff7a00 !important;
    color: #111111 !important;
}

.support-widget__trigger:hover,
.support-widget__trigger:focus-visible {
    box-shadow: 0 10px 28px rgba(0, 0, 0, .42), 0 0 22px rgba(255, 122, 0, .34) !important;
}

.tv-header__market-help[hidden] {
    display: none !important;
}

@media (min-width: 769px) {
    .tv-header__container {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding-inline: clamp(16px, 2.2vw, 36px);
        gap: clamp(12px, 1.5vw, 22px);
    }

    .tv-header__logo-zone,
    .tv-header__nav {
        transform: none;
    }

    .tv-header__nav {
        gap: clamp(8px, 1vw, 16px);
    }

    .tv-header__actions {
        margin-left: auto;
    }
}

@media (min-width: 1100px) {
    .tv-header__market-help {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 6px;
    }

    .tv-header__market-help[hidden] {
        display: none !important;
    }

    .tv-header__explanation-btn {
        display: inline-flex;
        min-height: 32px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0 9px;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 5px;
        background: rgba(255, 255, 255, .04);
        color: #f1f5f9;
        font: inherit;
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        transition: border-color .16s ease, background-color .16s ease, color .16s ease;
    }

    .tv-header__explanation-btn i {
        color: #fb923c;
        font-size: 13px;
    }

    .tv-header__explanation-btn:hover,
    .tv-header__explanation-btn:focus-visible {
        border-color: rgba(251, 146, 60, .6);
        background: rgba(249, 115, 22, .12);
        color: #fff7ed;
    }

    .tv-header__explanation-btn:focus-visible {
        outline: 2px solid #fb923c;
        outline-offset: 2px;
    }

    .tv-header[data-header-contrast="light"] .tv-header__explanation-btn {
        border-color: rgba(15, 23, 42, .2);
        background: rgba(15, 23, 42, .035);
        color: #1f2937;
    }

    .tv-header[data-header-contrast="light"] .tv-header__explanation-btn:hover,
    .tv-header[data-header-contrast="light"] .tv-header__explanation-btn:focus-visible {
        border-color: rgba(194, 65, 12, .45);
        background: rgba(249, 115, 22, .1);
        color: #7c2d12;
    }
}

@media (max-width: 1099px) {
    .tv-header__market-help {
        display: none !important;
    }
}

.community-chat-drawer__login-prompt {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .55rem .7rem;
    padding-bottom: max(.55rem, env(safe-area-inset-bottom));
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: .8rem;
    line-height: 1.35;
}

.tv-header[data-header-contrast="light"] .tv-header__nav-item,
.tv-header[data-header-contrast="light"] .tv-header__nav-item:hover,
.tv-header[data-header-contrast="light"] .tv-header__nav-item:hover > i,
.tv-header[data-header-contrast="light"] .tv-header__nav-item.is-active,
.tv-header[data-header-contrast="light"] .tv-header__nav-item.is-active > i {
    color: #111111 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.tv-header .tv-header__nav-item[data-contrast="light"],
.tv-header .tv-header__nav-item[data-contrast="light"]:hover,
.tv-header .tv-header__nav-item[data-contrast="light"]:hover > i,
.tv-header .tv-header__nav-item[data-contrast="light"].is-active,
.tv-header .tv-header__nav-item[data-contrast="light"].is-active > i {
    color: #111111 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.tv-header[data-header-contrast="light"] .tv-header__lang-btn,
.tv-header[data-header-contrast="light"] .tv-header__user-btn {
    color: #111111 !important;
    font-weight: 700 !important;
}

.tv-header .tv-header__funding-action--deposit,
.tv-header .tv-header__funding-action--deposit:hover,
.tv-header .tv-header__funding-action--deposit:focus-visible {
    border-color: #f97316 !important;
    background: #f97316 !important;
    color: #111111 !important;
}

.tv-header .tv-header__funding-action--deposit > i {
    color: #111111 !important;
}

.community-chat-drawer__login-prompt a {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 .8rem;
    border: 0;
    border-radius: 8px;
    background: #ff7a00;
    color: #111111;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .16s ease, box-shadow .16s ease;
}

.community-chat-drawer__login-prompt a:hover,
.community-chat-drawer__login-prompt a:focus-visible {
    background: #ff8a1d;
}

.community-chat-drawer__login-prompt a:focus-visible {
    outline: 2px solid #c75e00;
    outline-offset: 2px;
}

.tv-header:not([data-header-contrast="light"]) .tv-header__funding-action--withdraw,
.tv-header:not([data-header-contrast="light"]) .tv-header__funding-action--withdraw:hover,
.tv-header:not([data-header-contrast="light"]) .tv-header__funding-action--withdraw:focus-visible {
    border-color: #ffffff !important;
    background: #ffffff !important;
    color: #111111 !important;
}

.tv-header:not([data-header-contrast="light"]) .tv-header__funding-action--withdraw > i {
    color: #111111 !important;
}

.community-chat-drawer__form.is-balance-locked input:disabled {
    cursor: not-allowed;
    background: #f1f5f9;
    color: #64748b;
    opacity: 1;
}

.community-chat-drawer__form.is-balance-locked input:disabled::placeholder {
    color: #64748b;
    opacity: 1;
}

.community-chat-drawer__form.is-balance-locked button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.tv-header[data-header-contrast="light"] .tv-header__funding-action--withdraw,
.tv-header[data-header-contrast="light"] .tv-header__funding-action--withdraw:hover,
.tv-header[data-header-contrast="light"] .tv-header__funding-action--withdraw:focus-visible {
    border-color: #111111 !important;
    background: #111111 !important;
    color: #ffffff !important;
}

.tv-header[data-header-contrast="light"] .tv-header__funding-action--withdraw > i {
    color: #ffffff !important;
}

.tv-header .tv-header__funding-action,
.tv-header .tv-header__lang-btn,
.tv-header .tv-header__user-btn {
    border-radius: 5px !important;
}

.tv-header .tv-header__user-btn,
.tv-header .tv-header__user-btn:hover {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tv-header .tv-header__user-btn:focus-visible {
    outline: 2px solid #f5c542 !important;
    outline-offset: 2px;
}

@media (hover: none) and (pointer: coarse) {
    html,
    body {
        touch-action: pan-x pan-y;
    }

    :where(a, button, input, select, textarea, summary, [role="button"], [role="link"], [role="menuitem"], [role="tab"], [tabindex]):hover:not(:active):not(:focus-visible) {
        outline: none !important;
        box-shadow: none !important;
        border-color: transparent !important;
        filter: none !important;
        text-shadow: none !important;
        transform: none !important;
        transition: none !important;
    }

    .support-widget__trigger,
    .support-widget__overlay,
    .support-widget__overlay *,
    .support-widget__overlay::before,
    .support-widget__overlay::after {
        touch-action: manipulation;
    }

    .support-widget__overlay > .support-widget__panel {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (hover: none), (pointer: coarse) {
    #tv-auth-modal .tv-auth-modal__close:hover,
    #tv-auth-modal .tv-auth-modal__close:active,
    #tv-auth-modal .tv-auth-modal__close:focus,
    #tv-auth-modal .tv-auth-modal__close:focus-visible {
        border-color: rgba(203, 213, 225, .2) !important;
        background: rgba(15, 23, 42, .88) !important;
        color: #e2e8f0 !important;
        opacity: 1 !important;
        outline: none !important;
        outline-offset: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        filter: none !important;
        -webkit-tap-highlight-color: transparent;
    }
}

.support-widget__overlay:not(.support-widget__overlay--chat-open) > .support-widget__panel {
    width: min(300px, calc(100vw - 32px)) !important;
    max-height: none !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .2) !important;
}

.support-widget__overlay:not(.support-widget__overlay--chat-open) .support-widget__header {
    position: relative !important;
    min-height: 38px !important;
    justify-content: flex-end !important;
    gap: 0 !important;
    padding: 6px 8px 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.support-widget__overlay:not(.support-widget__overlay--chat-open) .support-widget__heading {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
}

.support-widget__overlay:not(.support-widget__overlay--chat-open) .support-widget__header-actions {
    margin: 0 !important;
}

.support-widget__overlay:not(.support-widget__overlay--chat-open) .support-widget__channels {
    gap: 6px !important;
    padding: 4px 10px 10px !important;
}

.support-widget__overlay:not(.support-widget__overlay--chat-open) .support-widget__channel {
    min-height: 44px !important;
    gap: 9px !important;
    padding: 6px 9px !important;
    border-color: #e2e8f0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transform: none !important;
}

.support-widget__overlay:not(.support-widget__overlay--chat-open) .support-widget__channel-copy strong {
    color: #334155 !important;
    font-size: 12px !important;
}

.support-widget__overlay:not(.support-widget__overlay--chat-open) .support-widget__channel-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
}

.support-widget__overlay:not(.support-widget__overlay--chat-open) .support-widget__channel-icon img {
    width: 21px !important;
    height: 21px !important;
}

@media (max-width: 768px) {
    .support-widget__overlay:not(.support-widget__overlay--chat-open) {
        width: min(280px, calc(100vw - 24px)) !important;
    }

    .support-widget__overlay:not(.support-widget__overlay--chat-open) > .support-widget__panel {
        width: 100% !important;
        border-radius: 14px !important;
    }

    .support-widget__overlay:not(.support-widget__overlay--chat-open) .support-widget__header {
        min-height: 34px !important;
        padding: 5px 7px 0 !important;
    }

    .support-widget__overlay:not(.support-widget__overlay--chat-open) .support-widget__channel {
        min-height: 40px !important;
        padding: 5px 8px !important;
    }
}

.tv-header__logo-zone {
    transform: none !important;
}

@media (max-width: 768px) {
    .tv-mobile-bottom-nav .tv-mobile-bottom-nav__item,
    .tv-mobile-bottom-nav .tv-mobile-bottom-nav__item:hover,
    .tv-mobile-bottom-nav .tv-mobile-bottom-nav__item:active,
    .tv-mobile-bottom-nav .tv-mobile-bottom-nav__item:focus,
    .tv-mobile-bottom-nav .tv-mobile-bottom-nav__item:focus-visible,
    .tv-mobile-bottom-nav .tv-mobile-bottom-nav__item[aria-current="page"] {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .tv-mobile-bottom-nav .tv-mobile-bottom-nav__item.is-active,
    .tv-mobile-bottom-nav .tv-mobile-bottom-nav__item.is-active i,
    .tv-mobile-bottom-nav .tv-mobile-bottom-nav__item.is-active span {
        color: #ff8500 !important;
    }
}
