/* ============================================================
   style-topupwar.css — versi dirapikan
   Perubahan utama: tombol aksi melayang (.war-quick-actions-top)
   diubah jadi satu dock vertikal yang pas di dalam thumbnail,
   tidak lagi meluber ke bawah gambar.
   ============================================================ */

.war-float-mini.open,
.war-join-overlay.open,
.war-modal-overlay.open,
.war-outcome-overlay.open,
.war-status-overlay.open {
    pointer-events: all;
    opacity: 1;
}
.event-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: 0.25s fadePopup;
}
.event-popup-box {
    position: relative;
    width: 100%;
    max-width: 900px;
    animation: 0.28s popupScale;
}
.event-popup-image {
    width: 100%;
    border-radius: 22px;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.event-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #fff;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}
.topup-war-page,
.war-modal-overlay.center-modal {
    --maroonA: #3b0f10;
    --maroonB: #8a1c20;
    --goldA: #ffe082;
    --goldB: #ffca28;
    --goldInk: #6d4800;
    --white: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.75);
    --glass: rgba(0, 0, 0, 0.14);
    --glass2: rgba(0, 0, 0, 0.18);
    --border: rgba(255, 255, 255, 0.18);
    --border2: rgba(255, 255, 255, 0.12);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    --shadowSm: 0 10px 22px rgba(0, 0, 0, 0.18);
}
.war-hero-thumbnail,
.war-ref-hero {
    border-radius: 10px;
    overflow: hidden;
}
@keyframes fadePopup {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes popupScale {
    from {
        transform: scale(0.88);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
main {
    background: linear-gradient(
        180deg,
        #ffe899 0,
        #ffebae 50%,
        #fff5cc 100%
    ) !important;
    min-height: 100vh !important;
}
.app-powered-footer,
.app-powered-footer a,
.app-powered-footer p,
.app-powered-footer span {
    font-size: 12px;
    color: #535353 !important;
}
.topup-war-page {
    min-height: 100vh;
    color: #fff;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 64px + 8px);
}
.floating-stars-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.fstar {
    position: absolute;
    color: #ffd75a;
    animation: ease-in-out infinite starBob;
}
@keyframes starBob {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.55;
    }
    50% {
        transform: translateY(-14px);
        opacity: 0.9;
    }
}
.war-hero-thumbnail {
    margin-bottom: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.war-hero-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}
.war-ref-hero {
    position: relative;
    padding: 18px 14px 16px;
}
.war-ref-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.war-ref-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd83d 0, #f6ae00 100%);
    color: #78120a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 3px 0 rgba(120, 55, 0, 0.25);
}
.war-ref-title {
    margin: 10px 0 28px;
    color: #fff;
    font-size: 1.58rem;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.18), 0 5px 12px rgba(0, 0, 0, 0.55);
}
.war-ref-title.active-title {
    margin-bottom: 12px;
    color: rgba(92, 21, 17, 0.74);
}
.war-ref-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 410px;
    margin: 0 auto;
}
.war-ref-cd-box {
    min-height: 80px;
    border-radius: 9px;
    border: 1.5px solid rgba(238, 198, 123, 0.68);
    background: rgba(92, 21, 17, 0.74);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.22);
}
.war-ref-cd-box span {
    display: block;
    color: #fff7df;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    font-family: "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
    letter-spacing: -0.08em;
    text-shadow: 0 0 8px rgba(255, 220, 130, 0.86),
        0 3px 4px rgba(0, 0, 0, 0.45);
}
.war-ref-cd-box small {
    margin-top: 6px;
    color: #fff;
    font-size: 0.67rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.war-ref-start-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 5px 18px;
    min-height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #1a0505;
    font-size: 0.72rem;
    font-weight: 500;
}
.war-ref-live-box {
    max-width: 320px;
    margin: 0 auto;
    padding: 18px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(238, 198, 123, 0.68);
    background: rgba(83, 20, 16, 0.78);
    color: #fff;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.war-ref-live-box.muted {
    opacity: 0.65;
}
.war-ref-star {
    position: absolute;
    z-index: 2;
    color: #ffeb4a;
    font-size: 1.65rem;
    filter: drop-shadow(0 0 5px rgba(255, 235, 74, 0.75))
        drop-shadow(0 3px 3px rgba(0, 0, 0, 0.25));
    animation: 2.6s ease-in-out infinite warRefStarBob;
}
.war-active-status-badge,
.war-winner-quota-badge {
    position: absolute;
    top: 0;
    z-index: 4;
    padding: 5px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7bb96b, #34783d);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    color: #fff;
}
.war-ref-star.star-left {
    left: 10.5%;
    top: 22%;
}
.war-ref-star.star-right {
    right: 10.5%;
    top: 22%;
    animation-delay: 0.35s;
}
.war-ref-star.star-bottom-left {
    left: 21%;
    bottom: 12%;
    animation-delay: 0.65s;
}
.war-ref-star.star-bottom-right {
    right: 21%;
    bottom: 12%;
    animation-delay: 0.95s;
}
@keyframes warRefStarBob {
    0%,
    100% {
        transform: translateY(0) rotate(-8deg) scale(1);
    }
    50% {
        transform: translateY(-7px) rotate(8deg) scale(1.08);
    }
}
.war-active-status-badge {
    left: 0;
    transform: rotate(-18deg);
}
.war-winner-quota-badge {
    right: 0;
}
.war-active-info-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr 0.75fr 1fr;
    gap: 8px;
    margin: 12px auto 0;
}
.war-active-info-box {
    min-height: 62px;
    padding: 10px 6px 8px;
    border-radius: 9px;
    border: 1.5px solid rgba(238, 198, 123, 0.68);
    background: rgba(92, 21, 17, 0.74);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.16);
}
.war-active-info-label {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 8px;
}
.war-active-info-value {
    color: #ffd72f;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.15;
}
.war-active-period {
    margin-top: 14px;
    text-transform: uppercase;
    font-size: 0.68rem;
}
.war-active-action {
    margin: 12px auto;
}
.war-active-ambil-btn,
.war-ambil-btn,
.war-join-overlay .modal-body .war-ambil-btn,
.war-status-overlay .modal-body .war-ambil-btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 13px 18px;
    background: linear-gradient(180deg, #ffd93b 0, #f5a900 100%);
    color: #7b210b;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 5px 0 rgba(118, 54, 0, 0.35), 0 10px 18px rgba(0, 0, 0, 0.22);
}
.war-active-ambil-btn:active,
.war-ambil-btn:active {
    transform: translateY(2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 3px 0 rgba(118, 54, 0, 0.35), 0 6px 12px rgba(0, 0, 0, 0.2);
}
.war-ambil-btn:disabled,
.war-chat-send:disabled {
    opacity: 0.55;
}
.dalam-antrian-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(92, 21, 17, 0.74);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 900;
    color: #ffd72f;
}
.war-desc-mini {
    margin: 4px auto 12px;
    text-align: center;
    color: var(--goldInk);
    font-size: 0.82rem;
    line-height: 1.45;
}
.war-quick-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0 14px;
}
.war-action-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(180deg, #ffd319 0, #e5a600 100%);
    color: #64110b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 5px 0 rgba(80, 12, 8, 0.22), 0 8px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.12s, box-shadow 0.12s;
}
.war-action-circle:active {
    transform: translateY(2px) scale(0.97);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 3px 0 rgba(80, 12, 8, 0.22), 0 6px 10px rgba(0, 0, 0, 0.22);
}
.war-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 58px;
}
.war-action-label {
    color: var(--goldInk);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}
.war-live-room {
    background: rgba(90, 10, 10, 0.52);
    border: 1px solid rgba(255, 215, 90, 0.18);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.war-live-room-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.war-live-room-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 900;
    color: #fff;
}
.war-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f44;
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    animation: 1.35s ease-in-out infinite livePulse;
}
@keyframes livePulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.65);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 68, 68, 0);
    }
}
.war-live-room-meta {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.war-chat-feed {
    min-height: 260px;
    max-height: 360px;
    overflow-y: auto;
    padding: 12px 14px;
}
.war-chat-empty {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    line-height: 1.45;
}
.war-chat-item {
    display: flex;
    gap: 9px;
    margin-bottom: 10px;
}
.war-chat-bubble {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 8px 10px;
}
.war-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 3px;
}
.war-chat-time {
    flex-shrink: 0;
}
.war-chat-system {
    justify-content: center;
}
.war-chat-system .war-chat-bubble {
    flex: 0 1 auto;
    background: rgba(255, 215, 90, 0.12);
    border-color: rgba(255, 215, 90, 0.25);
    text-align: center;
    color: #ffd75a;
    font-size: 0.76rem;
    font-weight: 800;
}
.war-chat-input-wrap {
    display: flex;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.war-chat-send {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffd93b 0, #f5a900 100%);
    color: #7b210b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 0 rgba(118, 54, 0, 0.35);
    flex-shrink: 0;
}
.slot-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.slot-item.border-warning {
    border-color: rgba(255, 215, 0, 0.5);
}
.slot-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, gold, orange);
    border: 1px solid rgba(255, 215, 90, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a1800;
    font-weight: 900;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.status-badge,
.timer-pill {
    padding: 4px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.slot-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
}
.slot-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}
.timer-pill {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
}
.status-badge {
    font-size: 0.62rem;
    font-weight: 800;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.status-active {
    background: rgba(67, 160, 71, 0.2);
    color: #b9f6ca;
    border-color: rgba(67, 160, 71, 0.4);
}
.status-closed {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
}
.status-default {
    background: rgba(255, 193, 7, 0.13);
    color: #ffe082;
    border-color: rgba(255, 193, 7, 0.3);
}
.war-badge {
    background: linear-gradient(45deg, gold, orange);
    color: #7a2a26;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 999px;
    display: inline-block;
}
.war-gold {
    color: #1a0505 !important;
}
.war-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}
.war-value {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffd75a;
}
.war-subtitle {
    font-size: 0.77rem;
    color: rgba(255, 255, 255, 0.68);
}
.countdown-text {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}
.empty-state {
    text-align: center;
    color: var(--goldInk);
    font-size: 0.8rem;
    padding: 28px 12px;
}
.cara-bermain-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cara-bermain-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    font-size: 0.82rem;
    color: #1a0505;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.45;
}
.cara-bermain-list li:last-child {
    border-bottom: none;
}
.cb-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, gold, orange);
    color: #7a1800;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
#msisdnAlertModal,
#quickConfirmModal,
#quickMsisdnModal {
    z-index: 19999 !important;
}
.war-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.war-modal-sheet {
    width: 100%;
    background: linear-gradient(160deg, #8b1e1e 0, #5c0808 100%);
    border-radius: 24px 24px 0 0;
    border: 1px solid rgba(255, 215, 90, 0.18);
    border-bottom: none;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}
.war-modal-overlay.open .war-modal-sheet {
    transform: translateY(0);
}
.war-modal-handle {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
}
.war-modal-header {
    padding: 12px 16px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}
.war-modal-title {
    font-size: 0.95rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.war-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.war-modal-body {
    overflow-y: auto;
    padding: 12px 16px 32px;
    flex: 1;
}
.war-modal-viewers {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 4px;
}
.war-join-overlay,
.war-outcome-overlay,
.war-status-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.war-join-card,
.war-outcome-card,
.war-status-card {
    max-width: 300px;
    transform: scale(0.88);
    transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
    text-align: center;
}
.war-join-card,
.war-status-card {
    background: linear-gradient(160deg, #8b1e1e 0, #5c0808 100%);
    border-radius: 22px;
    border: 1px solid rgba(255, 215, 90, 0.25);
    padding: 24px 20px 20px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.war-join-overlay.center-modal.open .modal-content,
.war-join-overlay.open .war-join-card,
.war-modal-overlay.center-modal.open .modal-content,
.war-outcome-overlay.open .war-outcome-card,
.war-status-overlay.center-modal.open .modal-content,
.war-status-overlay.open .war-status-card {
    transform: scale(1);
}
.war-join-card-close,
.war-status-card-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(40, 40, 40, 0.92);
    border: 2px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.war-status-timer-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    margin: 10px 0 0;
}
.war-outcome-card {
    background: #fff;
    border-radius: 22px;
    padding: 32px 24px 24px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.war-outcome-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 16px;
}
.war-outcome-icon.success {
    background: #e8f5e9;
    color: #388e3c;
}
.war-outcome-icon.failed {
    background: #fde8e8;
    color: #e57373;
}
.war-outcome-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.war-outcome-desc {
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 20px;
}
.war-outcome-btn {
    border: none;
    border-radius: 12px;
    padding: 11px 20px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    min-width: 90px;
}
.war-outcome-btn.primary {
    background: linear-gradient(135deg, #c62828, #8b0000);
    color: #fff;
}
.war-outcome-btn.secondary {
    background: #f0f0f0;
    color: #333;
}
.war-outcome-btn.success-primary {
    background: linear-gradient(135deg, #43a047, #1b5e20);
    color: #fff;
}
.war-float-mini {
    position: fixed;
    bottom: 90px;
    right: 16px;
    background: linear-gradient(160deg, #3d0a0a 0, #1a0404 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 90, 0.45);
    padding: 12px 14px;
    z-index: 8999;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
    text-align: center;
    min-width: 130px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8) translateY(16px);
    transition: opacity 0.25s, transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.war-float-mini.open {
    transform: scale(1) translateY(0);
}
#upgrade-modal .modal-body .upg-buy-btn:active,
.war-upgrade-btn:active {
    transform: translateY(1px);
}
.war-float-mini-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2px;
}
.war-float-mini-num {
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffd75a;
    line-height: 1.1;
    margin-bottom: 8px;
}
.war-float-mini-btn {
    background: linear-gradient(135deg, gold, orange);
    color: #7a1800;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
    width: 100%;
}
@media (max-width: 420px) {
    .war-hero-thumbnail {
        margin-bottom: 8px;
    }
    .war-ref-hero {
        padding: 17px 12px 15px;
    }
    .war-ref-title {
        font-size: 1.36rem;
        margin-bottom: 25px;
    }
    .war-ref-title.active-title {
        margin-bottom: 12px;
    }
    .war-ref-countdown {
        gap: 8px;
    }
    .war-ref-cd-box {
        min-height: 72px;
    }
    .war-ref-cd-box span {
        font-size: 1.65rem;
    }
    .war-ref-cd-box small {
        font-size: 0.58rem;
    }
    .war-ref-start-text {
        margin-top: 28px;
        font-size: 0.68rem;
        padding-inline: 14px;
    }
    .war-active-info-grid {
        gap: 7px;
    }
    .war-active-info-box {
        min-height: 58px;
        padding: 9px 4px 7px;
    }
    .war-active-info-label {
        font-size: 0.7rem;
        margin-bottom: 7px;
    }
    .war-active-info-value {
        font-size: 0.63rem;
    }
    .war-active-status-badge {
        left: 14px;
        top: 72px;
        font-size: 0.6rem;
        padding: 4px 15px;
    }
    .war-action-circle {
        width: 48px;
        height: 48px;
        font-size: 1.08rem;
    }
    .war-quick-actions {
        gap: 10px;
    }
    .war-chat-feed {
        min-height: 250px;
        max-height: 340px;
    }
}
.war-chat-row,
.war-join-overlay .modal-body > div:first-child,
.war-join-overlay .modal-body > div:nth-child(3),
.war-join-overlay .modal-body > div:nth-child(4),
.war-status-overlay .modal-body > div:first-child,
.war-status-overlay .modal-body > div:nth-child(3),
.war-status-overlay .modal-body > div:nth-child(4) {
    margin-bottom: 12px;
}
.war-chatroom {
    margin-top: 12px;
    background: linear-gradient(
        180deg,
        rgba(124, 92, 63, 0.94) 0,
        rgba(146, 111, 79, 0.95) 100%
    );
    border: 1px solid rgba(255, 228, 160, 0.2);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(85, 44, 18, 0.24);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.war-chat-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(88, 58, 34, 0.34);
    border-bottom: 1px solid rgba(255, 239, 210, 0.1);
}
.war-chat-title {
    font-size: 0.92rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
}
.war-board-title i,
.war-chat-title i {
    color: #ffd75a;
}
.war-chat-subtitle {
    font-size: 0.68rem;
    color: rgba(255, 245, 226, 0.72);
    margin-top: 2px;
}
.war-chat-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.65rem;
    font-weight: 900;
    color: #eaffd9;
    background: rgba(84, 182, 64, 0.22);
    border: 1px solid rgba(122, 223, 101, 0.42);
}
.war-chat-live-pill i {
    font-size: 0.42rem;
}
.war-chat-body {
    height: 310px;
    overflow-y: auto;
    padding: 14px 14px 10px;
    background: rgba(147, 114, 80, 0.22);
}
.war-chat-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.war-chat-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd93b, #f5a900);
    color: #74180b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}
.war-chat-bubble {
    min-width: 0;
    max-width: calc(100% - 38px);
}
.war-chat-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.war-chat-name {
    font-size: 0.72rem;
    font-weight: 900;
    color: #ffd75a;
}
.war-chat-time {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.38);
}
.war-chat-text {
    word-break: break-word;
    display: inline-block;
    border-radius: 0 12px 12px;
    padding: 9px 11px;
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 245, 226, 0.08);
}
.war-chat-row.system .war-chat-avatar {
    background: rgba(255, 215, 90, 0.14);
    color: #ffd75a;
    border: 1px solid rgba(255, 215, 90, 0.25);
}
.war-chat-row.admin .war-chat-avatar {
    background: radial-gradient(
            circle at 30% 28%,
            rgba(255, 241, 178, 0.92),
            rgba(255, 241, 178, 0) 46%
        ),
        linear-gradient(135deg, #8f1d20 0, #5f120f 55%, #f0b62f 100%);
    color: #fff7dc;
    border: 2px solid rgba(255, 223, 120, 0.98);
    overflow: visible;
    position: relative;
    box-shadow: 0 0 0 2px rgba(111, 31, 20, 0.32),
        0 8px 18px rgba(78, 16, 10, 0.28);
}
.war-chat-row.admin .war-chat-name {
    color: #ffe7a0;
    text-shadow: 0 1px 0 rgba(73, 15, 10, 0.22);
}
.war-chat-row.admin .war-chat-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.war-chat-row.admin .war-chat-text {
    background: linear-gradient(
        180deg,
        rgba(129, 92, 58, 0.34) 0,
        rgba(108, 76, 49, 0.42) 100%
    );
    border: 1px solid rgba(255, 214, 120, 0.32);
    color: #fff7ef;
    box-shadow: inset 4px 0 0 #f2be43, 0 6px 14px rgba(74, 32, 18, 0.14);
}
.war-chat-admin-badge {
    display: none;
}
.war-chat-official-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: #d93232;
    border-radius: 3px;
    flex-shrink: 0;
}
.war-chat-form,
.war-chat-popup-host {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: calc(480px - 24px);
    display: flex;
    position: fixed;
}
.war-chat-official-badge svg {
    display: block;
}
.war-chat-form {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 200;
    padding: 10px;
    gap: 8px;
    align-items: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background: rgba(88, 58, 34, 0.34);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.war-chat-popup-host {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 68px);
    z-index: 201;
    flex-direction: column-reverse;
    gap: 6px;
    pointer-events: none;
}
.war-chat-popup {
    background: rgba(59, 15, 16, 0.95);
    border: 1px solid rgba(255, 215, 90, 0.35);
    border-radius: 12px;
    padding: 7px 12px;
    color: rgba(255, 235, 180, 0.95);
    font-size: 0.72rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: 0.3s warPopupIn;
}
.war-chat-popup::before,
.war-chat-row.system .war-chat-text::before {
    content: "LIVE";
    flex-shrink: 0;
    padding: 2px 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd93b 0, #f5a900 100%);
    color: #74180b;
    font-size: 0.54rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}
@keyframes warPopupIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.war-chat-input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 10px 13px;
    background: rgba(147, 114, 80, 0.22);
    color: #fff;
    font-size: 0.82rem;
    outline: 0;
}
.war-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}
.war-chat-send-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffd93b 0, #f5a900 100%);
    color: #74180b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 0 rgba(118, 54, 0, 0.35);
}
.war-chat-send-btn:disabled {
    opacity: 0.6;
}
.war-chat-login-note {
    padding: 12px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.2);
}
.war-chat-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.war-chat-row.admin .war-chat-avatar-img {
    border: 2px solid rgba(255, 244, 216, 0.92);
    box-shadow: 0 0 0 2px rgba(111, 31, 20, 0.2);
}
.war-chat-row.system {
    justify-content: center;
    align-items: center;
    margin: 7px 0 9px;
    gap: 0;
}
.war-chat-row.system .war-chat-avatar,
.war-chat-row.system .war-chat-meta {
    display: none !important;
}
.war-chat-row.system .war-chat-bubble {
    flex: 0 1 auto;
    max-width: 94%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: 0 0;
    text-align: center;
}
.war-chat-row.system .war-chat-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    color: rgba(255, 235, 180, 0.95);
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.25;
    box-shadow: none;
}
.war-join-overlay.center-modal .modal-content,
.war-modal-overlay.center-modal .modal-content,
.war-status-overlay.center-modal .modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    transform: scale(0.88);
    transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
    width: 100%;
}
.pro-badge {
    height: 20px;
}
#upgrade-modal .modal-body .upg-thumb img,
.war-hero-compact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.war-member-only-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.war-member-only-badge,
.war-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}
.war-member-only-badge {
    padding: 5px 13px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 90, 0.35);
    color: #ffd72f;
    font-weight: 800;
}
.war-upgrade-btn {
    padding: 5px 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(180deg, #ffd93b 0, #f5a900 100%);
    color: #7b210b;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 3px 0 rgba(118, 54, 0, 0.3);
    cursor: pointer;
}
.war-upgrade-btn:active {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 1px 0 rgba(118, 54, 0, 0.3);
}
.war-ambil-blocked {
    width: 100%;
    border-radius: 12px;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #1a0505;
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: not-allowed;
}
.war-ambil-blocked i {
    font-size: 1rem;
    flex-shrink: 0;
    color: var(--maroonB);
}
#upgrade-modal .modal-body .upg-card {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(109, 72, 0, 0.15);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
#upgrade-modal .modal-body .upg-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(109, 72, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
#upgrade-modal .modal-body .upg-name {
    font-size: 0.84rem;
    font-weight: 800;
    color: #1a0505;
    line-height: 1.2;
    margin-bottom: 3px;
}
#upgrade-modal .modal-body .upg-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a0505;
}
#upgrade-modal .modal-body .upg-buy-btn {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    padding: 7px 16px;
    background: linear-gradient(180deg, #ffd93b 0, #f5a900 100%);
    color: #7b210b;
    font-size: 0.72rem;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 3px 0 rgba(118, 54, 0, 0.28);
    cursor: pointer;
}
.war-modal-overlay.center-modal {
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s, visibility 0.25s;
}
.war-modal-overlay.center-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.war-modal-overlay.center-modal .modal-content {
    margin: 20px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 90, 0.25);
    background: 0 0;
    pointer-events: auto;
}
.modal-content {
    display: flex;
    flex-direction: column;
}
.war-join-overlay .modal-header,
.war-modal-overlay.center-modal .modal-header,
.war-status-overlay .modal-header {
    border: 0;
    background: linear-gradient(160deg, #8b1e1e 0, #5c0808 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 14px 16px;
    position: relative;
    flex-shrink: 0;
}
.war-join-overlay .modal-header::after,
.war-modal-overlay.center-modal .modal-header::after,
.war-status-overlay .modal-header::after {
    content: "";
    position: absolute;
    inset: -40px;
    background: radial-gradient(
            circle at 15% 0,
            rgba(255, 255, 255, 0.18),
            transparent 55%
        ),
        radial-gradient(
            circle at 85% 0,
            rgba(255, 215, 130, 0.18),
            transparent 60%
        );
    pointer-events: none;
    opacity: 0.9;
}
.war-join-overlay .modal-header > *,
.war-modal-overlay.center-modal .modal-header > *,
.war-stage,
.war-status-overlay .modal-header > * {
    position: relative;
    z-index: 1;
}
.war-modal-overlay.center-modal .modal-body {
    background: linear-gradient(135deg, #fffdf5 0, #fff4d6 100%) !important;
    color: #6d4800 !important;
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    max-height: 60vh;
}
.war-join-overlay .modal-title,
.war-modal-overlay.center-modal .modal-header .modal-title,
.war-status-overlay .modal-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.war-join-overlay .btn-close,
.war-modal-overlay.center-modal .btn-close,
.war-status-overlay .btn-close {
    filter: invert(1);
    opacity: 0.9;
}
.war-modal-overlay.center-modal .modal-body .slot-item {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #6d4800;
}
.war-modal-overlay.center-modal .modal-body .slot-item.border-warning {
    border-color: rgba(255, 193, 7, 0.4);
    background: rgba(255, 193, 7, 0.08);
}
.war-modal-overlay.center-modal .modal-body .slot-title {
    color: #6d4800;
}
.war-modal-overlay.center-modal .modal-body .slot-desc {
    color: rgba(109, 72, 0, 0.65);
}
.war-join-overlay .modal-body .status-badge,
.war-modal-overlay.center-modal .modal-body .status-badge,
.war-status-overlay .modal-body .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    border: 1px solid;
}
.war-join-overlay .modal-body .status-active,
.war-join-overlay .modal-body .status-success,
.war-modal-overlay.center-modal .modal-body .status-active,
.war-modal-overlay.center-modal .modal-body .status-success,
.war-status-overlay .modal-body .status-active,
.war-status-overlay .modal-body .status-success {
    background: rgba(67, 160, 71, 0.12);
    color: #2e7d32;
    border-color: rgba(67, 160, 71, 0.3);
}
.war-join-overlay .modal-body .status-closed,
.war-join-overlay .modal-body .status-failed,
.war-modal-overlay.center-modal .modal-body .status-closed,
.war-modal-overlay.center-modal .modal-body .status-failed,
.war-status-overlay .modal-body .status-closed,
.war-status-overlay .modal-body .status-failed {
    background: rgba(200, 40, 40, 0.1);
    color: #c62828;
    border-color: rgba(200, 40, 40, 0.25);
}
.war-join-overlay .modal-body .status-default,
.war-modal-overlay.center-modal .modal-body .status-default,
.war-status-overlay .modal-body .status-default {
    background: rgba(255, 193, 7, 0.1);
    color: #f57f17;
    border-color: rgba(255, 193, 7, 0.25);
}
.war-modal-overlay.center-modal .modal-body .timer-pill {
    background: rgba(0, 0, 0, 0.08);
    color: #6d4800;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.war-modal-overlay.center-modal .modal-body .empty-state {
    color: rgba(109, 72, 0, 0.45);
}
.war-join-overlay,
.war-status-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.war-join-overlay.open,
.war-status-overlay.open {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}
.war-join-overlay.center-modal .modal-content,
.war-status-overlay.center-modal .modal-content {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 90, 0.25);
    background: 0 0;
    display: flex;
    flex-direction: column;
}
.war-join-overlay .modal-body,
.war-status-overlay .modal-body {
    background: linear-gradient(135deg, #fffdf5 0, #fff4d6 100%);
    color: #6d4800;
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    max-height: 60vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.status-reopen-btn,
.war-status-action-pill {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.war-join-overlay .modal-body > div:nth-child(2),
.war-status-overlay .modal-body > div:nth-child(2) {
    margin-bottom: 8px;
}
.war-join-overlay .modal-body form,
.war-status-overlay .modal-body form {
    margin-top: 0;
    width: 100%;
}
.war-join-overlay .modal-body .status-processing,
.war-modal-overlay.center-modal .modal-body .status-processing,
.war-status-overlay .modal-body .status-processing {
    background: rgba(255, 152, 0, 0.12);
    color: #ef6c00;
    border-color: rgba(255, 152, 0, 0.28);
}
.war-join-overlay .modal-body .status-expired,
.war-modal-overlay.center-modal .modal-body .status-expired,
.war-status-overlay .modal-body .status-expired {
    background: rgba(139, 79, 24, 0.1);
    color: #8b4f18;
    border-color: rgba(139, 79, 24, 0.22);
}
.war-join-overlay .modal-body .status-payment-expired,
.war-modal-overlay.center-modal .modal-body .status-payment-expired,
.war-status-overlay .modal-body .status-payment-expired {
    background: rgba(255, 152, 0, 0.12);
    color: #8a4200;
    border-color: rgba(255, 152, 0, 0.28);
}
.war-status-action-pill {
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 28px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 12px 26px rgba(80, 45, 0, 0.12);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.war-status-action-pill:active {
    transform: translateY(1px) scale(0.99);
}
.war-status-action-pill .status-detail-text {
    margin-left: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    opacity: 0.78;
}
.war-status-action-pill i {
    font-size: 0.98rem;
}
.war-status-action-pill.status-default {
    background: rgba(255, 255, 255, 0.52) !important;
    color: #7a4a12 !important;
    border: 1px solid rgba(122, 74, 18, 0.16) !important;
}
.war-status-action-pill.status-active {
    background: linear-gradient(135deg, #fff2a8 0, #ffd84d 100%) !important;
    color: #7a2400 !important;
    border: 1px solid rgba(122, 36, 0, 0.18) !important;
    box-shadow: 0 12px 28px rgba(255, 184, 0, 0.28);
}
.war-status-action-pill.status-active .status-detail-text,
.war-status-action-pill.status-active i {
    color: #7a2400 !important;
}
.war-status-action-pill.status-processing {
    background: linear-gradient(135deg, #ffe0a3 0, #ffb84d 100%) !important;
    color: #713500 !important;
    border: 1px solid rgba(113, 53, 0, 0.2) !important;
}
.war-status-action-pill.status-processing .status-detail-text,
.war-status-action-pill.status-processing i {
    color: #713500 !important;
}
.war-status-action-pill.status-expired {
    background: rgba(255, 255, 255, 0.5) !important;
    color: #8b4f18 !important;
    border: 1px solid rgba(139, 79, 24, 0.18) !important;
    box-shadow: none !important;
}
.war-status-action-pill.status-expired .status-detail-text,
.war-status-action-pill.status-expired i {
    color: #8b4f18 !important;
}
.war-status-action-pill.status-payment-expired {
    background: linear-gradient(135deg, #ffe6b3 0, #ffc45c 100%) !important;
    color: #8a4200 !important;
    border: 1px solid rgba(138, 66, 0, 0.22) !important;
}
.war-status-action-pill.status-payment-expired .status-detail-text,
.war-status-action-pill.status-payment-expired i {
    color: #8a4200 !important;
}
.war-status-action-pill.status-failed {
    background: linear-gradient(135deg, #ffd6d6 0, #ff9b9b 100%) !important;
    color: #8f1111 !important;
    border: 1px solid rgba(143, 17, 17, 0.2) !important;
}
.war-status-action-pill.status-failed .status-detail-text,
.war-status-action-pill.status-failed i {
    color: #8f1111 !important;
}
.war-status-action-pill.status-success {
    background: linear-gradient(135deg, #dbffd9 0, #8ce889 100%) !important;
    color: #145c19 !important;
    border: 1px solid rgba(20, 92, 25, 0.2) !important;
}
.war-status-action-pill.status-success .status-detail-text,
.war-status-action-pill.status-success i {
    color: #145c19 !important;
}
.status-reopen-btn {
    border: 0;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}
.status-reopen-btn small {
    font-size: 0.62rem;
    font-weight: 800;
    opacity: 0.75;
    margin-left: 2px;
}
.status-reopen-btn.status-active {
    box-shadow: 0 0 0 2px rgba(255, 215, 90, 0.18),
        0 10px 24px rgba(255, 153, 68, 0.18);
}
.status-reopen-btn.status-closed {
    opacity: 0.92;
    filter: grayscale(0.1);
}
.war-hero-compact {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    max-height: 260px;
}
.war-hero-compact-img {
    max-height: 260px;
    display: block;
}
.war-hero-compact-fallback {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #8b1e1e 0, #5c0808 100%);
    color: #ffd75a;
    font-size: 2.6rem;
}
.war-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 12px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 28%,
        rgba(34, 8, 8, 0.84) 100%
    );
}
.war-hero-countdown {
    text-align: center;
}
.war-ref-countdown-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    max-width: 340px;
    margin: 0 auto;
}
.war-ref-countdown-compact .war-ref-cd-box {
    min-height: 54px;
    border-radius: 10px;
    background: rgba(59, 15, 16, 0.62);
    border: 1px solid rgba(238, 198, 123, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.war-ref-countdown-compact .war-ref-cd-box span {
    font-size: 1.4rem;
}
.war-ref-countdown-compact .war-ref-cd-box small {
    margin-top: 3px;
    font-size: 0.54rem;
}
.war-hero-start-text {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 5px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 215, 90, 0.3);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}
.war-quick-actions-mini {
    gap: 18px;
    margin: 4px 0 14px;
}
.war-active-head {
    background: rgba(90, 10, 10, 0.42);
    border: 1px solid rgba(255, 215, 90, 0.18);
    border-radius: 18px;
    padding: 14px 12px 12px;
    margin-bottom: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}
.war-active-head .war-active-info-grid,
.war-desc-active,
.war-stage-upcoming .war-hero-compact {
    margin-top: 0;
}
.war-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.war-board-single {
    grid-template-columns: 1fr;
}
.war-board-panel {
    background: linear-gradient(
        180deg,
        rgba(124, 92, 63, 0.92) 0,
        rgba(108, 76, 49, 0.94) 100%
    );
    border: 1px solid rgba(255, 228, 160, 0.2);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 28px rgba(85, 44, 18, 0.22);
}
.war-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 12px;
    background: rgba(88, 58, 34, 0.4);
    border-bottom: 1px solid rgba(255, 239, 210, 0.12);
}
.war-board-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 900;
    color: #fff;
}
.war-board-count {
    font-size: 0.6rem;
    font-weight: 800;
    color: #fff7df;
    background: rgba(0, 0, 0, 0.25);
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.war-board-body {
    padding: 10px;
    min-height: 150px;
    max-height: 320px;
    overflow-y: auto;
}
.war-board-body .slot-item {
    margin-bottom: 8px;
    padding: 8px 9px;
    gap: 8px;
}
.war-board-body .slot-item:last-child {
    margin-bottom: 0;
}
.war-board-body .slot-number {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
}
.war-board-body .slot-title {
    font-size: 0.76rem;
}
.war-board-body .slot-desc {
    font-size: 0.6rem;
}
.war-board-body .status-badge {
    font-size: 0.52rem;
    padding: 3px 7px;
}
.war-board-body .timer-pill {
    font-size: 0.6rem;
    padding: 3px 7px;
}
.war-quick-actions-secondary {
    margin: 2px 0 14px;
}
.topup-war-page .container {
    max-width: 480px !important;
}

/* ===== Tombol aksi melayang di atas thumbnail (dock vertikal rapi) ===== */
.war-quick-actions-top {
    position: absolute;
    top: 50%;
    right: 10px;
    left: auto;
    transform: translateY(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 6px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
    pointer-events: auto;
}
.war-quick-actions-top .war-action-item {
    min-width: auto;
    gap: 3px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}
.war-quick-actions-top .war-action-circle {
    width: 38px;
    height: 38px;
    font-size: 0.92rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 3px 0 rgba(80, 12, 8, 0.2), 0 5px 10px rgba(0, 0, 0, 0.3);
}
.war-quick-actions-top .war-action-label {
    font-size: 0.54rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.war-countdown-below {
    margin: 0 auto 12px;
    text-align: center;
}
.war-countdown-below .war-ref-countdown,
.war-countdown-below .war-ref-countdown-compact {
    max-width: 360px;
    margin: 0 auto;
}
.war-countdown-below .war-ref-countdown-compact .war-ref-cd-box {
    background: rgba(92, 21, 17, 0.74);
    border: 1.5px solid rgba(238, 198, 123, 0.68);
}
.war-countdown-below-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(92, 21, 17, 0.1);
    border: 1px solid rgba(238, 198, 123, 0.55);
    color: #6d4800;
    font-size: 0.72rem;
    font-weight: 700;
}
.war-active-action,
.war-active-info-grid,
.war-desc-mini {
    max-width: 100%;
    text-align: center;
}
.war-join-overlay.center-modal .modal-content,
.war-modal-overlay.center-modal .modal-content,
.war-modal-sheet,
.war-status-overlay.center-modal .modal-content {
    max-width: 480px;
}
@media (max-width: 430px) {
    .war-board {
        grid-template-columns: 1fr;
    }
    .war-board-body {
        min-height: 120px;
        max-height: 260px;
    }
    .war-countdown-below .war-ref-countdown-compact {
        gap: 6px;
    }
    .war-quick-actions-top {
        gap: 5px;
        padding: 7px 5px;
    }
    .war-quick-actions-top .war-action-circle {
        width: 36px;
        height: 36px;
    }
}
