/* =========================
   GLOBAL
========================= */
html,
body {
    min-height: 100%;
    background: #260026 !important;
}

body {
    min-height: 100vh;
    margin: 0;
}

/* =========================
   POPULAR GAME SIDEBAR
========================= */
.popular-sidebar {
    margin-top: 24px;
    overflow: hidden;
    background: #42144d;
    border: 1px solid rgba(196,137,255,.22);
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(0,0,0,.15);
}

.popular-sidebar-title {
    padding: 9px 12px;
    background: #6d2f7d;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .3px;
}

.popular-sidebar-list {
    display: flex;
    flex-direction: column;
}

.popular-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: background .2s ease;
}

.popular-sidebar-item:last-child {
    border-bottom: 0;
}

.popular-sidebar-item:hover {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.07);
}

.popular-sidebar-item img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: cover;
    background: #fff;
    border-radius: 7px;
}

.popular-sidebar-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.popular-sidebar-text span {
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.25;
}

.popular-sidebar-text small {
    color: rgba(255,255,255,.55);
    font-size: .68rem;
    font-weight: 400;
    line-height: 1.2;
}

.popular-desktop {
    display: block;
}

.popular-mobile {
    display: none !important;
}

/* =========================
   GAME TRUST INFO
========================= */
.game-trust-info {
    display: flex;
    align-items: center;
    margin-top: 16px;
    padding: 10px 12px;
    background: rgba(109,47,125,.35);
    border: 1px solid rgba(196,137,255,.18);
    border-radius: 8px;
    color: #fff;
}

.game-trust-item {
    flex: 1 1 33.333%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    font-size: .76rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.game-trust-item i {
    color: #e5b8ff;
    font-size: .85rem;
}

.game-trust-divider {
    width: 1px;
    height: 18px;
    flex: 0 0 1px;
    background: rgba(255,255,255,.2);
}

/* =========================
   GAME TABS
========================= */
.game-tabs {
    border-bottom: 1px solid rgba(196,137,255,.25);
}

.game-tabs .nav-item {
    margin-bottom: -1px;
}

.game-tabs .nav-link {
    padding: 10px 18px;
    color: rgba(255,255,255,.72) !important;
    background: #35103d;
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.game-tabs .nav-link:hover {
    color: #fff !important;
    background: #42144d;
}

.game-tabs .nav-link.active {
    color: #fff !important;
    background: #6d2f7d !important;
    border-color: rgba(196,137,255,.28) !important;
    border-bottom-color: #6d2f7d !important;
}

.game-tab-content {
    padding-top: 18px;
}

/* =========================
   LONG DESCRIPTION
========================= */
.game-description-long {
    padding: 20px;
    background: #42144d;
    border: 1px solid rgba(196,137,255,.22);
    border-radius: 0 10px 10px 10px;
    color: #fff;
}

.game-description-title {
    margin: 0 0 16px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.game-description-content {
    color: rgba(255,255,255,.88);
    font-size: .92rem;
    line-height: 1.75;
}

.game-description-empty {
    color: rgba(255,255,255,.55);
    font-size: .9rem;
}

/* =========================
   STEP HIGHLIGHT
========================= */
.step-box {
    position: relative;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.step-box.step-active {
    border-color: #e0b6ff !important;
    animation: stepGlow 1.8s ease-in-out infinite alternate;
}

@keyframes stepGlow {
    from {
        box-shadow:
            0 0 0 2px rgba(216,168,255,.45),
            0 0 12px rgba(190,110,255,.55),
            0 0 24px rgba(160,70,230,.3);
    }
    to {
        box-shadow:
            0 0 0 2px rgba(225,190,255,.75),
            0 0 20px rgba(200,130,255,.9),
            0 0 40px rgba(170,80,240,.55);
    }
}

/* =========================
   CONTACT & ALERT
========================= */
.form-contact-box {
    margin-bottom: 20px;
}

.custom-alert {
    position: fixed;
    top: 40%;
    left: 50%;
    z-index: 99999;
    display: none;
    width: max-content;
    max-width: 320px;
    padding: 10px 14px;
    transform: translate(-50%,-50%);
    background: #6d2f7d;
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

/* =========================
   STICKY CHECKOUT
========================= */
#stickyCheckout {
    display: block;
}

.sticky-checkout {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 45px;
    z-index: 1040;
    margin: 0;
    padding: 24px 16px 10px;
    background: #35103d;
    border-top: 1px solid rgba(196,137,255,.25);
    box-shadow: 0 -6px 20px rgba(0,0,0,.25);
}

.sticky-checkout-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.sticky-checkout-info {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0,1.5fr) minmax(0,1.3fr) minmax(120px,.7fr);
    align-items: center;
    gap: 18px;
    color: #fff;
}

.sticky-summary-group {
    min-width: 0;
}

.sticky-label {
    display: block;
    margin-bottom: 4px;
    color: rgba(255,255,255,.62);
    font-size: .72rem;
    font-weight: 500;
}

.sticky-selected-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sticky-item-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 3px;
    object-fit: cover;
    background: #fff;
    border-radius: 7px;
}

.sticky-payment-logo {
    width: 54px;
    height: 32px;
    flex: 0 0 54px;
    padding: 3px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
}

.sticky-value {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sticky-total-group {
    padding-left: 18px;
    border-left: 1px solid rgba(255,255,255,.08);
}

#stickyHarga {
    display: block;
    color: #e5b8ff;
    font-size: 1.05rem;
    font-weight: 700;
}

.sticky-empty-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 11px 16px;
    background: rgba(169,120,237,.08);
    border: 1px dashed rgba(200,156,255,.65);
    border-radius: 8px;
    color: #e9d7ff;
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
}

.sticky-empty-note i {
    color: #c89cff;
    font-size: .9rem;
}

.sticky-brand-logo {
    position: absolute;
    top: -26px;
    left: 50%;
    width: 56px;
    height: 56px;
    padding: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    overflow: hidden;
    background: #fff;
    border: 1px solid #a978ed;
    border-radius: 11px;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
}

.sticky-brand-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 9px;
}

.btn-sticky-confirm {
    min-width: 145px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg,#7f3d91,#9a58ad);
    color: #fff;
    border: 1px solid #a978ed;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn-sticky-confirm:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

.btn-sticky-confirm:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* =========================
   CONFIRM ORDER MODAL
========================= */
.confirm-modal-content {
    overflow: hidden;
    background: #35103d;
    color: #fff;
    border: 1px solid rgba(196,137,255,.25);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #42144d;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.confirm-modal-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.confirm-modal-header h5 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.confirm-modal-header small {
    color: rgba(255,255,255,.58);
    font-size: .75rem;
}

.confirm-modal-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6d2f7d;
    color: #fff;
    border-radius: 10px;
    font-size: 1rem;
}

.confirm-modal-body {
    padding: 18px;
}

.confirm-order-list {
    overflow: hidden;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
}

.confirm-order-row {
    display: grid;
    grid-template-columns: 135px 1fr;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.confirm-order-row:last-child {
    border-bottom: 0;
}

.confirm-order-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.62);
    font-size: .78rem;
}

.confirm-order-label i {
    width: 16px;
    color: #c89cff;
    text-align: center;
}

.confirm-order-value {
    color: #fff;
    font-size: .84rem;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

.confirm-order-price {
    background: rgba(169,120,237,.08);
}

.confirm-order-price .confirm-order-value {
    color: #e7c4ff;
    font-size: 1rem;
    font-weight: 800;
}

.confirm-order-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    background: rgba(169,120,237,.08);
    border: 1px dashed rgba(200,156,255,.45);
    border-radius: 8px;
    color: rgba(255,255,255,.72);
    font-size: .75rem;
    line-height: 1.4;
}

.confirm-order-note i {
    margin-top: 2px;
    color: #c89cff;
}

.confirm-modal-footer {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 10px;
    padding: 14px 18px 18px;
    border-top: 0;
}

.btn-confirm-cancel,
.btn-confirm-buy {
    padding: 10px 14px;
    color: #fff;
    border-radius: 8px;
    font-size: .85rem;
}

.btn-confirm-cancel {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    font-weight: 600;
}

.btn-confirm-cancel:hover {
    background: rgba(255,255,255,.13);
    color: #fff;
}

.btn-confirm-buy {
    background: linear-gradient(135deg,#7f3d91,#9a58ad);
    border: 1px solid #a978ed;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(0,0,0,.18);
}

.btn-confirm-buy:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(0,0,0,.25);
}

/* =========================
   FORM BOX
========================= */
.box-section {
    margin-bottom: 25px;
    padding: 20px 25px;
    background: linear-gradient(135deg,rgba(140,60,200,.25),rgba(100,0,160,.35));
    border: 1px solid rgba(180,90,255,.4);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 20px rgba(160,60,255,.08);
}

.box-section h5 {
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
}

.box-section input.form-control,
.box-section select.form-control {
    background: rgba(255,255,255,.05);
    color: #fff;
    border: 1px solid rgba(180,100,255,.3);
    border-radius: 10px;
    font-size: 1rem;
    transition: all .3s ease;
    box-shadow: inset 0 0 10px rgba(0,0,0,.2);
}

.box-section select.form-control {
    background: rgba(255,255,255,.05) !important;
    color: #fff !important;
    border: 1px solid rgba(180,100,255,.3) !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.box-section input.form-control:hover {
    border-color: rgba(200,140,255,.5);
}

.box-section input.form-control:focus,
.box-section select.form-control:focus {
    color: #fff;
    box-shadow:
        0 0 12px rgba(200,120,255,.5),
        inset 0 0 10px rgba(160,80,255,.3);
    transform: scale(1.02);
    animation: pulseGlow 2s ease-in-out infinite;
}

.box-section input.form-control:focus {
    background: rgba(120,0,200,.15);
    border-color: rgba(200,140,255,.8);
}

.box-section input.form-control::placeholder {
    color: rgba(255,255,255,.6);
    transition: color .3s ease;
}

.box-section input.form-control:focus::placeholder {
    color: rgba(255,255,255,.3);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow:
            0 0 12px rgba(200,120,255,.5),
            inset 0 0 10px rgba(160,80,255,.3);
    }
    50% {
        box-shadow:
            0 0 18px rgba(220,160,255,.7),
            inset 0 0 14px rgba(180,100,255,.4);
    }
}

#notif-id {
    opacity: 0;
    transform: translateY(-5px);
    color: #ffc107;
    font-weight: 500;
    transition: opacity .4s ease, transform .4s ease;
}

#notif-id.show {
    opacity: 1;
    transform: translateY(0);
}

#notif-id.d-none {
    display: none;
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 768px) {
    .game-detail-tabs {
        width: 58.333333% !important;
        padding-bottom: 80px;
    }

    .game-tabs {
        display: none !important;
    }

    .game-tab-content {
        padding-top: 0;
    }

    .game-tab-content > .tab-pane {
        display: block !important;
        opacity: 1 !important;
    }

    #deskripsi-game {
        margin-top: 24px;
    }

    .game-description-long {
        border-radius: 10px;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 767.98px) {
    .popular-desktop,
    .popular-mobile {
        display: none !important;
    }

    .game-tabs {
        display: flex;
        width: 100%;
    }

    .game-tabs .nav-item {
        flex: 1;
    }

    .game-tabs .nav-link {
        width: 100%;
        padding: 9px 8px;
        font-size: .82rem;
        text-align: center;
    }

    .game-tab-content {
        padding-top: 14px;
    }

    .game-description-long {
        padding: 16px;
        border-radius: 0 0 10px 10px;
    }

    .game-description-title {
        font-size: 1.05rem;
    }

    .game-description-content {
        font-size: .86rem;
        line-height: 1.7;
    }

    .form-contact-box {
        margin-bottom: 280px !important;
    }

    .custom-alert {
        top: 42%;
        width: max-content;
        min-width: 0;
        max-width: calc(100vw - 60px);
        padding: 9px 12px;
        font-size: .82rem;
    }

    .sticky-checkout {
        bottom: 45px;
        padding: 10px 14px 6px;
    }

    .sticky-brand-logo {
        display: none !important;
    }

    .sticky-checkout-inner {
        max-width: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .sticky-checkout-info {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: end;
        gap: 7px 12px;
    }

    .sticky-summary-group {
        width: 100%;
    }

    .sticky-summary-group:first-child {
        grid-column: 1 / -1;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255,255,255,.10);
    }

    .sticky-summary-group:nth-child(2) {
        grid-column: 1;
        min-width: 0;
    }

    .sticky-label {
        margin-bottom: 3px;
        font-size: .65rem;
        line-height: 1;
    }

    .sticky-selected-item {
        gap: 7px;
    }

    .sticky-item-logo {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        padding: 2px;
        border-radius: 6px;
    }

    .sticky-payment-logo {
        width: 42px;
        height: 27px;
        flex: 0 0 42px;
        padding: 2px;
        border-radius: 5px;
    }

    .sticky-value {
        overflow: visible;
        font-size: .72rem;
        line-height: 1.2;
        text-overflow: initial;
        white-space: normal;
    }

    .sticky-total-group {
        grid-column: 2;
        padding: 0;
        border: 0;
        text-align: right;
    }

    .sticky-total-group .sticky-label {
        text-align: right;
    }

    #stickyHarga {
        margin: 0;
        font-size: .78rem;
        line-height: 27px;
        white-space: nowrap;
    }

    .btn-sticky-confirm {
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 9px 14px;
        font-size: .8rem;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 14px;
    }

    .confirm-modal-header {
        padding: 15px 16px;
    }

    .confirm-modal-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .confirm-modal-body {
        padding: 14px;
    }

    .confirm-order-row {
        grid-template-columns: 110px 1fr;
        padding: 10px 11px;
    }

    .confirm-order-label {
        font-size: .72rem;
    }

    .confirm-order-value {
        font-size: .78rem;
    }

    .confirm-modal-footer {
        padding: 12px 14px 15px;
    }

    .box-section {
        padding: 15px 18px;
    }
}