@font-face {
    font-family: "icomoon";
    src: url("fonts/icomoon.woff2?v=c9eb1648") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

html {
    min-height: 100%;
    background: #000;
    color: #fff;
}

html:has(body.legacy-reference) {
    overflow-x: hidden;
    overflow-x: clip;
}

body.legacy-reference {
    overflow-x: hidden;
    overflow-x: clip;
    background: #000;
    color: #fff;
}

/* Side-nav open states */
.side-nav.is-open {
    -webkit-transform: none;
    transform: none;
    visibility: visible;
    z-index: 999999999999;
}

.side-nav.is-open,
.side-nav.open {
    -webkit-transform: none;
    transform: none;
    visibility: visible;
    z-index: 999999999999;
}

/* Nav-item-content open states */
.nav-item-content.is-open {
    display: block;
}

.nav-item-content.is-open,
.nav-item-content.open {
    display: block;
}

/* Expand button states */
.navlink.is-expanded {
    background: var(--theme-color-primary, #005334);
}

.navlink.is-expanded + .nav-item-content {
    display: block;
}

/* The legacy mobile stylesheet places the submenu in a second 100px panel.
 * Widen the drawer while it is expanded so that panel is not clipped by the
 * drawer's horizontal overflow boundary. */
body.mobile .layout .side-nav:has(.navlink.is-expanded),
body.mobile .layout .side-nav.navContentOpen {
    width: 200px;
}

body.mobile .layout .main-content:has(.navlink.is-expanded),
body.mobile .layout .main-content.navContentOpen {
    margin-left: 200px;
    margin-right: -200px;
}

body.mobile .layout .main-content:has(.navlink.is-expanded) .top-bar,
body.mobile .layout .main-content.navContentOpen .top-bar {
    left: 200px;
    right: -200px;
}

/* Legacy side-nav-open body state */
body.legacy-side-nav-open .backdrop:before {
    background: rgba(56, 56, 56, 0.8);
    bottom: -150%;
    content: "";
    height: auto;
    left: 0;
    padding: 15px;
    position: absolute;
    right: 0;
    top: -47px;
    width: 100%;
    z-index: 1000;
}

body.legacy-modal-open {
    overflow: hidden;
}

.promo-sticky {
    position: fixed;
    top: 80px;
    right: 45px;
    z-index: 9;
    width: 100px;
    height: 100px;
}

.mobile .promo-sticky {
    top: 65%;
    right: 5px;
}

.promo-sticky:focus {
    outline: none;
}

.promoStickyWraper {
    position: relative;
}

.promoClose {
    position: absolute;
    top: -24px;
    right: -4px;
    width: 25px;
    height: 25px;
    border-radius: 20px;
    background: rgb(240 244 246 / 80%);
    color: #68727a;
}

.slider-size {
    min-height: 130px;
    max-height: 500px;
}

.rubik-one,
.hot-games-heading {
    font-family: "Rubik Mono One", sans-serif !important;
    text-transform: uppercase;
}

.server-selector-ui {
    position: relative;
    z-index: 8;
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 350px;
    margin: 24px auto;
    padding: 20px;
    border: 5px solid #f0c040;
    border-radius: 20px;
    background: rgb(0 0 0 / 85%);
    font-family: sans-serif;
    animation: rainbow-glow 5s linear infinite alternate;
}

.server-selector-ui label {
    display: block;
    margin-bottom: 10px;
    color: #f0c040;
    font-size: 16px;
    font-weight: 700;
}

.server-selector-ui select {
    width: 100%;
    padding: 14px 16px;
    border: 3px solid rgb(255 255 255 / 25%);
    border-radius: 12px;
    appearance: none;
    background: rgb(255 255 255 / 8%);
    color: #f0c040;
    font: 16px/1.2 inherit;
}

.server-selector-ui option {
    background: #111;
    color: #f0c040;
}

.server-selector-ui .event-status {
    display: flex;
    align-items: center;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgb(255 255 255 / 7%);
    color: #f0c040;
    font-size: 14px;
    gap: 10px;
}

@keyframes rainbow-glow {
    0% {
        border-color: #f33;
    }
    33% {
        border-color: #ffdc35;
    }
    66% {
        border-color: #45e79c;
    }
    100% {
        border-color: #ff46a2;
    }
}

.desktop-apk-icon,
.apk-icon {
    width: 40px;
    height: 40px;
}

.desktop-apk-download-card {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    max-width: 165px;
    padding: 5px 10px;
    gap: 8px;
    text-decoration: none;
    outline: none !important;
}

.desktop-apk-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.desktop-apk-webtitle {
    font-size: 13px;
    white-space: normal;
    word-break: break-word;
}

.desktop-apk-slogan {
    font-size: 10px;
    white-space: normal;
    word-break: break-word;
}

.apk-download-btn-via-mobile {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #00d2ff, #00a8cc);
    color: #000;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.mobile-apk-close,
.mobile-apk-webtitle,
.mobile-apk-slogan {
    font-weight: 600;
}

.apk-down-bar table,
.apk-down-bar tbody,
.apk-down-bar tr {
    box-sizing: border-box;
    width: 100%;
}

.apk-down-bar table,
.apk-down-bar tbody,
.apk-down-bar tr,
.apk-down-bar td {
    display: flex;
    align-items: center;
}

.apk-down-bar tr {
    justify-content: space-between;
}

.apk-down-bar td {
    height: auto;
    padding: 0;
}

.apk-media-cell,
.apk-action-cell {
    flex-shrink: 0;
}

.apk-media-cell {
    gap: 8px;
}

.apk-info-cell {
    flex-grow: 1;
    min-width: 0;
    padding: 0 10px !important;
}

.apk-action-cell {
    justify-content: flex-end;
}

.apk-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    margin-left: 5px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mobile-apk-slogan-text {
    font-size: 10px;
}

.icon-zalo .path1::before {
    color: #e6eff4;
    content: "\e966";
}
.icon-zalo .path2::before {
    margin-left: -1em;
    color: #b6d1dd;
    content: "\e969";
}
.icon-zalo .path3::before {
    margin-left: -1em;
    color: #41a0d7;
    content: "\e96e";
}
.icon-zalo .path4::before {
    margin-left: -1em;
    color: #fff;
    content: "\e96f";
}

.ard-sosmed {
    position: fixed;
    bottom: 25%;
    left: 10px;
    z-index: 79;
    display: block;
    cursor: pointer;
    font-family: Raleway, Montserrat, sans-serif;
}

.ard-sosmed .hamburg {
    position: absolute;
    bottom: -120px;
    z-index: 10;
    width: 40px;
    height: auto;
    padding: 0.6rem;
    border-radius: 10px;
    background: #000
        url("https://pub-4a672bb7878b431ba62e183e5e169e61.r2.dev/giphy-1.gif")
        center / cover no-repeat;
    box-shadow: 0 0 12px 1px rgb(255 238 0 / 70%);
    border: 0;
    color: inherit;
    cursor: pointer;
}

/*
 * The reference carousel (https://daily.dewi11moon.com) has no pause control, but an
 * auto-advancing carousel needs one (WCAG 2.2.2). Instead of dropping either the
 * reference look or the control, the button is clipped out of the visual flow and
 * revealed on keyboard focus — the pattern a skip link uses. The carousel therefore
 * renders identically to Dewi11 while staying operable.
 */
.legacy-carousel-toggle {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    min-width: 48px;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: rgb(0 0 0 / 78%);
    color: #fff;
    font:
        700 12px/1 Montserrat,
        sans-serif;
    clip-path: inset(50%);
}

.legacy-carousel-toggle:focus,
.legacy-carousel-toggle:focus-visible {
    clip-path: none;
}

.ard-sosmed ul {
    margin: 0;
    padding: 0;
}

.ard-sosmed ul li {
    position: absolute;
    list-style: none;
    opacity: 0;
    transform: translate(0) rotate(360deg);
    transition: all 0.5s ease;
}

.ard-sosmed ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border: 2px solid var(--theme-color-primary, #008060);
    border-radius: 10px;
    background: #000;
}

.ard-sosmed ul li a img {
    width: 90%;
    height: auto;
}

.ard-sosmed.open ul li:nth-child(1) {
    opacity: 1;
    transform: translateY(-140px);
    transition-delay: 0.2s;
}

.ard-sosmed.open ul li:nth-child(2) {
    opacity: 1;
    transform: translate(52px, -115px);
    transition-delay: 0.16s;
}

.ard-sosmed.open ul li:nth-child(3) {
    opacity: 1;
    transform: translate(105px, -90px);
    transition-delay: 0.12s;
}

.ard-sosmed.open ul li:nth-child(4) {
    opacity: 1;
    transform: translate(150px, -45px);
    transition-delay: 0.08s;
}

.ard-sosmed .bar1,
.ard-sosmed .bar2,
.ard-sosmed .bar3 {
    position: relative;
    width: 80%;
    height: 5px;
    margin: 6px auto;
    background: var(--theme-color-primary, #008060);
    transform: translateY(-1px);
    transition: 0.4s;
}

.ard-sosmed.open .bar1 {
    transform: translate(0, 10px) rotate(-225deg);
}

.ard-sosmed.open .bar2 {
    opacity: 0;
    transform: translate(0, -6px) rotate(-225deg);
}

.ard-sosmed.open .bar3 {
    transform: translate(0, -12px) rotate(-315deg);
}

.ard-sosmed ul li div {
    position: absolute;
    padding: 2px 5px;
    background: #000;
    color: var(--theme-color-light, #008060);
    font-family: Raleway, Montserrat, sans-serif;
    font-size: 16px;
    opacity: 0;
    scale: 0.1;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.ard-sosmed ul li:hover div {
    opacity: 1;
    scale: 1;
}

.ard-sosmed .attention {
    position: relative;
    bottom: -60px;
    left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 30px;
    margin-bottom: 5px;
    padding-bottom: 10px;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 75%,
        49% 75%,
        22% 100%,
        22% 75%,
        0 75%
    );
    background: #000;
    color: var(--theme-color-light, #008060);
    cursor: default;
    opacity: 0;
    white-space: nowrap;
}

.ard-sosmed .attention.whore {
    animation: legacy-flicker 0.6s infinite;
}

.ard-sosmed .attention.whore:hover {
    animation-duration: 10s;
}

@keyframes legacy-flicker {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.legacy-sx88-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(42%, 600px);
    margin-inline: auto;
    color: #fff;
    text-align: center;
    text-shadow:
        0 2px 6px #000,
        0 0 18px #000;
    pointer-events: none;
}

.legacy-sx88-hero-overlay::before {
    position: absolute;
    inset: 0 -34%;
    z-index: -1;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #000 22%,
        var(--theme-color-dark, #00130c) 42%,
        var(--theme-color-dark, #00130c) 58%,
        #000 78%,
        transparent 100%
    );
    content: "";
}

.legacy-sx88-hero-overlay img {
    width: min(76%, 390px) !important;
    height: auto !important;
    max-height: 58% !important;
    object-fit: contain;
    filter: drop-shadow(0 3px 7px #000);
}

.legacy-sx88-hero-overlay strong {
    margin-top: -2%;
    color: #f7e767;
    font-size: clamp(15px, 1.65vw, 26px);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.legacy-sx88-hero-overlay span {
    margin-top: 3px;
    color: #fff;
    font-size: clamp(8px, 0.76vw, 12px);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.legacy-sx88-slide-brand {
    position: absolute;
    top: 3%;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(23%, 310px);
    height: 32%;
    transform: translateX(-50%);
    pointer-events: none;
}

.legacy-sx88-slide-brand::before {
    position: absolute;
    inset: -12% -24%;
    z-index: -1;
    background: radial-gradient(
        ellipse,
        rgb(0 0 0 / 95%) 0%,
        rgb(0 20 12 / 84%) 48%,
        transparent 76%
    );
    content: "";
}

.legacy-sx88-slide-brand img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    filter: drop-shadow(0 3px 7px #000);
}

.legacy-reference .main-header .logo img {
    width: auto;
    max-height: 82px;
    object-fit: contain;
}

.legacy-reference.mobile .apk-down-bar {
    box-sizing: border-box;
    height: 54px;
    overflow: hidden;
}

.legacy-reference.mobile .android-wrap {
    color: #a4c639;
}

.legacy-reference.desktop .browserIcons {
    color: var(--theme-color-light, #43ae8a);
}

.legacy-reference.mobile .browserIcons {
    color: #fff;
}

.legacy-reference.mobile .scroll-wrapper,
.legacy-reference.mobile .scroller {
    scrollbar-width: none;
}

.legacy-reference.mobile .scroll-wrapper::-webkit-scrollbar,
.legacy-reference.mobile .scroller::-webkit-scrollbar {
    display: none;
}

.legacy-reference .carousel-inner > .item {
    display: none;
}

.legacy-reference .carousel-inner > .item.active {
    display: block;
}

/*
 * The scrim behind the login modal. It carries .md-overlay so it inherits the reference's own
 * look, and legacy/desktop.css hides that class with `opacity:0;visibility:hidden`, revealing it
 * only through `.md-show + .md-overlay` — an adjacent-sibling rule. The element is appended to
 * <body>, not next to the modal, so that rule never matches and toggling `display` alone left the
 * page at full brightness behind an open modal. All three properties are set here instead of
 * relying on DOM order.
 */
.legacy-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9997;
    display: none;
    opacity: 0;
    visibility: hidden;
    background: rgb(0 0 0 / 72%);
    transition: opacity 0.3s;
}

.legacy-login-overlay.is-visible {
    display: block;
    opacity: 1;
    visibility: visible;
}

.legacy-reference.desktop [data-legacy-login-modal] {
    z-index: 9998;
}

.legacy-reference.mobile #r-side-bar {
    z-index: 9998;
}

/* Keep the reference's floating logout icon while submitting through Laravel's POST route. */
.legacy-reference.mobile #r-side-bar .mobile-sidebar-logout-form {
    float: right;
    margin: 0;
}

.legacy-reference.mobile #r-side-bar .mobile-sidebar-logout-form .btn-logout {
    padding: 0;
    border: 0;
    color: inherit;
    line-height: 1;
}

/* Swiper normally supplies this clipping. Without it the first wallet state makes the
 * 320px drawer internally 496px wide; moving to the referral slide merely hides the bug. */
.legacy-reference.mobile #r-side-bar #wallet-slider {
    position: relative;
    overflow: hidden;
}

.legacy-reference.mobile
    .mobilesite-footer
    .togglemenu-content:not(.is-open) {
    display: none;
}

.legacy-reference.mobile .mobilesite-footer .footer-body:not(.is-open) {
    display: none;
}

/* The admin-managed "More Info" SEO article (App\Support\SeoArticle) on mobile: the
   theme's bare h1 is sized for a desktop hero, so give the footer copy its own scale. */
.legacy-reference.mobile .mobilesite-footer .footer-body.is-open {
    padding: 4px 16px 24px;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}
.legacy-reference.mobile .mobilesite-footer .footer-body h1 { margin: 8px 0 12px; font-size: 19px; line-height: 1.3; }
.legacy-reference.mobile .mobilesite-footer .footer-body :is(h2, h3) { margin: 16px 0 8px; font-size: 16px; line-height: 1.35; }
.legacy-reference.mobile .mobilesite-footer .footer-body :is(h4, h5, h6) { margin: 14px 0 6px; font-size: 14.5px; line-height: 1.35; }
.legacy-reference.mobile .mobilesite-footer .footer-body p { margin: 0 0 10px; }
.legacy-reference.mobile .mobilesite-footer .footer-body :is(ul, ol) { margin: 0 0 10px; padding-left: 20px; list-style: revert; }

.legacy-toast {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 10020;
    max-width: min(360px, calc(100vw - 30px));
    padding: 12px 16px;
    border: 1px solid var(--theme-color-light, #50b08b);
    border-radius: 4px;
    background: var(--theme-color-dark, #001f14);
    box-shadow: 0 8px 26px rgb(0 0 0 / 45%);
    color: #fff;
    font:
        600 13px/1.4 Montserrat,
        sans-serif;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.legacy-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.legacy-reference .ard-sosmed.open ul {
    display: block;
}

/*
 * The reference embeds LiveChat, which paints above its own modal scrim, so the widget stays
 * lit while the rest of the page dims behind the login modal. These two sit above
 * .legacy-login-overlay (9997) for the same reason. The modal is centred and the widget is
 * pinned bottom-right, so they never overlap; the focus trap still keeps Tab inside the modal.
 */
.legacy-chat-launcher {
    position: fixed;
    right: 8px;
    bottom: 15px;
    left: auto;
    z-index: 9999;
    display: grid;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #2f73dc;
    color: #fff;
    box-shadow: 0 4px 18px rgb(0 0 0 / 42%);
    cursor: pointer;
    place-items: center;
}

.legacy-chat-launcher i {
    font-size: 26px;
}

.legacy-chat-preview {
    position: fixed;
    right: 8px;
    bottom: 24px;
    z-index: 10000;
    width: 294px;
    color: #fff;
    font-family: Arial, sans-serif;
}

.legacy-chat-preview[hidden] {
    display: none;
}

.legacy-chat-preview__head {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 4px;
    font-size: 12px;
}

.legacy-chat-preview__avatar {
    display: grid;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--theme-color-primary, #048b64), #d4b918);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    place-items: center;
}

.legacy-chat-preview__head > button {
    width: 24px;
    height: 24px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #303235;
    color: #fff;
    font-size: 20px;
    line-height: 22px;
    cursor: pointer;
}

.legacy-chat-preview__card {
    overflow: hidden;
    border: 5px solid #404246;
    border-radius: 26px 26px 0 0;
    background: #292a2d;
}

.legacy-chat-preview__wave {
    display: grid;
    height: 186px;
    background: #f5f5f5;
    font-size: 66px;
    place-items: center;
}

.legacy-chat-preview__wave img {
    width: 72% !important;
    max-height: 110px;
    object-fit: contain;
}

.legacy-chat-preview__card p {
    margin: 0;
    padding: 13px 14px 8px;
    color: #fff;
    font-size: 16px;
    line-height: 1.25;
}

.legacy-chat-preview__card button {
    display: block;
    margin: 0 12px 8px;
    padding: 5px 11px;
    border: 0;
    border-radius: 14px;
    background: #2f73dc;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.legacy-chat-preview__card button.is-muted {
    background: #34373d;
    color: #cbd1de;
}

.legacy-chat-preview__composer {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 8px 10px 8px 16px;
    border-radius: 0 0 24px 24px;
    background: #292a2d;
    color: #aeb0b3;
    font-size: 13px;
}

.legacy-chat-preview__composer button {
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #3a3c40;
    color: #fff;
    font-size: 23px;
    cursor: pointer;
}

.legacy-subnav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90px;
    color: #fff;
    font-size: 52px;
    line-height: 1;
}

/*
 * The block that used to sit here repainted nine controls with !important to raise
 * contrast. Measured side by side against https://daily.dewi11moon.com at 1440px,
 * every one of them was a visible mismatch, and each correct value already exists in
 * the captured reference stylesheets:
 *
 *   .btn-accent                       legacy/desktop.css  color:#fff
 *   #btn-joinNow.green_over           legacy/desktop.css  color:#fff
 *   .floats .bottom-to-top            legacy/desktop.css  color:#fff
 *   .nav-icon .hot                    legacy/desktop.css  background-color:red
 *   .ard-sosmed .attention            this file, line ~457  color:#008060
 *   .legacy-register-page .sub-title  legacy/desktop.css  color:#50b08b
 *   .legacy-register-page .checkbox a legacy/desktop.css  a{color:#92ed57}, no underline
 *   .support-content .line-font       legacy/custom.css   color:#6d6d6d
 *   .support-content .support-font    legacy/custom.css   color:#6d6d6d
 *
 * So the fix is to stop overriding rather than to hardcode Dewi11's numbers here.
 *
 * Trade-off, stated explicitly: white on the #92ed57 accent green measures about
 * 1.45:1 contrast (WCAG AA wants 4.5:1). That is how Dewi11 renders it, and matching
 * Dewi11 was the requirement.
 */

/* The "LINK GACOR!" badge flickers on the reference and now flickers here too, but a
   permanently running flash is a WCAG 2.2.2 hazard — stop it for anyone whose OS asks
   for reduced motion. Default appearance is unchanged. */
@media (prefers-reduced-motion: reduce) {
    .ard-sosmed .attention.whore {
        animation: none;
        opacity: 1;
    }
}

@media (max-width: 1100px) {
    .legacy-reference.desktop .hide-for-medium {
        display: none !important;
    }

    .legacy-reference.desktop .show-for-medium {
        display: flex !important;
    }
}

@media (max-width: 767px) {
    .legacy-chat-launcher,
    .legacy-chat-preview {
        display: none !important;
    }

    .ard-sosmed {
        bottom: 30%;
    }

    .legacy-sx88-hero-overlay {
        width: 57%;
    }

    .legacy-sx88-hero-overlay::before {
        inset: 0 -25%;
    }

    .legacy-sx88-hero-overlay img {
        width: 78% !important;
    }

    .legacy-sx88-slide-brand {
        top: 2%;
        width: 31%;
        height: 34%;
    }

    .legacy-toast {
        right: 15px;
        bottom: 82px;
    }
}

@media (max-width: 420px) {
    .apk-down-bar tr {
        padding: 6px 8px;
    }

    .mobile-apk-webtitle {
        margin-bottom: 2px;
        font-size: 14px;
    }

    .mobile-apk-slogan {
        margin-top: 1px;
        line-height: 1.2;
    }

    .apk-download-btn-via-mobile {
        padding: 6px 14px;
    }

    #btn-close--apk {
        padding: 0 2px;
        font-size: 14px;
    }
}

/*
 * desktop/profile.php marks the Referral Downline and Tingkat Anggota tabs with
 * class="ref_down", and legacy/desktop.css declares `.ref_down{display:none}` — so the
 * reference profile bar shows only Detail and Tukar kata sandi.
 *
 * That single-class rule loses to account-pages.css, which sets display:inline-flex on
 * .mdc-tab through a four-class selector, so it is re-asserted here at matching
 * specificity. Both sections stay reachable from the header: the member level badge
 * links to member-level and the Transaksi dropdown links to referral-downline.
 */
.account-page .legacy-page-content .legacy-account-page .mdc-tab.ref_down {
    display: none;
}

.legacy-register-page .btn-secondary {
    color: #333 !important;
}

/* Permanent Desktop Mega Menu Navigation Lock */
.main.nav-wrapper {
    position: relative !important;
    height: 63.390625px !important;
    min-height: 63.390625px !important;
    display: flex !important;
    place-content: center !important;
    box-sizing: border-box !important;
    z-index: 100 !important;
}

.main.nav-wrapper .main-nav {
    line-height: 1.15 !important;
    overflow: visible !important;
    height: 63.390625px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    margin: 0 auto !important;
}

.main.nav-wrapper .main-nav .nav-item {
    flex: none !important;
    overflow: visible !important;
    text-align: center !important;
    height: 63.390625px !important;
    position: static !important;
}

.main.nav-wrapper .main-nav .nav-item .navlink {
    display: block !important;
    min-width: 100px !important;
    height: 63.390625px !important;
    padding: 0 .45em .45em !important;
    color: #fff !important;
    cursor: pointer !important;
    text-align: center !important;
    text-decoration: none !important;
    vertical-align: middle !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.main.nav-wrapper .main-nav a.active,
.main.nav-wrapper .main-nav a:hover,
.main.nav-wrapper .main-nav .nav-item.is-active .navlink,
.main.nav-wrapper .main-nav .nav-item:hover .navlink,
.main.nav-wrapper .main-nav .nav-item.is-hovered .navlink,
.main-nav .nav-item.is-active .navlink,
.main-nav .nav-item:hover .navlink,
.main-nav .nav-item.is-hovered .navlink {
    background: #d4b918 !important;
    color: #fff !important;
}

/* Scoped to .main.nav-wrapper on purpose. `.nav-item > .nav-item-content` is
 * shared markup: the desktop mega-menu drops out of the top nav bar
 * (top:100%, left:0, width:100%), while the mobile drawer's copy of it is a
 * second 100px column pinned beside the drawer (mobile.css: left:100px, top:0,
 * bottom:0, width:100px). An unscoped rule here reaches both, and the desktop
 * geometry pushed the drawer's PERMAINAN panel to top:100% of a full-height
 * fixed drawer — off the bottom of the viewport, so clicking PERMAINAN opened
 * a panel nobody could see. Every .nav-item-content on a desktop page is
 * inside .main.nav-wrapper, so the scope costs the mega-menu nothing. */
.main.nav-wrapper .nav-item-content {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    display: none !important;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .2) !important;
    z-index: 99999 !important;
    padding: 10px 0 !important;
    box-sizing: border-box !important;
}

.main.nav-wrapper .nav-item:hover .nav-item-content,
.main.nav-wrapper .main-nav .nav-item:hover .nav-item-content,
.main.nav-wrapper .nav-item.is-hovered .nav-item-content,
.main.nav-wrapper .nav-item-content.is-open,
.main.nav-wrapper .nav-item-content:hover {
    display: block !important;
}

.main.nav-wrapper .nav-item-content .container {
    width: 1170px !important;
    max-width: 1170px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.main.nav-wrapper .nav-item-content .flex-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

.main.nav-wrapper .nav-item-content .auto-box {
    flex-basis: 0 !important;
    flex-grow: 1 !important;
    margin: 5px !important;
    position: relative !important;
    text-align: center !important;
}

.main.nav-wrapper .nav-item-content .auto-box:first-child {
    margin-left: 0 !important;
}

.main.nav-wrapper .nav-item-content .auto-box:last-child {
    margin-right: 0 !important;
}

.main.nav-wrapper .nav-item-content .auto-box.hide_this_sec {
    display: none !important;
}

.main.nav-wrapper .nav-item-content .auto-box > .a-disabledLink,
.main.nav-wrapper .nav-item-content .auto-box > a {
    color: #fff !important;
    cursor: pointer !important;
    display: block !important;
    height: 100% !important;
    pointer-events: auto !important;
    position: relative !important;
    text-decoration: none !important;
    z-index: 3 !important;
}

.main.nav-wrapper .nav-item-content .auto-box img {
    height: 90px !important;
    max-height: 90px !important;
    margin: 0 auto 5px auto !important;
    display: block !important;
    object-fit: contain !important;
}

.main.nav-wrapper .nav-item-content .auto-box img[ref="live"],
.main.nav-wrapper .nav-item-content .auto-box div[style*="position:absolute"] img {
    height: 18px !important;
    max-height: 18px !important;
    width: auto !important;
    margin: 0 !important;
    display: inline-block !important;
}

.main.nav-wrapper .nav-item-content .menu-item-title {
    font-size: 11.2px !important;
    padding-bottom: 5px !important;
    text-transform: uppercase !important;
    color: #fff !important;
}

/* The main-nav items are pinned to flex:none / min-width:100px (see
 * theme-palette.blade.php's geometry lock) so the row never wraps or
 * collapses. Every label fits that 100px slot except this one — a full
 * "T.ME/<handle>" URL rather than a single word — which renders ~150px
 * wide and was the sole cause of the row measuring 24px wider than the
 * viewport at 1280px (body.scrollWidth 1304 vs 1280), pushing the last
 * item and, by symmetric flex centering, the first item both partly past
 * the edges. Shrinking only this label's type keeps the geometry lock,
 * every other item, and the full text intact while letting the row fit. */
.main.nav-wrapper .nav-item--telegram .nav-title {
    font-size: 10px;
    letter-spacing: -0.3px;
}

/*
 * Desktop Header Dropdowns (Transaksi & Saldo Dompet)
 *
 * The navigation bar (.main.nav-wrapper) carries `position: relative !important; z-index: 100 !important;`
 * to keep the mega-menu above game banners. Without an explicit stacking context on .top_navbar and
 * .header-wrapper, dropdowns opened from the header (such as Transaksi and Saldo Dompet) were painted
 * behind .main-nav (.main.nav-wrapper). Elevating .top_navbar to z-index: 1050 ensures all header dropdowns
 * open in front of .main.nav-wrapper.
 */
.top_navbar {
    position: relative !important;
    z-index: 1050 !important;
}

.top_navbar .header-wrapper,
.desktop .header-wrapper {
    position: relative !important;
    z-index: 1050 !important;
}

.acc-panel {
    position: relative !important;
    z-index: 1050 !important;
}

.acc-panel .dropdown {
    position: relative !important;
}

.acc-panel .dropdown-menu {
    position: absolute !important;
    z-index: 1060 !important;
}

.acc-panel .dropdown.open > .dropdown-menu,
.acc-panel .dropdown-menu.show {
    display: block !important;
}

/*
 * Deposit Form Precision & Grid Alignment
 */
#depositForm .bankInfo-box {
    margin: 0 0 15px 0 !important;
    width: 100% !important;
}

#depositForm .info-lst {
    margin-top: 0 !important;
}

#depositForm .form-control {
    width: 100% !important;
}

#depositForm .quick-deposit-pills .btn {
    transition: all 0.15s ease-in-out;
}

#depositForm .quick-deposit-pills .btn:hover {
    background: #00d2d3 !important;
    color: #040e38 !important;
    border-color: #00d2d3 !important;
}

/*
 * Deposit Landing Page Precision & Grid Alignment
 * Ensures method group boxes and bottom helper note align perfectly with the top navigation bar.
 */
.legacy-deposit-page .legacy-deposit-row {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.legacy-deposit-page .legacy-deposit-method-group {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 8px !important;
    box-sizing: border-box !important;
}

.legacy-deposit-page .legacy-deposit-copy {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-top: 15px !important;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Home banner carousel: prev/next buttons.
   Bootstrap's `.carousel-control .icon-prev:before { content: "‹" }` replaced
   the chevron glyph with a text character the icon font does not contain, so
   the buttons rendered as a faint 50%-opacity hairline (and, before the theme
   CSS encoding was repaired, as the mojibake "â€¹" / "â€º"). Drawn in CSS here
   so they are clearly visible on every theme and need no font glyph at all.
   -------------------------------------------------------------------------- */
.carousel .carousel-control {
    opacity: 1;
    background-image: none;
    text-shadow: none;
}
.carousel .carousel-control .icon-prev,
.carousel .carousel-control .icon-next {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 50%;
    background: rgb(0 0 0 / 45%);
    font-size: 0;
    line-height: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
/* 84px clears the fixed DOWNLOAD / DEMO side tabs (54px wide) on desktop,
   which otherwise sat on top of the buttons and swallowed the clicks. */
.carousel .carousel-control .icon-prev { left: 84px; right: auto; }
.carousel .carousel-control .icon-next { right: 84px; left: auto; }
.carousel .carousel-control { z-index: 15; }
/* The pause (Jeda) button sits inside the right control's area; keep it above it. */
.carousel .legacy-carousel-toggle { z-index: 20; }
.carousel .carousel-control .icon-prev::before,
.carousel .carousel-control .icon-next::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    content: "";
    font-family: inherit;
}
.carousel .carousel-control .icon-prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.carousel .carousel-control .icon-next::before { transform: translate(-70%, -50%) rotate(135deg); }
.carousel .carousel-control:hover .icon-prev,
.carousel .carousel-control:hover .icon-next,
.carousel .carousel-control:focus-visible .icon-prev,
.carousel .carousel-control:focus-visible .icon-next {
    background: rgb(0 0 0 / 70%);
    transform: scale(1.06);
}
.carousel .carousel-control:focus-visible { outline: none; }
.carousel .carousel-control:focus-visible .icon-prev,
.carousel .carousel-control:focus-visible .icon-next { box-shadow: 0 0 0 3px rgb(255 255 255 / 60%); }

@media (max-width: 767px) {
    .carousel .carousel-control .icon-prev,
    .carousel .carousel-control .icon-next {
        width: 34px;
        height: 34px;
        margin-top: -17px;
    }
    .carousel .carousel-control .icon-prev { left: 10px; }
    .carousel .carousel-control .icon-next { right: 10px; }
    .carousel .carousel-control .icon-prev::before,
    .carousel .carousel-control .icon-next::before {
        width: 9px;
        height: 9px;
        border-width: 2px;
    }
}
