.modal {
    display: none !important;
}

.modal-backdrop {
    display: none !important;
}

/* MOBILE-FIRST DESIGN - Mirip alxsa-sa.html */
body {
    background: #04080d;
    background-image: url('https://wallpapercave.com/wp/wp12837906.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 500px 900px;
    font-family: 'Russo One', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.modal-open {
    position: relative;
    overflow: hidden !important;
}

body > div {
    z-index: 2;
    position: relative;
}

.text-center {
    text-align: center;
}

.header {
    margin-top: 30px;
}

.header .head-top {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 10px;
}

.grandprize-value {
    font-size: 28px;
    color: #ffffff;
    font-family: 'Russo One', sans-serif;
    max-width: 328px;
    margin: auto;
    box-shadow: 0px 0px 40px rgb(166 28 48);
    margin-top: 18px;
    padding: 7px 10px;
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

.spinner-wrapper {
    margin: auto;
    width: 496px;
    height: 500px;
    position: relative;
    background-image: url('');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(215, 56, 56, 0.5);
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.spinner {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}

.btn-spin {
    background: radial-gradient(circle, rgba(255, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 89%);
    color: #FFFFFF;
    height: 50px;
    border-radius: 6px;
    padding: 0px !important;
    border: 1px solid rgba(255, 184, 47, 0.55);
    max-width: 300px;
    width: 100%;
    font-size: 24px;
    text-transform: uppercase;
    font-family: 'Russo One', sans-serif;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    display: inline-block;
    line-height: 50px;
    text-align: center;
    margin: 10px auto;
}

#countdown {
    font-size: 20px;
    color: #00ff39;
}

.btn-spin:hover {
    transform: scale(1.1);
}

.btn-spin.active {
    animation: glowing 1500ms infinite;
}

.btn-spin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes glowing {
    0% {
        box-shadow: 0px 0px 20px 0px rgba(255, 184, 47, 0.55);
    }
    50% {
        box-shadow: 0px 0px 50px 10px rgba(255, 184, 47, 0.55);
    }
    100% {
        box-shadow: 0px 0px 20px 0px rgba(255, 184, 47, 0.55);
    }
}

.spinner-col {
    position: absolute;
    width: 123px;
    height: 501px;
    overflow: hidden;
    display: inline-block;
    background: transparent;
}

.spinner-col2 {
    left: 50%;
    transform: translateX(-50%);
}

.spinner-col3 {
    left: auto;
    right: 0px;
}

.spinner-col .strip {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    /* Pastikan strip selalu terlihat dan tidak hilang */
    min-height: 2000px;
    height: auto;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.spinner-col .symbol {
    width: 100% !important;
    height: 167px !important;
    margin: 0 !important;
    min-height: 167px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    position: relative !important;
    z-index: 11 !important;
    pointer-events: none !important;
}

/* Simbol Mahjong */
.spinner-col .symbol.symbol-mj {
    background-image: url('img/mahjongicon.jpg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Simbol Scatter */
.spinner-col .symbol.symbol-sc {
    background-image: url('img/scatter-hitam.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Simbol Wild */
.spinner-col .symbol.symbol-wb {
    background-image: url('img/wildbonus.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.spinner-col1 {
    left: 0px;
}

.spinner-col2 {
    left: 50%;
    transform: translateX(-50%);
}

.spinner-col3 {
    left: auto;
    right: 0px;
}


.spinner-col1.spinned-1 .img {
    margin-top: -12692px;
}

.spinner-col2.spinned-1 .img {
    margin-top: -12537px;
}

.spinner-col3.spinned-1 .img {
    margin-top: -12692px;
}

.spin-error {
    font-family: 'Russo One', sans-serif;
    background: red;
    color: #fff;
    padding: 10px;
    width: 100%;
    max-width: 300px;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    transform: scale(0);
    transition: all 0.5s;
    border-radius: 6px;
}

.spin-error.active {
    transform: scale(1);
}

.spin-modal {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translate(-50%, 0%);
    width: calc(100% - 40px);
    max-width: 500px;
    background: #000;
    color: #fff;
    z-index: 1072;
    transition: all 1s;
    animation: glowing2 1500ms infinite;
    border-radius: 10px;
}

@keyframes glowing2 {
    0% {
        box-shadow: 0px 0px 20px 0px rgba(255, 184, 47, 0.55);
    }
    50% {
        box-shadow: 0px 0px 100px 10px rgba(255, 184, 47, 0.55);
    }
    100% {
        box-shadow: 0px 0px 20px 0px rgba(255, 184, 47, 0.55);
    }
}

.spin-modal.open {
    top: 50%;
    transform: translate(-50%, -50%);
}

.spin-modal-backdrop {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    z-index: 1071;
    display: none;
    transition: opacity 0.3s;
}

.spin-modal-backdrop.active {
    opacity: 1;
    display: block;
}

.spin-modal-header {
    padding: 10px 20px;
    background: #d73838;
    color: #000;
    font-family: 'Russo One', sans-serif;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
}

.spin-modal .content {
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 30px;
    padding-bottom: 30px;
    font-family: 'Russo One', sans-serif;
    line-height: 26px;
    text-align: left;
}

/* Button BUAT AKUN GACOR - Highlight Effect */
.spin-modal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    margin: 25px auto 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffb82f 0%, #ff9500 50%, #ffb82f 100%);
    color: #000;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border: 3px solid #ffb82f;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(255, 184, 47, 0.8),
        0 0 40px rgba(255, 184, 47, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: buttonHighlight 2s ease-in-out infinite;
    transition: all 0.3s ease;
    z-index: 1;
    box-sizing: border-box;
    line-height: 1.4;
    min-height: 50px;
}

.spin-modal-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: buttonShine 3s infinite;
    z-index: -1;
}

.spin-modal-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 30px rgba(255, 184, 47, 1),
        0 0 60px rgba(255, 184, 47, 0.8),
        0 0 90px rgba(255, 184, 47, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    border-color: #fff;
}

.spin-modal-button:active {
    transform: scale(0.98);
}

@keyframes buttonHighlight {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 184, 47, 0.8),
            0 0 40px rgba(255, 184, 47, 0.6),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 184, 47, 1),
            0 0 60px rgba(255, 184, 47, 0.8),
            0 0 90px rgba(255, 184, 47, 0.6),
            inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

@keyframes buttonShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.finalButton {
    background: #000;
    color: #fff;
    height: 50px;
    padding: 0px !important;
    border: 1px solid rgba(255, 184, 47, 0.55);
    max-width: 300px;
    width: 100%;
    font-size: 16px;
    text-transform: uppercase;
    font-family: 'Russo One', sans-serif;
    margin-top: 20px;
    cursor: pointer;
    display: block;
    margin: auto;
    line-height: 50px;
    text-decoration: none;
    border-radius: 10px;
    animation: pump 1800ms infinite;
    transition: transform 0.5s;
    text-align: center;
}

.finalButton:hover {
    box-shadow: 0px 0px 30px 0px rgba(255, 184, 47, 0.55);
}

@keyframes pump {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.red-line {
    width: 100%;
    height: 7px;
    background-color: red;
    position: absolute;
    top: 280px;
    z-index: 99999999;
    animation: blinker 600ms linear infinite;
    display: none;
}

.red-line.active {
    display: block;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.red-block {
    display: inline-block;
    background: #d73838;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    margin: 0 2px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

/* Turbo Panel Styles */
.turbo-panel {
    margin: 6px auto 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 184, 47, .28);
    background: linear-gradient(180deg, rgba(215, 56, 56, .10), rgba(0, 0, 0, .25));
    box-shadow: inset 0 0 20px rgba(255, 184, 47, .08), 0 0 24px rgba(215, 56, 56, .12);
    backdrop-filter: blur(3px);
    box-sizing: border-box;
    width: min(92vw, 560px);
    max-width: 450px;
    justify-content: center;
    flex-wrap: wrap;
}

.turbo-label {
    font-family: 'Russo One', sans-serif;
    color: #ffd68a;
    letter-spacing: .4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.turbo-label::before {
    content: "🚀";
    filter: drop-shadow(0 0 6px rgba(255, 184, 47, .65));
}

.turbo-switch {
    position: relative;
    width: 58px;
    height: 30px;
}

.turbo-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.turbo-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #351818, #1a0c0c);
    border: 1px solid rgba(255, 184, 47, .35);
    box-shadow: inset 0 0 8px rgba(255, 184, 47, .2);
    transition: all .25s ease;
}

.turbo-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0c0c0c;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .8), 0 0 10px rgba(255, 184, 47, .25);
    transition: transform .25s ease, background .25s ease;
}

.turbo-switch input:checked + .turbo-slider {
    background: linear-gradient(180deg, #ffb82f, #ffdf92);
    box-shadow: 0 0 14px rgba(255, 184, 47, .65);
}

.turbo-switch input:checked + .turbo-slider::before {
    transform: translateX(28px);
    background: #2b1a00;
}

.turbo-speeds {
    display: flex;
    gap: 8px;
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(48px, 1fr));
    column-gap: 8px;
    row-gap: 8px;
    align-items: center;
}

.turbo-chip input {
    display: none;
}

.turbo-chip label {
    display: inline-block;
    width: 100%;
    min-width: auto;
    padding: 8px 0;
    border-radius: 999px;
    cursor: pointer;
    font: 600 13px/1 'Russo One', sans-serif;
    color: #ffd68a;
    letter-spacing: .2px;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 184, 47, .35);
    transition: all .2s ease;
    opacity: .55;
    text-align: center;
}

.turbo-chip input:checked + label {
    color: #1a0c00;
    background: linear-gradient(90deg, #ffb82f, #ffe19a);
    box-shadow: 0 0 16px rgba(255, 184, 47, .45);
    opacity: 1;
}

.turbo--off .turbo-speeds {
    pointer-events: none;
    filter: grayscale(1) opacity(.5);
}

.btn-spin.turbo-active {
    box-shadow: 0 0 25px rgba(255, 184, 47, .6), 0 0 10px #d73838 inset;
    position: relative;
}

.btn-spin.turbo-active::after {
    content: "TURBO";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffb82f;
    color: #111;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(255, 184, 47, .85);
}

.spinner-col .img {
    will-change: margin-top;
}

/* Media Query - Mirip alxsa-sa.html */
@media only screen and (max-width: 650px) {
    .header .head-top {
        font-size: 20px;
    }

    .grandprize-value {
        font-size: 24px;
    }

    .spinner-wrapper {
        max-width: 496px;
        width: 100%;
    }

    .spinner {
        transform: scale(0.8);
    }
    
    .turbo-panel {
        gap: 10px;
        padding: 8px 10px;
    }
    
    .turbo-label {
        font-size: 12px;
    }
    
    .turbo-switch {
        width: 54px;
        height: 28px;
    }
    
    .turbo-slider::before {
        width: 22px;
        height: 22px;
        top: 3px;
        left: 3px;
    }
    
    .turbo-switch input:checked + .turbo-slider::before {
        transform: translateX(26px);
    }
    
    .turbo-speeds {
        grid-template-columns: repeat(4, minmax(44px, 1fr));
        column-gap: 8px;
        row-gap: 8px;
    }
    
    .turbo-chip label {
        font-size: 12px;
        padding: 7px 0;
    }
    
    .btn-spin {
        font-size: 20px;
        height: 45px;
        max-width: 280px;
    }
    
    .spin-modal-button {
        font-size: 16px;
        padding: 12px 18px;
        max-width: 280px;
    }
}

@media only screen and (max-width: 530px) {
    .spinner-wrapper {
        margin-top: -68px;
        margin-bottom: 38px;
    }

    .spinner {
        transform: scale(1);
    }

    .spinner .spinner-col {
        transform: scale(0.6);
    }

    .spinner .spinner-col2 {
        transform: translateX(-50%) scale(0.6);
    }
    
    .turbo-panel {
        gap: 8px;
    }
    
    .turbo-speeds {
        grid-template-columns: repeat(4, minmax(40px, 1fr));
        row-gap: 6px;
    }
    
    .turbo-chip label {
        font-size: 11px;
        padding: 6px 0;
    }
    
    .btn-spin {
        font-size: 18px;
        height: 42px;
        max-width: 260px;
    }
    
    .spin-modal-button {
        font-size: 15px;
        padding: 11px 16px;
        max-width: 260px;
        margin: 20px auto 0;
    }
}

@media only screen and (max-width: 380px) {
    .turbo-label {
        display: none;
    }
    
    .turbo-panel {
        gap: 6px;
    }
    
    .turbo-speeds {
        grid-template-columns: repeat(4, minmax(38px, 1fr));
    }
    
    .btn-spin {
        font-size: 16px;
        height: 40px;
        max-width: 240px;
    }
    
    .spin-modal-button {
        font-size: 14px;
        padding: 10px 14px;
        max-width: 240px;
        margin: 18px auto 0;
    }
}
