* {
    box-sizing: border-box;
}

:root {
    --bg: #020706;
    --panel: rgba(8, 17, 15, .82);
    --panel2: rgba(9, 19, 16, .92);
    --green: #20c56b;
    --green-soft: rgba(32, 197, 107, .22);
    --gold: #f4c35a;
    --gold2: #a66f1f;
    --text: #f8fafc;
    --muted: #a8b3ad;
    --line: rgba(255,255,255,.10);
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: #020706;
    color: var(--text);
    overflow-x: hidden;
}

.simple-bg {
    position: fixed;
    inset: 0;
    z-index: -5;
    background:
        radial-gradient(circle at 50% 42%, rgba(28, 141, 78, .24), transparent 28%),
        radial-gradient(circle at 18% 75%, rgba(28, 141, 78, .14), transparent 24%),
        radial-gradient(circle at 85% 40%, rgba(244, 195, 90, .08), transparent 24%),
        linear-gradient(180deg, #040807 0%, #07110f 48%, #020706 100%);
}

.simple-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.32)),
        radial-gradient(circle at center, transparent 0 36%, rgba(0,0,0,.42) 82%);
}

.simple-page {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 16px 28px 22px;
}

.simple-header {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(244,195,90,.18);
}

.simple-logo {
    max-width: 245px;
    max-height: 68px;
    object-fit: contain;
    filter:
        drop-shadow(0 8px 18px rgba(0,0,0,.65))
        drop-shadow(0 0 12px rgba(244,195,90,.18));
}

.simple-main {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 54px;
    align-items: center;
    padding: 36px 60px 28px;
}

.simple-wheel-area {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-holder {
    position: relative;
    width: min(560px, 42vw);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 15px;
    background:
        radial-gradient(circle, rgba(11,32,22,.96), rgba(4,12,9,.98) 55%, rgba(244,195,90,.55) 58%, rgba(244,195,90,.95) 71%, rgba(5,10,8,.98) 100%);
    box-shadow:
        0 30px 70px rgba(0,0,0,.55),
        0 0 30px rgba(244,195,90,.15),
        0 0 45px rgba(32,197,107,.10);
}

.wheel-holder::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(32,197,107,.15), transparent 64%);
    z-index: -1;
    filter: blur(8px);
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    background: #06110d;
}

.pointer-top {
    position: absolute;
    left: 50%;
    top: -18px;
    transform: translateX(-50%);
    width: 72px;
    height: 78px;
    background: linear-gradient(180deg, #ffe79b, #a66f1f);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 20;
    filter:
        drop-shadow(0 8px 12px rgba(0,0,0,.55))
        drop-shadow(0 0 12px rgba(244,195,90,.28));
}

.center-logo {
    position: absolute;
    width: 22%;
    height: 22%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #123c25, #03110a 75%);
    border: 5px solid var(--gold2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        inset 0 0 18px rgba(255,255,255,.08),
        0 0 18px rgba(244,195,90,.26);
    z-index: 10;
    overflow: hidden;
}

.center-logo img {
    max-width: 76%;
    max-height: 76%;
    object-fit: contain;
}

.center-logo span {
    color: var(--gold);
    font-size: clamp(10px, 1vw, 15px);
    font-weight: 950;
}

.simple-form-card {
    width: 100%;
    max-width: 500px;
    background: rgba(9, 16, 15, .78);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 38px 34px 28px;
    box-shadow:
        0 24px 65px rgba(0,0,0,.32),
        inset 0 1px 0 rgba(255,255,255,.04);
}

.simple-form-card h1 {
    margin: 0;
    color: var(--gold);
    font-size: 30px;
    line-height: 1.2;
    text-align: center;
    font-weight: 950;
}

.simple-form-card p {
    margin: 10px 0 24px;
    color: #d1d5db;
    font-size: 16px;
    text-align: center;
    font-weight: 700;
}

.code-input-wrap {
    height: 58px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.22);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 18px;
}

.ticket-input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
}

.ticket-input::placeholder {
    color: rgba(255,255,255,.42);
}

.input-icon {
    color: rgba(255,255,255,.50);
    font-size: 22px;
}

.spin-btn {
    width: 100%;
    height: 64px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    color: #11100b;
    background: linear-gradient(180deg, #ffe7a0, #f4c35a 46%, #b07a27);
    font-size: 36px;
    font-weight: 950;
    letter-spacing: 1px;
    box-shadow:
        0 14px 32px rgba(0,0,0,.30),
        inset 0 1px 0 rgba(255,255,255,.25);
}

.spin-btn:disabled {
    opacity: .62;
    cursor: not-allowed;
}

.preview-title {
    margin: 26px 0 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    color: var(--gold);
    font-size: 15px;
    font-weight: 950;
}

.preview-title span {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(244,195,90,.35));
}

.preview-title span:last-child {
    background: linear-gradient(90deg, rgba(244,195,90,.35), transparent);
}

.preview-list {
    display: grid;
    gap: 9px;
}

.preview-row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.preview-row img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.preview-name {
    color: #d7ded8;
    font-size: 15px;
    font-weight: 800;
}

.preview-percent {
    color: #48dd7b;
    font-size: 15px;
    font-weight: 900;
}

.small-empty {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    padding: 12px;
}

.result-box {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(32,197,107,.10);
    border: 1px solid rgba(32,197,107,.25);
    color: var(--gold);
    text-align: center;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.35;
}

.simple-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    padding: 0 22px 20px;
}

.simple-info-card {
    min-height: 150px;
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: center;
    gap: 22px;
    padding: 26px 30px;
    border-radius: 18px;
    background: rgba(9, 16, 15, .72);
    border: 1px solid rgba(255,255,255,.11);
    box-shadow:
        0 18px 44px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.03);
}

.simple-icon-circle {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(32,197,107,.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-icon-circle img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.simple-info-card h2 {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 23px;
    font-weight: 950;
}

.simple-info-card p {
    margin: 0;
    color: #d7ded8;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 700;
}

.simple-info-card ol {
    margin: 0;
    padding-left: 20px;
    color: #d7ded8;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 700;
}

.simple-footer {
    text-align: center;
    color: rgba(255,255,255,.25);
    font-size: 13px;
    padding: 10px 0 0;
}

@media (max-width: 1050px) {
    .simple-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 30px 16px 24px;
    }

    .wheel-holder {
        width: min(620px, 88vw);
    }

    .simple-form-card {
        max-width: 620px;
        margin: 0 auto;
    }

    .simple-bottom {
        grid-template-columns: 1fr;
        padding: 0 16px 22px;
    }

    .simple-info-card {
        min-height: auto;
    }
}

@media (max-width: 620px) {
    .simple-page {
        padding: 10px 12px 20px;
    }

    .simple-header {
        height: 64px;
    }

    .simple-logo {
        max-width: 190px;
    }

    .simple-main {
        padding: 24px 0 22px;
    }

    .wheel-holder {
        width: 94vw;
        padding: 10px;
    }

    .pointer-top {
        width: 46px;
        height: 52px;
        top: -10px;
    }

    .simple-form-card {
        padding: 26px 18px 22px;
    }

    .simple-form-card h1 {
        font-size: 23px;
    }

    .simple-form-card p {
        font-size: 14px;
    }

    .spin-btn {
        height: 58px;
        font-size: 30px;
    }

    .simple-info-card {
        grid-template-columns: 70px 1fr;
        gap: 16px;
        padding: 20px 18px;
    }

    .simple-icon-circle {
        width: 62px;
        height: 62px;
    }

    .simple-icon-circle img {
        width: 40px;
        height: 40px;
    }

    .simple-info-card h2 {
        font-size: 18px;
    }

    .simple-info-card p,
    .simple-info-card ol {
        font-size: 13px;
    }
}

/* SIMPLE ACTION BUTTONS */
.simple-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
}

.mini-action-btn {
    height: 48px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    background: rgba(32,197,107,.14);
    border: 1px solid rgba(32,197,107,.32);
    color: #f4c35a;
    font-size: 15px;
    font-weight: 950;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 10px 24px rgba(0,0,0,.24);
}

.mini-action-btn:hover {
    background: rgba(32,197,107,.22);
}

/* MODAL HADIAH & PEMENANG */
.modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(0,0,0,.78);
}

.modal-box {
    width: 440px;
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(9,16,15,.96);
    border: 1px solid rgba(244,195,90,.42);
    border-radius: 16px;
    padding: 18px;
    box-shadow:
        0 30px 80px rgba(0,0,0,.55),
        0 0 26px rgba(32,197,107,.16);
}

.modal-box h3 {
    margin: 0 0 14px;
    color: #f4c35a;
    font-size: 18px;
    font-weight: 950;
}

#rewardList,
#winnerList {
    height: 330px;
    max-height: 330px;
    overflow-y: auto;
    padding-right: 6px;
}

.reward-item,
.winner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.06);
}

.reward-item img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.reward-item b,
.winner-line {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.35;
}

.reward-item small,
.winner-date {
    display: block;
    margin-top: 4px;
    color: #a8b3ad;
    font-size: 11px;
    font-weight: 700;
}

.winner-line b {
    color: #f4c35a;
}

.winner-empty {
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.modal-box button {
    width: 100%;
    height: 46px;
    margin-top: 14px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffe7a0, #f4c35a 46%, #b07a27);
    color: #11100b;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

#rewardList::-webkit-scrollbar,
#winnerList::-webkit-scrollbar {
    width: 6px;
}

#rewardList::-webkit-scrollbar-thumb,
#winnerList::-webkit-scrollbar-thumb {
    background: #f4c35a;
    border-radius: 999px;
}

@media (max-width: 480px) {
    .simple-action-row {
        grid-template-columns: 1fr;
    }

    #rewardList,
    #winnerList {
        height: 300px;
        max-height: 300px;
    }

    .modal-box {
        padding: 16px;
    }
}

/* WHEEL PREMIUM UPGRADE */
.wheel-holder {
    padding: 18px;
    background: radial-gradient(circle at center, rgba(3,13,8,.95) 0 62%, rgba(0,0,0,0) 76%);
    box-shadow:
        0 35px 90px rgba(0,0,0,.62),
        0 0 0 1px rgba(244,195,90,.26),
        0 0 34px rgba(244,195,90,.18),
        0 0 64px rgba(32,197,107,.12);
}

.wheel-holder::after {
    display: none;
}

.pointer-top {
    width: 78px;
    height: 86px;
    top: -22px;
    background:
        linear-gradient(180deg, #fff1b4 0%, #f4c35a 42%, #9e681d 100%);
}

.pointer-top::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 13px;
    width: 18px;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, #fff7c2, #20c56b 46%, #063d24 72%);
    box-shadow: 0 0 12px rgba(32,197,107,.6);
}

.center-logo {
    border-width: 6px;
    box-shadow:
        inset 0 0 22px rgba(255,255,255,.09),
        0 0 20px rgba(244,195,90,.28),
        0 0 36px rgba(32,197,107,.16);
}

@media (max-width: 620px) {
    .wheel-holder {
        padding: 12px;
    }

    .pointer-top {
        width: 52px;
        height: 58px;
        top: -12px;
    }

    .pointer-top::after {
        width: 12px;
        height: 12px;
        top: 9px;
    }
}

/* AUTO WHEEL FRAME + POINTER */
.wheel-frame-img {
    position: absolute;
    inset: -7%;
    width: 114%;
    height: 114%;
    object-fit: contain;
    pointer-events: none;
    z-index: 12;
    display: none;
    filter:
        drop-shadow(0 18px 32px rgba(0,0,0,.48))
        drop-shadow(0 0 18px rgba(244,195,90,.16));
}

.wheel-pointer-img {
    position: absolute;
    left: 50%;
    top: -12%;
    width: 22%;
    height: auto;
    transform: translateX(-50%);
    object-fit: contain;
    pointer-events: none;
    z-index: 40;
    display: none;
    filter:
        drop-shadow(0 10px 18px rgba(0,0,0,.55))
        drop-shadow(0 0 14px rgba(244,195,90,.22));
}

/* Matikan pointer CSS lama */
.pointer-top {
    display: none !important;
}

#wheelCanvas {
    position: relative;
    z-index: 5;
}

/* Supaya frame tidak ketutup center logo */
.center-logo {
    z-index: 35;
}

@media (max-width: 620px) {
    .wheel-frame-img {
        inset: -8%;
        width: 116%;
        height: 116%;
    }

    .wheel-pointer-img {
        top: -11%;
        width: 21%;
    }
}

/* KHUSUS BLACK GOLD AGAR ADA JARAK LEBIH LEGA */
.wheel-holder.theme-black-gold .wheel-frame-img {
    inset: -7%;
    width: 114%;
    height: 114%;
}

.wheel-holder.theme-black-gold .wheel-pointer-img {
    top: -11%;
    width: 20%;
}

/* =========================================================
   MOBILE FINAL: RODA + FORM SPIN MUNCUL DULU
   Bagian bawah tetap di bawah dan bisa discroll
========================================================= */

@media (max-width: 620px) {
    html,
    body {
        min-height: 100%;
        overflow-x: hidden;
    }

    .simple-page {
        width: 100%;
        min-height: 100vh;
        padding: 8px 10px 18px;
    }

    .simple-header {
        height: 54px;
        border-bottom: 1px solid rgba(244,195,90,.20);
    }

    .simple-logo {
        max-width: 150px;
        max-height: 48px;
    }

    /*
      Area utama mobile:
      hanya fokus logo + roda + form spin.
      Section bawah tetap setelah ini dan user bisa scroll.
    */
    .simple-main {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        min-height: auto;
        padding: 10px 0 12px;
    }

    .simple-wheel-area {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 2px;
    }

    .wheel-holder {
        width: min(82vw, 345px);
        padding: 8px;
        margin: 0 auto;
    }

    .wheel-frame-img {
        inset: -8%;
        width: 116%;
        height: 116%;
    }

    .wheel-pointer-img {
        top: -11%;
        width: 20%;
    }

    .center-logo span {
        font-size: 10px;
    }

    .simple-form-card {
        width: 100%;
        max-width: 360px;
        margin: 4px auto 0;
        padding: 20px 16px 16px;
        border-radius: 16px;
    }

    .simple-form-card h1 {
        font-size: 22px;
        line-height: 1.12;
        margin-bottom: 6px;
    }

    .simple-form-card p {
        margin: 0 0 16px;
        font-size: 13px;
        line-height: 1.35;
    }

    .code-input-wrap {
        height: 48px;
        padding: 0 13px;
        margin-bottom: 14px;
        border-radius: 11px;
    }

    .ticket-input {
        font-size: 14px;
    }

    .input-icon {
        font-size: 17px;
    }

    .spin-btn {
        height: 52px;
        border-radius: 10px;
        font-size: 28px;
        letter-spacing: 1px;
    }

    /*
      Di mobile tetap 2 tombol sejajar.
      Jangan turun jadi 1 kolom, biar layar pertama lebih rapi.
    */
    .simple-action-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
        margin-top: 14px;
    }

    .mini-action-btn {
        height: 44px;
        font-size: 13px;
        border-radius: 9px;
    }

    .result-box {
        margin-top: 12px;
        padding: 12px;
        font-size: 15px;
    }

    /*
      Bagian bawah tetap normal di bawah.
      User tinggal scroll ke bawah.
    */
    .simple-bottom {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 10px 8px 18px;
        margin-top: 4px;
    }

    .simple-info-card {
        width: 100%;
        min-height: 118px;
        grid-template-columns: 64px 1fr;
        gap: 14px;
        padding: 18px 16px;
        border-radius: 16px;
    }

    .simple-icon-circle {
        width: 58px;
        height: 58px;
    }

    .simple-icon-circle img {
        width: 38px;
        height: 38px;
    }

    .simple-info-card h2 {
        font-size: 18px;
        margin-bottom: 7px;
    }

    .simple-info-card p,
    .simple-info-card ol {
        font-size: 12.5px;
        line-height: 1.5;
    }

    .simple-footer {
        padding: 8px 0 0;
        font-size: 11px;
    }
}

/* HP yang layarnya pendek, biar form spin tetap kelihatan */
@media (max-width: 620px) and (max-height: 720px) {
    .simple-header {
        height: 48px;
    }

    .simple-logo {
        max-width: 132px;
        max-height: 42px;
    }

    .simple-main {
        gap: 6px;
        padding-top: 6px;
    }

    .wheel-holder {
        width: min(76vw, 310px);
    }

    .simple-form-card {
        max-width: 350px;
        padding: 17px 14px 14px;
        margin-top: 0;
    }

    .simple-form-card h1 {
        font-size: 20px;
    }

    .simple-form-card p {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .code-input-wrap {
        height: 44px;
        margin-bottom: 12px;
    }

    .spin-btn {
        height: 48px;
        font-size: 26px;
    }

    .simple-action-row {
        margin-top: 12px;
    }

    .mini-action-btn {
        height: 40px;
    }
}

/* HP kecil 360px ke bawah */
@media (max-width: 380px) {
    .wheel-holder {
        width: min(78vw, 292px);
    }

    .simple-form-card {
        max-width: 330px;
        padding: 16px 13px 13px;
    }

    .simple-form-card h1 {
        font-size: 19px;
    }

    .spin-btn {
        font-size: 25px;
    }

    .mini-action-btn {
        font-size: 12px;
    }
}

/* =========================================================
   FIX JARAK LOGO DENGAN POINTER / WHEEL FRAME
   Desktop + Mobile
========================================================= */

/* DESKTOP: turunkan roda sedikit agar pointer tidak dekat logo */
@media (min-width: 1051px) {
    .simple-main {
        padding-top: 56px;
    }

    .simple-wheel-area {
        transform: translateY(16px);
    }

    .wheel-holder {
        width: min(550px, 41vw);
    }

    .wheel-pointer-img {
        top: -9.5%;
        width: 18%;
    }

    .wheel-frame-img {
        inset: -6%;
        width: 112%;
        height: 112%;
    }
}

/* TABLET */
@media (max-width: 1050px) and (min-width: 621px) {
    .simple-main {
        padding-top: 42px;
    }

    .simple-wheel-area {
        transform: translateY(10px);
    }

    .wheel-holder {
        width: min(570px, 82vw);
    }

    .wheel-pointer-img {
        top: -9.5%;
        width: 18%;
    }

    .wheel-frame-img {
        inset: -6%;
        width: 112%;
        height: 112%;
    }
}

/* MOBILE: logo aman, pointer tidak nabrak */
@media (max-width: 620px) {
    .simple-header {
        height: 60px;
    }

    .simple-main {
        padding-top: 22px;
        gap: 10px;
    }

    .simple-wheel-area {
        transform: translateY(8px);
        margin-bottom: 8px;
    }

    .wheel-holder {
        width: min(80vw, 330px);
    }

    .wheel-pointer-img {
        top: -8.5%;
        width: 18%;
    }

    .wheel-frame-img {
        inset: -6%;
        width: 112%;
        height: 112%;
    }
}

/* HP pendek */
@media (max-width: 620px) and (max-height: 720px) {
    .simple-main {
        padding-top: 18px;
    }

    .simple-wheel-area {
        transform: translateY(6px);
        margin-bottom: 6px;
    }

    .wheel-holder {
        width: min(74vw, 300px);
    }

    .wheel-pointer-img {
        top: -8%;
        width: 17%;
    }
}

/* =========================================================
   CENTER ICON OTOMATIS SESUAI TEMA
========================================================= */

.center-gift-logo {
    background:
        radial-gradient(circle at 50% 42%, rgba(20, 52, 32, .96), rgba(3, 12, 8, .98) 72%);
    border: 5px solid var(--gold2);
    overflow: visible;
}

.wheel-center-icon {
    width: 92%;
    height: 92%;
    object-fit: contain;
    display: none;
    pointer-events: none;
    filter:
        drop-shadow(0 8px 12px rgba(0,0,0,.55))
        drop-shadow(0 0 10px rgba(244,195,90,.24));
}

/* karena gift box biasanya melebar, buat sedikit lebih besar */
.wheel-holder.theme-black-gold .wheel-center-icon,
.wheel-holder.theme-emerald-gold .wheel-center-icon,
.wheel-holder.theme-royal-blue-gold .wheel-center-icon,
.wheel-holder.theme-white-gold .wheel-center-icon {
    width: 105%;
    height: 105%;
}

/* Black gold sedikit lebih kecil biar tidak terlalu penuh */
.wheel-holder.theme-black-gold .wheel-center-icon {
    width: 98%;
    height: 98%;
}

/* White gold biasanya terang, kasih shadow lebih kuat */
.wheel-holder.theme-white-gold .wheel-center-icon {
    filter:
        drop-shadow(0 8px 12px rgba(0,0,0,.65))
        drop-shadow(0 0 10px rgba(244,195,90,.22));
}

@media (max-width: 620px) {
    .center-gift-logo {
        border-width: 4px;
    }

    .wheel-center-icon {
        width: 100%;
        height: 100%;
    }

    .wheel-holder.theme-black-gold .wheel-center-icon {
        width: 94%;
        height: 94%;
    }
}

/* =========================================================
   FIX AMAN: JARAK WHEEL KE BOX BAWAH TANPA MERUSAK RODA
========================================================= */

/* Jangan ubah padding-bottom wheel-holder karena bikin roda rusak */
.wheel-holder {
    aspect-ratio: 1 / 1;
    overflow: visible;
}

/* Desktop: kasih jarak antar section bawah, bukan padding ke roda */
@media (min-width: 1051px) {
    .simple-main {
        padding-bottom: 60px;
    }

    .simple-bottom {
        margin-top: 18px;
    }

    .wheel-holder {
        width: min(530px, 39vw);
    }

    .wheel-frame-img {
        inset: -5.5%;
        width: 111%;
        height: 111%;
    }

    .wheel-pointer-img {
        top: -8.8%;
        width: 18%;
    }
}

/* Tablet */
@media (max-width: 1050px) and (min-width: 621px) {
    .simple-main {
        padding-bottom: 54px;
    }

    .simple-bottom {
        margin-top: 14px;
    }

    .wheel-holder {
        width: min(540px, 78vw);
    }
}

/* Mobile */
@media (max-width: 620px) {
    .simple-main {
        padding-bottom: 28px;
    }

    .simple-bottom {
        margin-top: 10px;
    }

    .wheel-holder {
        width: min(78vw, 320px);
    }

    .wheel-frame-img {
        inset: -5.5%;
        width: 111%;
        height: 111%;
    }

    .wheel-pointer-img {
        top: -8%;
        width: 17%;
    }
}

/* =========================================================
   HASIL SPIN MUNCUL DI TENGAH RODA
========================================================= */

.wheel-result-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 38%;
    height: 38%;
    transform: translate(-50%, -50%) scale(.82);
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .35s ease;
}

.wheel-result-overlay.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.wheel-result-card {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 18px 14px 12px;
    background:
        radial-gradient(circle at 50% 35%, rgba(255,255,255,.13), transparent 20%),
        radial-gradient(circle at center, rgba(9, 22, 16, .98), rgba(2, 8, 6, .98) 72%);
    border: 5px solid rgba(244,195,90,.92);
    box-shadow:
        inset 0 0 24px rgba(255,255,255,.08),
        0 0 22px rgba(244,195,90,.40),
        0 0 46px rgba(32,197,107,.24);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: wheelResultPulse 1.4s ease-in-out infinite;
}

.wheel-result-title {
    color: #ffffff;
    font-size: clamp(13px, 1.6vw, 24px);
    font-weight: 950;
    line-height: 1;
    text-shadow:
        0 2px 4px rgba(0,0,0,.85),
        0 0 12px rgba(244,195,90,.28);
}

.wheel-result-subtitle {
    margin-top: 5px;
    color: rgba(255,255,255,.88);
    font-size: clamp(7px, .8vw, 12px);
    font-weight: 900;
    letter-spacing: .6px;
}

.wheel-result-name {
    width: 86%;
    margin-top: 8px;
    padding: 7px 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff0ad, #f4c35a 48%, #b87822);
    color: #11100b;
    font-size: clamp(10px, 1.15vw, 17px);
    font-weight: 950;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        0 8px 18px rgba(0,0,0,.28);
}

.wheel-result-image {
    width: 42%;
    height: 42%;
    margin-top: 8px;
    object-fit: contain;
    display: none;
    filter:
        drop-shadow(0 8px 10px rgba(0,0,0,.55))
        drop-shadow(0 0 8px rgba(244,195,90,.28));
}

.wheel-result-image.show {
    display: block;
}

.wheel-holder.result-active .center-gift-logo {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(.72);
}

.wheel-holder.result-active .wheel-center-icon {
    display: none !important;
}

@keyframes wheelResultPulse {
    0%, 100% {
        box-shadow:
            inset 0 0 24px rgba(255,255,255,.08),
            0 0 22px rgba(244,195,90,.38),
            0 0 42px rgba(32,197,107,.18);
    }

    50% {
        box-shadow:
            inset 0 0 30px rgba(255,255,255,.10),
            0 0 32px rgba(244,195,90,.55),
            0 0 58px rgba(32,197,107,.30);
    }
}

@media (max-width: 620px) {
    .wheel-result-overlay {
        width: 42%;
        height: 42%;
    }

    .wheel-result-card {
        padding: 12px 9px 8px;
        border-width: 4px;
    }

    .wheel-result-title {
        font-size: 14px;
    }

    .wheel-result-subtitle {
        font-size: 7px;
        margin-top: 3px;
    }

    .wheel-result-name {
        margin-top: 5px;
        padding: 5px 7px;
        font-size: 10px;
    }

    .wheel-result-image {
        width: 38%;
        height: 38%;
        margin-top: 5px;
    }
}

/* =========================================================
   WINNER BADGE FINAL - BADGE PNG + DATA HADIAH OTOMATIS
========================================================= */

.wheel-result-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 78%;
    height: 78%;
    transform: translate(-50%, -50%) scale(.35);
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .35s ease;
}

.wheel-result-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.wheel-result-card {
    position: relative;
    width: 100%;
    height: 100%;
    animation: winnerBadgePop .55s cubic-bezier(.18, 1.25, .32, 1) both;
}

.wheel-winner-badge {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 4;
    pointer-events: none;
    filter:
        drop-shadow(0 20px 30px rgba(0,0,0,.55))
        drop-shadow(0 0 20px rgba(244,195,90,.35));
}

.winner-close-btn {
    position: absolute;
    right: 11%;
    top: 8%;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    background: linear-gradient(180deg, #fff0ad, #f4c35a 50%, #a66f1f);
    color: #11100b;
    font-size: 20px;
    line-height: 30px;
    font-weight: 950;
    box-shadow:
        0 8px 16px rgba(0,0,0,.45),
        0 0 12px rgba(244,195,90,.36);
}

.wheel-result-name {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46%;
    transform: translate(-50%, -50%);
    z-index: 8;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff3b7, #f4c35a 48%, #b87924);
    color: #11100b;
    font-size: clamp(10px, 1.25vw, 18px);
    font-weight: 950;
    text-align: center;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.45),
        0 8px 16px rgba(0,0,0,.38),
        0 0 16px rgba(244,195,90,.30);
}

.winner-image-box {
    position: absolute;
    left: 50%;
    top: 66%;
    width: 26%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    z-index: 8;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(244,195,90,.22);
    box-shadow:
        inset 0 0 12px rgba(255,255,255,.04),
        0 0 16px rgba(244,195,90,.18);
}

.wheel-result-image {
    width: 82%;
    height: 82%;
    object-fit: contain;
    display: none;
    filter:
        drop-shadow(0 8px 10px rgba(0,0,0,.58))
        drop-shadow(0 0 8px rgba(244,195,90,.34));
    animation: winnerPrizeFloat 1.7s ease-in-out infinite;
}

.wheel-result-image.show {
    display: block;
}

/* cahaya pecah keluar */
.winner-burst-layer {
    position: absolute;
    inset: -12%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.wheel-result-overlay.show .winner-burst-layer {
    opacity: 1;
}

.winner-burst-layer span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 42%;
    transform-origin: center bottom;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(244,195,90,.74), transparent);
    opacity: .75;
    animation: winnerBurstBadge .9s ease-out both;
}

.winner-burst-layer span:nth-child(1) { transform: translate(-50%, -100%) rotate(0deg); }
.winner-burst-layer span:nth-child(2) { transform: translate(-50%, -100%) rotate(45deg); }
.winner-burst-layer span:nth-child(3) { transform: translate(-50%, -100%) rotate(90deg); }
.winner-burst-layer span:nth-child(4) { transform: translate(-50%, -100%) rotate(135deg); }
.winner-burst-layer span:nth-child(5) { transform: translate(-50%, -100%) rotate(180deg); }
.winner-burst-layer span:nth-child(6) { transform: translate(-50%, -100%) rotate(225deg); }
.winner-burst-layer span:nth-child(7) { transform: translate(-50%, -100%) rotate(270deg); }
.winner-burst-layer span:nth-child(8) { transform: translate(-50%, -100%) rotate(315deg); }

/* partikel */
.winner-particle-layer {
    position: absolute;
    inset: -18%;
    z-index: 2;
    pointer-events: none;
}

.winner-particle-layer i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #f4c35a;
    box-shadow: 0 0 10px rgba(244,195,90,.85);
    opacity: 0;
}

.wheel-result-overlay.show .winner-particle-layer i {
    animation: winnerParticleBadge 1.15s ease-out both;
}

.winner-particle-layer i:nth-child(1) { --x: -150px; --y: -100px; animation-delay: .03s; }
.winner-particle-layer i:nth-child(2) { --x: -120px; --y: 90px; animation-delay: .08s; }
.winner-particle-layer i:nth-child(3) { --x: -60px; --y: -150px; animation-delay: .13s; }
.winner-particle-layer i:nth-child(4) { --x: 90px; --y: -120px; animation-delay: .06s; }
.winner-particle-layer i:nth-child(5) { --x: 155px; --y: -50px; animation-delay: .11s; }
.winner-particle-layer i:nth-child(6) { --x: 135px; --y: 95px; animation-delay: .04s; }
.winner-particle-layer i:nth-child(7) { --x: 35px; --y: 145px; animation-delay: .16s; }
.winner-particle-layer i:nth-child(8) { --x: -150px; --y: 20px; animation-delay: .20s; }
.winner-particle-layer i:nth-child(9) { --x: -25px; --y: 160px; animation-delay: .09s; }
.winner-particle-layer i:nth-child(10) { --x: 0px; --y: -165px; animation-delay: .18s; }
.winner-particle-layer i:nth-child(11) { --x: 165px; --y: 20px; animation-delay: .14s; }
.winner-particle-layer i:nth-child(12) { --x: -90px; --y: 135px; animation-delay: .22s; }

.wheel-holder.result-active .center-gift-logo {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(.72);
}

.wheel-holder.result-active .wheel-center-icon {
    display: none !important;
}

/* warna partikel ikut tema */
.wheel-holder.theme-emerald-gold .winner-particle-layer i {
    background: #20c56b;
    box-shadow: 0 0 10px rgba(32,197,107,.85);
}

.wheel-holder.theme-royal-blue-gold .winner-particle-layer i {
    background: #4aa3ff;
    box-shadow: 0 0 10px rgba(74,163,255,.85);
}

@keyframes winnerBadgePop {
    0% {
        opacity: 0;
        transform: scale(.25) rotate(-10deg);
        filter: blur(6px);
    }

    62% {
        opacity: 1;
        transform: scale(1.08) rotate(2deg);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

@keyframes winnerBurstBadge {
    0% {
        height: 0;
        opacity: 0;
    }

    35% {
        height: 45%;
        opacity: .95;
    }

    100% {
        height: 66%;
        opacity: 0;
    }
}

@keyframes winnerParticleBadge {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.3) rotate(0deg);
    }

    18% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.05) rotate(250deg);
    }
}

@keyframes winnerPrizeFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.05);
    }
}

@media (max-width: 620px) {
    .wheel-result-overlay {
        width: 82%;
        height: 82%;
    }

    .winner-close-btn {
        right: 10%;
        top: 8%;
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 17px;
    }

    .wheel-result-name {
        width: 48%;
        top: 50%;
        padding: 5px 8px;
        font-size: 10px;
    }

    .winner-image-box {
        width: 24%;
        top: 66%;
        border-radius: 12px;
    }

    .winner-particle-layer i:nth-child(1) { --x: -70px; --y: -55px; }
    .winner-particle-layer i:nth-child(2) { --x: -65px; --y: 52px; }
    .winner-particle-layer i:nth-child(3) { --x: -35px; --y: -76px; }
    .winner-particle-layer i:nth-child(4) { --x: 48px; --y: -70px; }
    .winner-particle-layer i:nth-child(5) { --x: 78px; --y: -30px; }
    .winner-particle-layer i:nth-child(6) { --x: 70px; --y: 55px; }
    .winner-particle-layer i:nth-child(7) { --x: 20px; --y: 78px; }
    .winner-particle-layer i:nth-child(8) { --x: -78px; --y: 12px; }
    .winner-particle-layer i:nth-child(9) { --x: -18px; --y: 82px; }
    .winner-particle-layer i:nth-child(10) { --x: 0px; --y: -86px; }
    .winner-particle-layer i:nth-child(11) { --x: 86px; --y: 12px; }
    .winner-particle-layer i:nth-child(12) { --x: -52px; --y: 72px; }
}

/* =========================================================
   FRONT THEME COLOR ONLY
   Otomatis ikut theme lane roda:
   black-gold / emerald-gold / royal-blue-gold / white-gold
   Tidak mengubah layout, ukuran, posisi, atau logic spin
========================================================= */

/* DEFAULT / EMERALD GOLD */
body.front-theme-emerald-gold {
    --front-bg-1: #020706;
    --front-bg-2: #061711;
    --front-bg-3: #020706;
    --front-glow-main: rgba(32, 197, 107, .26);
    --front-glow-soft: rgba(32, 197, 107, .14);
    --front-gold-glow: rgba(244, 195, 90, .10);
    --front-panel: rgba(8, 18, 15, .78);
    --front-panel-border: rgba(32, 197, 107, .22);
    --front-card: rgba(9, 18, 15, .72);
    --front-card-border: rgba(32, 197, 107, .20);
    --front-icon-bg: rgba(32, 197, 107, .16);
    --front-mini-bg: rgba(32, 197, 107, .14);
    --front-mini-border: rgba(32, 197, 107, .32);
    --front-mini-hover: rgba(32, 197, 107, .22);
    --front-text-main: #f8fafc;
    --front-text-soft: #d7ded8;
}

/* BLACK GOLD */
body.front-theme-black-gold {
    --front-bg-1: #030303;
    --front-bg-2: #0b0905;
    --front-bg-3: #000000;
    --front-glow-main: rgba(244, 195, 90, .18);
    --front-glow-soft: rgba(166, 111, 31, .12);
    --front-gold-glow: rgba(244, 195, 90, .16);
    --front-panel: rgba(10, 10, 9, .82);
    --front-panel-border: rgba(244, 195, 90, .20);
    --front-card: rgba(10, 10, 9, .76);
    --front-card-border: rgba(244, 195, 90, .18);
    --front-icon-bg: rgba(244, 195, 90, .13);
    --front-mini-bg: rgba(244, 195, 90, .10);
    --front-mini-border: rgba(244, 195, 90, .30);
    --front-mini-hover: rgba(244, 195, 90, .18);
    --front-text-main: #fffaf0;
    --front-text-soft: #e4d8bd;
}

/* ROYAL BLUE GOLD */
body.front-theme-royal-blue-gold {
    --front-bg-1: #020611;
    --front-bg-2: #071a3d;
    --front-bg-3: #02050c;
    --front-glow-main: rgba(45, 116, 255, .24);
    --front-glow-soft: rgba(55, 130, 255, .14);
    --front-gold-glow: rgba(244, 195, 90, .10);
    --front-panel: rgba(7, 16, 32, .80);
    --front-panel-border: rgba(55, 130, 255, .22);
    --front-card: rgba(7, 16, 32, .74);
    --front-card-border: rgba(55, 130, 255, .20);
    --front-icon-bg: rgba(55, 130, 255, .16);
    --front-mini-bg: rgba(55, 130, 255, .12);
    --front-mini-border: rgba(55, 130, 255, .32);
    --front-mini-hover: rgba(55, 130, 255, .20);
    --front-text-main: #f8fbff;
    --front-text-soft: #d6e4ff;
}

/* WHITE GOLD */
body.front-theme-white-gold {
    --front-bg-1: #fffaf0;
    --front-bg-2: #f4ead2;
    --front-bg-3: #ead9ad;
    --front-glow-main: rgba(244, 195, 90, .26);
    --front-glow-soft: rgba(181, 133, 42, .16);
    --front-gold-glow: rgba(244, 195, 90, .18);
    --front-panel: rgba(255, 250, 238, .82);
    --front-panel-border: rgba(181, 133, 42, .28);
    --front-card: rgba(255, 250, 238, .78);
    --front-card-border: rgba(181, 133, 42, .24);
    --front-icon-bg: rgba(244, 195, 90, .22);
    --front-mini-bg: rgba(244, 195, 90, .14);
    --front-mini-border: rgba(181, 133, 42, .34);
    --front-mini-hover: rgba(244, 195, 90, .24);
    --front-text-main: #21180b;
    --front-text-soft: #4c3a19;
}

/* Background utama otomatis */
body.front-theme-black-gold .simple-bg,
body.front-theme-emerald-gold .simple-bg,
body.front-theme-royal-blue-gold .simple-bg,
body.front-theme-white-gold .simple-bg {
    background:
        radial-gradient(circle at 50% 42%, var(--front-glow-main), transparent 28%),
        radial-gradient(circle at 18% 75%, var(--front-glow-soft), transparent 24%),
        radial-gradient(circle at 85% 40%, var(--front-gold-glow), transparent 24%),
        linear-gradient(180deg, var(--front-bg-1) 0%, var(--front-bg-2) 48%, var(--front-bg-3) 100%);
}

body.front-theme-white-gold .simple-bg::after {
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(181,133,42,.12)),
        radial-gradient(circle at center, transparent 0 38%, rgba(255,255,255,.25) 82%);
}

body.front-theme-black-gold .simple-bg::after,
body.front-theme-emerald-gold .simple-bg::after,
body.front-theme-royal-blue-gold .simple-bg::after {
    background:
        linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.32)),
        radial-gradient(circle at center, transparent 0 36%, rgba(0,0,0,.42) 82%);
}

/* Header line */
body.front-theme-black-gold .simple-header,
body.front-theme-emerald-gold .simple-header,
body.front-theme-royal-blue-gold .simple-header,
body.front-theme-white-gold .simple-header {
    border-bottom-color: var(--front-panel-border);
}

/* Card form */
body.front-theme-black-gold .simple-form-card,
body.front-theme-emerald-gold .simple-form-card,
body.front-theme-royal-blue-gold .simple-form-card,
body.front-theme-white-gold .simple-form-card {
    background: var(--front-panel);
    border-color: var(--front-panel-border);
}

/* Text form */
body.front-theme-black-gold .simple-form-card p,
body.front-theme-emerald-gold .simple-form-card p,
body.front-theme-royal-blue-gold .simple-form-card p,
body.front-theme-white-gold .simple-form-card p {
    color: var(--front-text-soft);
}

/* Input */
body.front-theme-black-gold .code-input-wrap,
body.front-theme-emerald-gold .code-input-wrap,
body.front-theme-royal-blue-gold .code-input-wrap,
body.front-theme-white-gold .code-input-wrap {
    border-color: var(--front-panel-border);
    background: rgba(0,0,0,.20);
}

body.front-theme-white-gold .code-input-wrap {
    background: rgba(255,255,255,.52);
}

body.front-theme-white-gold .ticket-input {
    color: #21180b;
}

body.front-theme-white-gold .ticket-input::placeholder {
    color: rgba(33, 24, 11, .45);
}

body.front-theme-white-gold .input-icon {
    color: rgba(33, 24, 11, .55);
}

/* Tombol Hadiah / Pemenang */
body.front-theme-black-gold .mini-action-btn,
body.front-theme-emerald-gold .mini-action-btn,
body.front-theme-royal-blue-gold .mini-action-btn,
body.front-theme-white-gold .mini-action-btn {
    background: var(--front-mini-bg);
    border-color: var(--front-mini-border);
}

body.front-theme-black-gold .mini-action-btn:hover,
body.front-theme-emerald-gold .mini-action-btn:hover,
body.front-theme-royal-blue-gold .mini-action-btn:hover,
body.front-theme-white-gold .mini-action-btn:hover {
    background: var(--front-mini-hover);
}

/* Box bawah */
body.front-theme-black-gold .simple-info-card,
body.front-theme-emerald-gold .simple-info-card,
body.front-theme-royal-blue-gold .simple-info-card,
body.front-theme-white-gold .simple-info-card {
    background: var(--front-card);
    border-color: var(--front-card-border);
}

body.front-theme-black-gold .simple-icon-circle,
body.front-theme-emerald-gold .simple-icon-circle,
body.front-theme-royal-blue-gold .simple-icon-circle,
body.front-theme-white-gold .simple-icon-circle {
    background: var(--front-icon-bg);
}

body.front-theme-black-gold .simple-info-card p,
body.front-theme-emerald-gold .simple-info-card p,
body.front-theme-royal-blue-gold .simple-info-card p,
body.front-theme-white-gold .simple-info-card p,
body.front-theme-black-gold .simple-info-card ol,
body.front-theme-emerald-gold .simple-info-card ol,
body.front-theme-royal-blue-gold .simple-info-card ol,
body.front-theme-white-gold .simple-info-card ol {
    color: var(--front-text-soft);
}

/* Footer */
body.front-theme-black-gold .simple-footer,
body.front-theme-emerald-gold .simple-footer,
body.front-theme-royal-blue-gold .simple-footer {
    color: rgba(255,255,255,.25);
}

body.front-theme-white-gold .simple-footer {
    color: rgba(33,24,11,.38);
}

/* Modal ikut warna theme */
body.front-theme-black-gold .modal-box,
body.front-theme-emerald-gold .modal-box,
body.front-theme-royal-blue-gold .modal-box,
body.front-theme-white-gold .modal-box {
    background: var(--front-panel);
    border-color: var(--front-panel-border);
}

body.front-theme-white-gold .modal-box h3,
body.front-theme-white-gold .reward-item b,
body.front-theme-white-gold .winner-line {
    color: #21180b;
}

body.front-theme-white-gold .reward-item,
body.front-theme-white-gold .winner-item,
body.front-theme-white-gold .winner-empty {
    background: rgba(255,255,255,.55);
    border-color: rgba(181,133,42,.16);
    color: #21180b;
}

body.front-theme-white-gold .reward-item small,
body.front-theme-white-gold .winner-date {
    color: rgba(33,24,11,.62);
}

/* =========================================================
   NEW FRONT THEMES
   RUBY RED GOLD + PURPLE GOLD
   Layout mengikuti Royal Blue Gold
========================================================= */

/* =========================
   RUBY RED GOLD
========================= */

body.front-theme-ruby-red-gold {
    --front-bg-1: #120203;
    --front-bg-2: #3b070b;
    --front-bg-3: #070102;
    --front-glow-main: rgba(212, 28, 43, .28);
    --front-glow-soft: rgba(132, 12, 24, .18);
    --front-gold-glow: rgba(244, 195, 90, .13);
    --front-panel: rgba(28, 5, 8, .82);
    --front-panel-border: rgba(230, 68, 83, .24);
    --front-card: rgba(30, 6, 9, .76);
    --front-card-border: rgba(230, 68, 83, .20);
    --front-icon-bg: rgba(212, 28, 43, .16);
    --front-mini-bg: rgba(212, 28, 43, .14);
    --front-mini-border: rgba(230, 68, 83, .34);
    --front-mini-hover: rgba(212, 28, 43, .22);
    --front-text-main: #fff8f5;
    --front-text-soft: #f0d4d7;
}

/* =========================
   PURPLE GOLD
========================= */

body.front-theme-purple-gold {
    --front-bg-1: #080211;
    --front-bg-2: #24103d;
    --front-bg-3: #040107;
    --front-glow-main: rgba(143, 67, 255, .26);
    --front-glow-soft: rgba(102, 42, 173, .17);
    --front-gold-glow: rgba(244, 195, 90, .12);
    --front-panel: rgba(18, 8, 31, .82);
    --front-panel-border: rgba(161, 93, 255, .24);
    --front-card: rgba(19, 9, 33, .76);
    --front-card-border: rgba(161, 93, 255, .20);
    --front-icon-bg: rgba(143, 67, 255, .16);
    --front-mini-bg: rgba(143, 67, 255, .14);
    --front-mini-border: rgba(161, 93, 255, .34);
    --front-mini-hover: rgba(143, 67, 255, .22);
    --front-text-main: #fffaff;
    --front-text-soft: #e5d7f4;
}

/* Background halaman */
body.front-theme-ruby-red-gold .simple-bg,
body.front-theme-purple-gold .simple-bg {
    background:
        radial-gradient(circle at 50% 42%, var(--front-glow-main), transparent 28%),
        radial-gradient(circle at 18% 75%, var(--front-glow-soft), transparent 24%),
        radial-gradient(circle at 85% 40%, var(--front-gold-glow), transparent 24%),
        linear-gradient(180deg, var(--front-bg-1) 0%, var(--front-bg-2) 48%, var(--front-bg-3) 100%);
}

body.front-theme-ruby-red-gold .simple-bg::after,
body.front-theme-purple-gold .simple-bg::after {
    background:
        linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.32)),
        radial-gradient(circle at center, transparent 0 36%, rgba(0,0,0,.42) 82%);
}

/* Garis header */
body.front-theme-ruby-red-gold .simple-header,
body.front-theme-purple-gold .simple-header {
    border-bottom-color: var(--front-panel-border);
}

/* Form spin */
body.front-theme-ruby-red-gold .simple-form-card,
body.front-theme-purple-gold .simple-form-card {
    background: var(--front-panel);
    border-color: var(--front-panel-border);
}

body.front-theme-ruby-red-gold .simple-form-card p,
body.front-theme-purple-gold .simple-form-card p {
    color: var(--front-text-soft);
}

/* Input kode */
body.front-theme-ruby-red-gold .code-input-wrap,
body.front-theme-purple-gold .code-input-wrap {
    border-color: var(--front-panel-border);
    background: rgba(0,0,0,.20);
}

/* Tombol hadiah dan pemenang */
body.front-theme-ruby-red-gold .mini-action-btn,
body.front-theme-purple-gold .mini-action-btn {
    background: var(--front-mini-bg);
    border-color: var(--front-mini-border);
}

body.front-theme-ruby-red-gold .mini-action-btn:hover,
body.front-theme-purple-gold .mini-action-btn:hover {
    background: var(--front-mini-hover);
}

/* Card bagian bawah */
body.front-theme-ruby-red-gold .simple-info-card,
body.front-theme-purple-gold .simple-info-card {
    background: var(--front-card);
    border-color: var(--front-card-border);
}

body.front-theme-ruby-red-gold .simple-icon-circle,
body.front-theme-purple-gold .simple-icon-circle {
    background: var(--front-icon-bg);
}

body.front-theme-ruby-red-gold .simple-info-card p,
body.front-theme-purple-gold .simple-info-card p,
body.front-theme-ruby-red-gold .simple-info-card ol,
body.front-theme-purple-gold .simple-info-card ol {
    color: var(--front-text-soft);
}

/* Footer */
body.front-theme-ruby-red-gold .simple-footer,
body.front-theme-purple-gold .simple-footer {
    color: rgba(255,255,255,.25);
}

/* Modal */
body.front-theme-ruby-red-gold .modal-box,
body.front-theme-purple-gold .modal-box {
    background: var(--front-panel);
    border-color: var(--front-panel-border);
}

/* Background canvas roda */
body.front-theme-ruby-red-gold #wheelCanvas {
    background: #180306;
}

body.front-theme-purple-gold #wheelCanvas {
    background: #0d0315;
}

/* Gift box mengikuti ukuran Royal Blue Gold */
.wheel-holder.theme-ruby-red-gold .wheel-center-icon,
.wheel-holder.theme-purple-gold .wheel-center-icon {
    width: 105%;
    height: 105%;
}

/* Glow roda */
body.front-theme-ruby-red-gold .wheel-holder::before {
    background: radial-gradient(circle, rgba(212, 28, 43, .17), transparent 64%);
}

body.front-theme-purple-gold .wheel-holder::before {
    background: radial-gradient(circle, rgba(143, 67, 255, .17), transparent 64%);
}

/* =========================================================
   THEME TAMBAHAN FINAL
   7. MIDNIGHT TEAL GOLD
   8. OBSIDIAN BRONZE GOLD

   Catatan:
   - Tidak mengubah tema lama
   - Tidak mengubah radius roda
   - Tidak mengubah posisi lane
   - Frame dan pointer mengikuti ukuran Purple Gold
========================================================= */

/* =========================================================
   MIDNIGHT TEAL GOLD
========================================================= */

body.front-theme-midnight-teal-gold {
    --front-bg-1: #020d0d;
    --front-bg-2: #073130;
    --front-bg-3: #010707;

    --front-glow-main: rgba(29, 186, 177, .28);
    --front-glow-soft: rgba(18, 108, 105, .18);
    --front-gold-glow: rgba(244, 195, 90, .13);

    --front-panel: rgba(4, 28, 27, .84);
    --front-panel-border: rgba(42, 191, 183, .26);

    --front-card: rgba(5, 31, 30, .78);
    --front-card-border: rgba(42, 191, 183, .21);

    --front-icon-bg: rgba(29, 186, 177, .16);

    --front-mini-bg: rgba(29, 186, 177, .14);
    --front-mini-border: rgba(42, 191, 183, .34);
    --front-mini-hover: rgba(29, 186, 177, .23);

    --front-text-main: #f7ffff;
    --front-text-soft: #cce9e7;
}

/* Background halaman Midnight Teal */
body.front-theme-midnight-teal-gold .simple-bg {
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(29, 186, 177, .24),
            transparent 28%
        ),
        radial-gradient(
            circle at 18% 75%,
            rgba(18, 108, 105, .15),
            transparent 24%
        ),
        radial-gradient(
            circle at 85% 40%,
            rgba(244, 195, 90, .09),
            transparent 24%
        ),
        linear-gradient(
            180deg,
            var(--front-bg-1) 0%,
            var(--front-bg-2) 48%,
            var(--front-bg-3) 100%
        );
}

/* Garis header Midnight Teal */
body.front-theme-midnight-teal-gold .simple-header {
    border-bottom-color: var(--front-panel-border);
}

/* Form spin Midnight Teal */
body.front-theme-midnight-teal-gold .simple-form-card {
    background: var(--front-panel);
    border-color: var(--front-panel-border);
}

body.front-theme-midnight-teal-gold .simple-form-card p {
    color: var(--front-text-soft);
}

/* Input kode Midnight Teal */
body.front-theme-midnight-teal-gold .code-input-wrap {
    border-color: var(--front-panel-border);
    background: rgba(0, 0, 0, .20);
}

/* Tombol hadiah dan pemenang Midnight Teal */
body.front-theme-midnight-teal-gold .mini-action-btn {
    background: var(--front-mini-bg);
    border-color: var(--front-mini-border);
}

body.front-theme-midnight-teal-gold .mini-action-btn:hover {
    background: var(--front-mini-hover);
}

/* Card bawah Midnight Teal */
body.front-theme-midnight-teal-gold .simple-info-card {
    background: var(--front-card);
    border-color: var(--front-card-border);
}

body.front-theme-midnight-teal-gold .simple-icon-circle {
    background: var(--front-icon-bg);
}

body.front-theme-midnight-teal-gold .simple-info-card p,
body.front-theme-midnight-teal-gold .simple-info-card ol {
    color: var(--front-text-soft);
}

/* Footer Midnight Teal */
body.front-theme-midnight-teal-gold .simple-footer {
    color: rgba(255, 255, 255, .25);
}

/* Modal Midnight Teal */
body.front-theme-midnight-teal-gold .modal-box {
    background: var(--front-panel);
    border-color: var(--front-panel-border);
}

/* Canvas roda Midnight Teal */
body.front-theme-midnight-teal-gold #wheelCanvas {
    background: #031514;
}

/* Center logo Midnight Teal */
body.front-theme-midnight-teal-gold .center-gift-logo {
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(13, 75, 71, .97),
            rgba(2, 18, 17, .99) 72%
        );
}

/* Glow roda Midnight Teal */
body.front-theme-midnight-teal-gold .wheel-holder::before {
    background:
        radial-gradient(
            circle,
            rgba(29, 186, 177, .18),
            transparent 64%
        );
}


/* =========================================================
   OBSIDIAN BRONZE GOLD
========================================================= */

body.front-theme-obsidian-bronze-gold {
    --front-bg-1: #070504;
    --front-bg-2: #24150d;
    --front-bg-3: #030202;

    --front-glow-main: rgba(188, 116, 58, .26);
    --front-glow-soft: rgba(112, 65, 34, .18);
    --front-gold-glow: rgba(244, 195, 90, .13);

    --front-panel: rgba(22, 14, 10, .86);
    --front-panel-border: rgba(192, 125, 67, .27);

    --front-card: rgba(26, 16, 11, .79);
    --front-card-border: rgba(192, 125, 67, .22);

    --front-icon-bg: rgba(170, 99, 48, .17);

    --front-mini-bg: rgba(170, 99, 48, .15);
    --front-mini-border: rgba(192, 125, 67, .36);
    --front-mini-hover: rgba(170, 99, 48, .24);

    --front-text-main: #fffaf5;
    --front-text-soft: #ead8c8;
}

/* Background halaman Obsidian Bronze */
body.front-theme-obsidian-bronze-gold .simple-bg {
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(170, 99, 48, .22),
            transparent 28%
        ),
        radial-gradient(
            circle at 18% 75%,
            rgba(112, 65, 34, .15),
            transparent 24%
        ),
        radial-gradient(
            circle at 85% 40%,
            rgba(244, 195, 90, .09),
            transparent 24%
        ),
        linear-gradient(
            180deg,
            var(--front-bg-1) 0%,
            var(--front-bg-2) 48%,
            var(--front-bg-3) 100%
        );
}

/* Garis header Obsidian Bronze */
body.front-theme-obsidian-bronze-gold .simple-header {
    border-bottom-color: var(--front-panel-border);
}

/* Form spin Obsidian Bronze */
body.front-theme-obsidian-bronze-gold .simple-form-card {
    background: var(--front-panel);
    border-color: var(--front-panel-border);
}

body.front-theme-obsidian-bronze-gold .simple-form-card p {
    color: var(--front-text-soft);
}

/* Input kode Obsidian Bronze */
body.front-theme-obsidian-bronze-gold .code-input-wrap {
    border-color: var(--front-panel-border);
    background: rgba(0, 0, 0, .22);
}

/* Tombol hadiah dan pemenang Obsidian Bronze */
body.front-theme-obsidian-bronze-gold .mini-action-btn {
    background: var(--front-mini-bg);
    border-color: var(--front-mini-border);
}

body.front-theme-obsidian-bronze-gold .mini-action-btn:hover {
    background: var(--front-mini-hover);
}

/* Card bawah Obsidian Bronze */
body.front-theme-obsidian-bronze-gold .simple-info-card {
    background: var(--front-card);
    border-color: var(--front-card-border);
}

body.front-theme-obsidian-bronze-gold .simple-icon-circle {
    background: var(--front-icon-bg);
}

body.front-theme-obsidian-bronze-gold .simple-info-card p,
body.front-theme-obsidian-bronze-gold .simple-info-card ol {
    color: var(--front-text-soft);
}

/* Footer Obsidian Bronze */
body.front-theme-obsidian-bronze-gold .simple-footer {
    color: rgba(255, 255, 255, .25);
}

/* Modal Obsidian Bronze */
body.front-theme-obsidian-bronze-gold .modal-box {
    background: var(--front-panel);
    border-color: var(--front-panel-border);
}

/* Canvas roda Obsidian Bronze */
body.front-theme-obsidian-bronze-gold #wheelCanvas {
    background: #100b08;
}

/* Center logo Obsidian Bronze */
body.front-theme-obsidian-bronze-gold .center-gift-logo {
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(69, 40, 22, .97),
            rgba(12, 8, 6, .99) 72%
        );
}

/* Glow roda Obsidian Bronze */
body.front-theme-obsidian-bronze-gold .wheel-holder::before {
    background:
        radial-gradient(
            circle,
            rgba(188, 116, 58, .18),
            transparent 64%
        );
}


/* =========================================================
   UKURAN GIFT BOX TEMA BARU
   Samakan dengan Purple Gold agar presisi
========================================================= */

.wheel-holder.theme-midnight-teal-gold .wheel-center-icon,
.wheel-holder.theme-obsidian-bronze-gold .wheel-center-icon {
    width: 105%;
    height: 105%;
}


/* =========================================================
   FRAME + POINTER TEMA BARU
   Samakan persis dengan Purple Gold
========================================================= */

.wheel-holder.theme-midnight-teal-gold .wheel-frame-img,
.wheel-holder.theme-obsidian-bronze-gold .wheel-frame-img {
    inset: -5.5%;
    width: 111%;
    height: 111%;
}

.wheel-holder.theme-midnight-teal-gold .wheel-pointer-img,
.wheel-holder.theme-obsidian-bronze-gold .wheel-pointer-img {
    top: -8.8%;
    width: 18%;
}


/* =========================================================
   MOBILE TEMA BARU
========================================================= */

@media (max-width: 620px) {
    .wheel-holder.theme-midnight-teal-gold .wheel-frame-img,
    .wheel-holder.theme-obsidian-bronze-gold .wheel-frame-img {
        inset: -5.5%;
        width: 111%;
        height: 111%;
    }

    .wheel-holder.theme-midnight-teal-gold .wheel-pointer-img,
    .wheel-holder.theme-obsidian-bronze-gold .wheel-pointer-img {
        top: -8%;
        width: 17%;
    }

    .wheel-holder.theme-midnight-teal-gold .wheel-center-icon,
    .wheel-holder.theme-obsidian-bronze-gold .wheel-center-icon {
        width: 100%;
        height: 100%;
    }
}

/* =========================================================
   TOMBOL KLAIM HADIAH KE CS
   - Muncul hanya setelah member menang
   - Link diatur per domain dari panel
   - Tidak mengubah roda, frame, lane, atau logic spin
   - Warna otomatis mengikuti tema aktif
========================================================= */

.winner-claim-btn {
    position: absolute;
    left: 50%;
    top: 81%;
    z-index: 18;

    width: min(54%, 250px);
    min-height: 38px;
    padding: 8px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    transform: translate(-50%, -50%);

    border-radius: 999px;
    border: 1px solid rgba(244, 195, 90, .62);

    background:
        linear-gradient(
            180deg,
            #22c56d,
            #128148
        );

    color: #ffffff;

    font-size: clamp(9px, 1vw, 14px);
    font-weight: 950;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.25),
        0 8px 18px rgba(0,0,0,.42),
        0 0 18px rgba(32,197,107,.34);

    cursor: pointer;
    transition:
        transform .18s ease,
        filter .18s ease,
        box-shadow .18s ease;
}

.winner-claim-btn:hover {
    transform:
        translate(-50%, -50%)
        scale(1.045);

    filter: brightness(1.12);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.34),
        0 10px 22px rgba(0,0,0,.48),
        0 0 24px rgba(244,195,90,.34);
}

.winner-claim-btn:active {
    transform:
        translate(-50%, -50%)
        scale(.98);
}

.winner-claim-btn:focus-visible {
    outline:
        3px solid
        rgba(255,255,255,.72);

    outline-offset: 3px;
}

.winner-claim-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.15);

    font-size: 13px;
    line-height: 1;
}


/* =========================================================
   1. EMERALD GOLD
========================================================= */

body.front-theme-emerald-gold .winner-claim-btn {
    border-color:
        rgba(244,195,90,.70);

    background:
        linear-gradient(
            180deg,
            #28d978,
            #13884b
        );

    color: #ffffff;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.26),
        0 8px 18px rgba(0,0,0,.42),
        0 0 22px rgba(32,197,107,.46);
}


/* =========================================================
   2. BLACK GOLD
========================================================= */

body.front-theme-black-gold .winner-claim-btn {
    border-color:
        rgba(244,195,90,.82);

    background:
        linear-gradient(
            180deg,
            #332510,
            #080705
        );

    color: #ffe9a4;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        0 8px 18px rgba(0,0,0,.55),
        0 0 22px rgba(244,195,90,.34);
}


/* =========================================================
   3. WHITE GOLD
========================================================= */

body.front-theme-white-gold .winner-claim-btn {
    border-color:
        rgba(181,133,42,.72);

    background:
        linear-gradient(
            180deg,
            #fff8df,
            #e7c26b
        );

    color: #241806;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.82),
        0 8px 18px rgba(96,65,14,.22),
        0 0 20px rgba(244,195,90,.38);
}

body.front-theme-white-gold .winner-claim-icon {
    background:
        rgba(71,48,8,.10);
}


/* =========================================================
   4. ROYAL BLUE GOLD
========================================================= */

body.front-theme-royal-blue-gold .winner-claim-btn {
    border-color:
        rgba(244,195,90,.76);

    background:
        linear-gradient(
            180deg,
            #3f91ff,
            #174da7
        );

    color: #ffffff;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.28),
        0 8px 18px rgba(0,0,0,.45),
        0 0 22px rgba(55,130,255,.48);
}


/* =========================================================
   5. RUBY RED GOLD
========================================================= */

body.front-theme-ruby-red-gold .winner-claim-btn {
    border-color:
        rgba(244,195,90,.78);

    background:
        linear-gradient(
            180deg,
            #ed475a,
            #981828
        );

    color: #ffffff;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.26),
        0 8px 18px rgba(0,0,0,.46),
        0 0 22px rgba(230,68,83,.48);
}


/* =========================================================
   6. PURPLE GOLD
========================================================= */

body.front-theme-purple-gold .winner-claim-btn {
    border-color:
        rgba(244,195,90,.78);

    background:
        linear-gradient(
            180deg,
            #a45cff,
            #592299
        );

    color: #ffffff;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.28),
        0 8px 18px rgba(0,0,0,.46),
        0 0 22px rgba(154,80,255,.48);
}


/* =========================================================
   7. MIDNIGHT TEAL GOLD
========================================================= */

body.front-theme-midnight-teal-gold .winner-claim-btn {
    border-color:
        rgba(244,195,90,.78);

    background:
        linear-gradient(
            180deg,
            #2bc9c1,
            #0b6c68
        );

    color: #ffffff;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.28),
        0 8px 18px rgba(0,0,0,.46),
        0 0 22px rgba(29,186,177,.48);
}


/* =========================================================
   8. OBSIDIAN BRONZE GOLD
========================================================= */

body.front-theme-obsidian-bronze-gold .winner-claim-btn {
    border-color:
        rgba(221,165,102,.82);

    background:
        linear-gradient(
            180deg,
            #a86537,
            #4a2a17
        );

    color: #fff5e8;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.20),
        0 8px 18px rgba(0,0,0,.50),
        0 0 22px rgba(188,116,58,.48);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 620px) {
    .winner-claim-btn {
        top: 81.5%;

        width: 58%;
        min-height: 30px;

        padding:
            6px
            9px;

        gap: 5px;

        border-width: 1px;

        font-size: 8px;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.20),
            0 5px 12px rgba(0,0,0,.42),
            0 0 14px rgba(244,195,90,.24);
    }

    .winner-claim-icon {
        width: 16px;
        height: 16px;

        font-size: 10px;
    }
}


/* =========================================================
   MOBILE KECIL
========================================================= */

@media (max-width: 390px) {
    .winner-claim-btn {
        top: 82%;

        width: 61%;
        min-height: 28px;

        padding:
            5px
            7px;

        font-size: 7px;
    }

    .winner-claim-icon {
        width: 14px;
        height: 14px;

        font-size: 9px;
    }
}