@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');
body { margin:0; font-family:sans-serif; background:#f5f7fa; }
header { background:#0048ff; color:#fff; padding:20px; text-align:center; font-size:1.5em; font-weight:bold; }
.curved-bg {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(120deg, #FF4444 0%, #FF6666 100%);
    border-bottom-left-radius: 40% 30px;
    border-bottom-right-radius: 40% 30px;
    z-index: 0;
}
.content { padding:10px 6px 80px 6px; position: relative; z-index: 1; }
.scratch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 0;
}
.scratch-card {
    border-radius: 16px;
    position: relative;
    cursor: grab;
    touch-action: none;
    width: 260px;
    height: 120px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background-color: #ffffff;
}
.scratch-bg { position:absolute; top:0; left:0; width:100%; height:100%; background:#f0f8ff; border-radius:16px; display:flex; align-items:center; justify-content:center; font-size:2em; color:#0048ff; font-weight:bold; z-index:1; }
canvas.scratch-foreground { position:absolute; top:0; left:0; border-radius:16px; z-index:2; }
.point-box { background:#fff; border-radius:10px; box-shadow:0 2px 8px #0001; padding:12px 24px; font-size:1.2em; color:#0048ff; font-weight:bold; margin-bottom:18px; display:inline-block; }
.nav-bottom { 
    position:fixed; 
    left:0; 
    right:0; 
    bottom:0; 
    background:linear-gradient(120deg, #8B0000 0%, #B22222 50%, #DC143C 100%);
    display:flex; 
    justify-content:space-around; 
    align-items:center; 
    height:65px; 
    z-index:100; 
    box-shadow:0 -6px 28px rgba(139, 0, 0, 0.35);
    border-radius:20px 20px 0 0;
}
.nav-bottom a { 
    color:rgba(255,255,255,0.8); 
    text-decoration:none; 
    display:flex; 
    flex-direction:column; 
    align-items:center; 
    font-size:0.85em; 
    font-weight:500;
    transition:all 0.3s ease;
    padding:8px 12px; 
    border-radius:12px; 
    position:relative;
    -webkit-tap-highlight-color: transparent;
}
.nav-bottom a.active { 
    color:#ffffff; 
    background:rgba(255,255,255,0.15); 
    transform:translateY(-3px) scale(1.05);
}
.nav-bottom i { 
    font-size:1.8em; 
    margin-bottom:4px; 
    transition:all 0.3s ease;
}
.nav-bottom a:active i {
    transform: scale(0.9);
}
.modern-point-box {
    background: linear-gradient(120deg, #0048ff 0%, #0066ff 50%, #1a75ff 100%);
    border-radius: 20px;
    color: #fff;
    padding: 28px 12px 22px 12px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0, 72, 255, 0.3);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.mpb-header {
    font-size: 1.1em;
    opacity: 0.95;
    margin-bottom: 8px;
}
.mpb-main {
    display: flex;
    align-items: center;
    font-size: 2.6em;
    font-weight: bold;
    margin-bottom: 18px;
    gap: 16px;
}
.mpb-main i {
    font-size: 1.2em;
    margin-right: 8px;
    color: #fffde4;
    filter: drop-shadow(0 2px 6px #0002);
}
.mpb-points {
    letter-spacing: 2px;
}
.mpb-info-card {
    margin-top: 0;
    background: linear-gradient(120deg, rgba(0, 72, 255, 0.8) 0%, rgba(26, 117, 255, 0.8) 100%);
    border-radius: 0;
    padding: 8px 22px 0 22px;
}
.mpb-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ffffff22;
    padding: 7px 0;
    font-size: 1.08em;
}
.mpb-info-row:last-child {
    border-bottom: none;
}
.info-cards-row {
    display: flex;
    gap: 8px;
    position: relative;
    margin-bottom: 0;
    padding: 8px 2px 12px 2px;
}
.info-cards-row .info-card:first-child {
    margin-left: 6px;
}
.info-cards-row .info-card:last-child {
    margin-right: 6px;
}
.info-card {
    border-radius: 16px;
    padding: 6px 10px 6px 14px;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.15);
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}
.info-card:not(.earnings):not(.status) {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}
.info-card.earnings {
    background: linear-gradient(135deg, #16a34a, #059669);
}
.info-card.status {
    background: linear-gradient(135deg, #ca8a04, #d97706);
}
.info-icon-bg {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 1.6em;
    opacity: 0.15;
    color: #fff;
}
.info-label {
    font-size: 0.95em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}
.info-main-value {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 2px;
    color: #ffffff;
}
.info-badge {
    display: none;
}
.info-value {
    font-size: 1em;
    font-weight: 500;
    color: #222;
}
.free-badge {
    display: inline-flex;
    align-items: center;
    background: #4caf50;
    color: #fff;
    border-radius: 12px;
    padding: 1px 10px 1px 8px;
    font-size: 0.85em;
    font-weight: bold;
    gap: 4px;
    box-shadow: 0 2px 8px #4caf5022;
}
.free-badge i {
    color: #ffffff;
    font-size: 1em;
    margin-right: 0;
}
.vip-badge {
    display: inline-flex;
    align-items: center;
    background: #d32f2f;
    color: #fff;
    border-radius: 16px;
    padding: 2px 14px 2px 10px;
    font-size: 1em;
    font-weight: bold;
    gap: 6px;
    box-shadow: 0 2px 8px #d32f2f22;
}
.vip-badge i {
    color: #ffffff;
    font-size: 1.1em;
    margin-right: 2px;
}
.modern-point-box.shopeepay-style {
    background: linear-gradient(120deg, #8B0000 0%, #B22222 50%, #DC143C 100%);
    border-radius: 22px;
    color: #fff;
    padding: 0;
    margin: 0 0 4px 0;
    box-shadow: 0 4px 24px rgba(139, 0, 0, 0.3);
    width: 100%;
    max-width: 100vw;
    position: relative;
}
.sp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 0 22px;
}
.sp-left {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
}
.sp-icon {
    background: transparent !important;
    color: #fff !important;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em !important;
    box-shadow: none !important;
    padding: 0;
}
.sp-label {
    font-size: 1.1em;
    font-weight: 600;
    opacity: 0.92;
    margin-bottom: 2px;
}
.sp-balance {
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 2px;
}
.sp-action {
    background: #ffe6e6;
    color: #ff0000;
    border: none;
    border-radius: 16px;
    padding: 6px 10px;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
    transition: background 0.2s;
}
.sp-action:hover {
    background: #ffb3b3;
}
.sp-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 4px 0;
    padding: 0 16px;
}
.sp-subtext {
    font-size: 1em;
    opacity: 0.93;
}
.sp-claim {
    background: #ffffff;
    color: #0048ff;
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 0.95em;
    font-weight: bold;
    margin-left: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    transition: background 0.2s;
}
.sp-claim:hover {
    background: #f5f5f5;
}
.sp-info-card {
    margin-top: 10px;
    background: linear-gradient(120deg, rgba(0, 72, 255, 0.8) 0%, rgba(26, 117, 255, 0.8) 100%);
    border-radius: 0 0 22px 22px;
    padding: 8px 22px 10px 22px;
}
.info-orange {
    color: #0048ff !important;
}
.mpb-info-card.sp-info-card {
    margin-top: 0;
    background: linear-gradient(120deg, rgba(139, 0, 0, 0.8) 0%, rgba(220, 20, 60, 0.8) 100%);
    border-radius: 0;
    padding: 8px 22px 0 22px;
}
.mpb-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ffffff22;
    padding: 7px 0;
    font-size: 1.08em;
}
.mpb-info-row:last-child {
    border-bottom: none;
}
.slide-left {
    transform: translateX(-120%);
    opacity: 0;
}
.slide-in-right {
    transform: translateX(120%);
    opacity: 0;
    transition: none;
}
@media (max-width: 480px) {
    .info-cards-row {
        gap: 6px;
        margin-top: 10px;
    }
    .info-card {
        padding: 4px 6px 4px 10px;
        border-radius: 12px;
    }
    .info-badge {
        font-size: 0.8em;
        padding: 2px 8px;
        top: 8px;
        right: 8px;
    }
    .info-main-value {
        font-size: 1em;
        margin-top: 4px;
    }
    .info-label {
        font-size: 0.9em;
    }
    .info-icon-bg {
        font-size: 1.2em;
        right: 6px;
        bottom: 6px;
    }
    .nav-bottom {
        height: 65px;
        border-radius: 16px 16px 0 0;
    }
    .nav-bottom a {
        padding: 10px 12px;
        font-size: 0.8em;
    }
    .nav-bottom i {
        font-size: 1.4em;
    }
    .nav-bottom a.active::before {
        width: 5px;
        height: 5px;
    }
    .sp-balance {
        font-size: 1.4em !important;
    }
}
@media (max-width: 600px) {
    .modern-point-box.shopeepay-style {
        border-radius: 16px;
        padding: 0;
    }
    .sp-header, .mpb-info-card.sp-info-card {
        padding-left: 10px;
        padding-right: 10px;
    }
    .sp-icon {
        width: 32px;
        height: 32px;
        font-size: 1.2em;
    }
    .sp-label {
        font-size: 1em;
    }
    .sp-balance {
        font-size: 1.6em !important;
    }
    .mpb-info-row {
        font-size: 0.98em;
        padding: 5px 0;
    }
}
/* Loading spinner style */
.scratch-loading {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    z-index: 10;
    border-radius: 16px;
    font-size: 1.3em;
    color: #0048ff;
    font-weight: bold;
    pointer-events: none;
}
.scratch-loading-anim {
    position: absolute;
    top: 18px;
    left: 0;
    width: 60px;
    height: 60px;
    z-index: 11;
    transition: left 0.1s linear;
}
.scratch-loading-text {
    margin-top: 22px;
    margin-bottom: 0;
    font-size: 1.1em;
    color: #0048ff;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.scratch-progress-bar-container {
    position: absolute;
    left: 16px; right: 16px; bottom: 18px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    width: calc(100% - 32px);
}
.scratch-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0048ff 0%, #0066ff 50%, #1a75ff 100%);
    width: 100%;
    border-radius: 6px;
    transition: width 0.1s linear;
}
.scratch-countdown {
    font-size: 0.95em;
    color: #888;
    margin-top: 2px;
}
.horizontal-cards-row {
    display: flex;
    gap: 18px;
    margin-top: 28px;
    margin-bottom: 18px;
    justify-content: center;
    padding: 0 12px;
}
.h-card {
    border-radius: 18px;
    box-shadow: 0 2px 12px #0001;
    padding: 18px 0 14px 0;
    min-width: 180px;
    max-width: 240px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 4px;
}
.h-card.saldo {
    background: linear-gradient(120deg, #f0f8ff 0%, #e3f2fd 100%);
}
.h-card.kupon {
    background: linear-gradient(120deg, #ede7f6 0%, #d1c4e9 100%);
}
.h-card-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}
.h-card-point {
    display: none;
}
.h-card-badge.tebus, .h-card-badge.kupon, .h-card-saldo, .h-card-kupon {
    display: none !important;
}
.h-card-icon {
    font-size: 2.2em;
    margin-bottom: 8px;
    margin-left: 0;
    color: #0048ff;
}
.h-card.saldo .h-card-icon {
    color: #0048ff;
}
.h-card.kupon .h-card-icon {
    color: #6c47ff;
}
.h-card-saldo {
    color: #0048ff;
    font-size: 1.35em;
    font-weight: bold;
    margin-top: 2px;
}
.h-card-saldo span {
    letter-spacing: 1px;
}
.h-card-kupon {
    color: #6c47ff;
    font-size: 1.25em;
    font-weight: bold;
    margin-top: 2px;
}
.h-card-title {
    font-size: 1.15em;
    font-weight: bold;
    margin-top: 2px;
    letter-spacing: 0.5px;
    text-align: center;
}
.nav-bottom a span {
    font-size: 0.75em;
    margin-top: 2px;
    opacity: 0.9;
    transition: all 0.3s ease;
    font-weight: 400;
}
.nav-bottom a:hover span {
    transform: scale(1.05);
    font-weight: 600;
    color: #DC143C;
}
.nav-bottom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}
.scratch-loading-custom {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 16px;
    font-size: 1.1em;
    font-weight: 500;
}
.scratch-loading-custom .spinner {
    width: 38px;
    height: 38px;
    border: 4px solid #0048ff;
    border-top: 4px solid #1a75ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 14px;
}
.scratch-loading-custom .loading-text {
    color: #0048ff;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 0.88em;
    line-height: 1.15;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.scratch-loading-custom .loading-text > div {
    margin: 0;
    padding: 0;
}
.loading-gif {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.loading-progress-bar {
    width: 70%;
    height: 6px;
    background: #e3f2fd;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
    box-shadow: 0 1px 6px rgba(0, 72, 255, 0.3);
}
.loading-progress {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #0048ff 0%, #0066ff 50%, #1a75ff 100%);
    border-radius: 4px;
    animation: progressBarLeft 1s linear forwards;
    transform-origin: left;
}
@keyframes progressBarLeft {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.reward-pulse-text {
    font-size: 2em;
    font-weight: bold;
    color: #0048ff;
    text-shadow: 0 2px 8px rgba(0, 72, 255, 0.6);
    animation: rewardPulse 1.2s cubic-bezier(.4,0,.6,1) infinite;
    letter-spacing: 0.5px;
    background: none !important;
}
.reward-pulse-text.reward-pulse-small,
.reward-pulse-text.reward-pulse-big {
    background: none !important;
}
@keyframes rewardPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    20% { transform: scale(1.08); opacity: 0.95; }
    40% { transform: scale(0.98); opacity: 1; }
    60% { transform: scale(1.10); opacity: 0.92; }
    80% { transform: scale(0.97); opacity: 1; }
}
.reward-pulse-center {
    position: absolute;
    top: 18%;
    left: 0; width: 100%; height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    pointer-events: none;
}
.reward-pulse-text.reward-pulse-small {
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}
.reward-pulse-text.reward-pulse-big {
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-top: 0;
}
@media (max-width: 480px) {
    .reward-pulse-text.reward-pulse-small {
        font-size: 0.95em;
    }
    .reward-pulse-text.reward-pulse-big {
        font-size: 1.1em;
    }
    .scratch-loading-custom .loading-text {
        font-size: 0.8em;
    }
    .loading-gif {
        width: 36px;
        height: 36px;
        margin-bottom: 6px;
    }
}
#refreshScratch {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    z-index: 10;
    padding: 7px 18px;
    border-radius: 8px;
    background: linear-gradient(90deg, #0048ff 0%, #0066ff 50%, #1a75ff 100%);
    color: #fff;
    font-size: 0.98em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 72, 255, 0.3);
    transition: background 0.2s, transform 0.2s;
    min-width: 70px;
}
#refreshScratch:hover {
    background: linear-gradient(90deg, #1a75ff 0%, #0066ff 50%, #0048ff 100%);
    transform: translateX(-50%) scale(1.05);
}
@media (max-width: 480px) {
    #refreshScratch {
        padding: 6px 16px;
        font-size: 0.9em;
        bottom: 8px;
    }
}

/* Scratch Rewards Card */
.scratch-rewards-card {
    background: linear-gradient(135deg, #0048ff 0%, #0066ff 50%, #1a75ff 100%);
    border-radius: 20px;
    padding: 20px;
    margin: 4px 0;
    box-shadow: 0 8px 32px rgba(0, 72, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scratch-rewards-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.rewards-header {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.rewards-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.rewards-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.rewards-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
    box-shadow: 0 4px 18px 0 rgba(255,255,255,0.18), 0 2px 12px 0 rgba(255, 255, 255, 0.3) inset;
    position: relative;
    overflow: visible;
}

.rewards-icon i {
    font-size: 32px;
    background: linear-gradient(120deg, #ffffff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: none;
    animation: none !important;
    transition: color 0.2s, text-shadow 0.2s;
}

@keyframes hand-swing {
    0%, 100% { transform: translateX(0) scale(1); }
    20% { transform: translateX(32px) scale(1.08); }
    50% { transform: translateX(-32px) scale(1.08); }
    80% { transform: translateX(0) scale(1); }
}

.rewards-info {
    flex: 1;
    min-width: 0;
}

.rewards-description {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.rewards-stats {
    display: flex;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 6px 10px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-icon {
    color: #ffffff;
    font-size: 14px;
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 500;
}

.stat-value {
    color: white;
    font-size: 12px;
    font-weight: 700;
}

/* Responsive adjustments for rewards card */
@media (max-width: 480px) {
    .scratch-rewards-card {
        margin: 4px 0;
        padding: 16px;
    }
    .rewards-title {
        font-size: 16px;
    }
    .rewards-content {
        gap: 12px;
    }
    .rewards-icon {
        width: 50px;
        height: 50px;
    }
    .rewards-icon i {
        font-size: 28px;
    }
    .rewards-description {
        font-size: 13px;
    }
    .rewards-stats {
        gap: 6px;
    }
    .stat-item {
        padding: 3px 6px;
        gap: 3px;
    }
    .stat-icon {
        font-size: 12px;
    }
    .stat-label, .stat-value {
        font-size: 10px;
    }
}

/* Image Slider */
.image-slider-container {
    margin: 8px 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide a {
    display: block;
    text-decoration: none;
}

.slide img {
    width: 100%;
    display: block;
}

.modern-point-box.shopeepay-style .sp-header {
    padding-bottom: 6px !important;
}
.mpb-info-card.sp-info-card {
    padding-bottom: 4px !important;
}
.info-cards-row {
    margin-top: 4px !important;
    padding-top: 0 !important;
    padding-bottom: 8px !important;
}
@media (max-width: 480px) {
    .modern-point-box.shopeepay-style .sp-header {
        padding-bottom: 4px !important;
    }
    .mpb-info-card.sp-info-card {
        padding-bottom: 2px !important;
    }
    .info-cards-row {
        margin-top: 2px !important;
        padding-top: 0 !important;
        padding-bottom: 6px !important;
    }
}
.scratch-pointer-icon {
    position: absolute;
    left: 50%;
    top: 80%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.scratch-pointer-icon i {
    font-size: 3.2em;
    background: linear-gradient(120deg, #ffffff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: none;
    animation: hand-swing 2.2s infinite cubic-bezier(.4,2,.3,1);
    transition: color 0.2s, text-shadow 0.2s;
}
.scratch-pointer-icon.hide {
    display: none !important;
}
@media (max-width: 480px) {
    .scratch-pointer-icon i {
        font-size: 2.2em;
    }
}
.scratch-pointer-icon .pointer-img {
    width: 44px;
    height: auto;
    animation: hand-swing 2.2s infinite cubic-bezier(.4,2,.3,1);
    display: block;
    pointer-events: none;
    user-select: none;
}
@media (max-width: 480px) {
    .scratch-pointer-icon .pointer-img {
        width: 32px;
        height: 32px;
    }
}

/* Tambahan: CSS untuk ikon gembok */
.scratch-lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scratch-lock-icon:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.scratch-lock-icon:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.scratch-lock-icon i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes lockPulse {
    0% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }
    100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
}

.scratch-lock-icon {
    animation: lockPulse 2s infinite;
}

@media (max-width: 480px) {
    .scratch-lock-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Tambahan: CSS untuk popup upgrade responsive */
@media (max-width: 480px) {
    #upgradePopup {
        padding: 5px !important;
    }
    
    #upgradePopup > div {
        padding: 20px 15px !important;
        max-height: 95vh !important;
        margin: 10px !important;
    }
    
    #upgradePopup h2 {
        font-size: 1.2em !important;
        margin-bottom: 10px !important;
    }
    
    #upgradePopup p {
        font-size: 0.95em !important;
        margin-bottom: 15px !important;
    }
    
    #upgradePopup .fa-lock {
        font-size: 24px !important;
    }
    
    #upgradePopup h3 {
        font-size: 1em !important;
        margin-bottom: 10px !important;
    }
    
    #upgradePopup button[onclick="closeUpgradePopup()"] {
        top: 8px !important;
        right: 12px !important;
        font-size: 20px !important;
    }
    
    /* Tambahan: CSS untuk teks potensi penghasilan di mobile */
    #upgradePopup .fa-medal,
    #upgradePopup .fa-trophy,
    #upgradePopup .fa-gem {
        margin-right: 6px !important;
        font-size: 1em !important;
    }
    
    #upgradePopup span[style*="font-weight: bold; color: #333; font-size: 0.95em;"] {
        font-size: 0.85em !important;
        line-height: 1.2 !important;
    }
    
    /* Tambahan: CSS untuk warna ikon yang diperbarui */
    #upgradePopup .fa-medal {
        color: #e91e63 !important;
    }
    
    #upgradePopup .fa-trophy {
        color: #0048ff !important;
    }
    
    #upgradePopup .fa-gem {
        color: #2196f3 !important;
    }
}

@media (max-width: 360px) {
    #upgradePopup > div {
        padding: 15px 12px !important;
        margin: 5px !important;
    }
    
    #upgradePopup h2 {
        font-size: 1.1em !important;
    }
    
    #upgradePopup p {
        font-size: 0.9em !important;
    }
    
    #upgradePopup .fa-lock {
        font-size: 20px !important;
    }
    
    #upgradePopup button[onclick="goToUpgrade()"] {
        padding: 10px 20px !important;
        font-size: 0.95em !important;
    }
    
    /* Tambahan: CSS untuk teks potensi penghasilan di small mobile */
    #upgradePopup span[style*="font-weight: bold; color: #333; font-size: 0.95em;"] {
        font-size: 0.8em !important;
        line-height: 1.1 !important;
    }
    
    #upgradePopup .fa-medal,
    #upgradePopup .fa-trophy,
    #upgradePopup .fa-gem {
        margin-right: 5px !important;
        font-size: 0.9em !important;
    }
}

/* CAPTCHA MODERN */
.captcha-rewards-card {
    background: linear-gradient(120deg, #8B0000 0%, #B22222 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(139, 0, 0, 0.3);
    padding: 18px 10px 22px 10px;
    margin-top: 6px;
    margin-bottom: 18px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}
.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}
.captcha-card {
    background: url('../img/bgdana.png') center/cover no-repeat, #f5f7fa;
    border-radius: 14px;
    box-shadow: 0 2px 12px #0048ff11;
    padding: 16px 18px 14px 18px;
    width: 260px;
    max-width: 96vw;
    margin-bottom: 0;
    position: relative;
}
#captchaCanvas {
    display: block;
    margin: 0 auto 12px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0048ff11;
    border: 1px solid #e3edff;
}
.captcha-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    justify-content: center;
}
.captcha-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #b3d1ff;
    font-size: 1.08em;
    background: #fafdff;
    outline: none;
    transition: border 0.2s;
    text-align: center;
    font-family: 'Roboto', Arial, sans-serif;
    letter-spacing: 1.5px;
    max-width: 260px;
    min-width: 120px;
}
.captcha-input::placeholder {
    font-size: 0.85em;
    color: #888;
    letter-spacing: 1.5px;
}
.captcha-input:focus {
    border: 1.5px solid #0048ff;
}
.captcha-refresh-btn {
    background: #ffe6e6;
    border: none;
    border-radius: 8px;
    padding: 7px 10px;
    color: #ff0000;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}
.captcha-refresh-btn:hover {
    background: #ffb3b3;
}
.captcha-submit-btn {
    width: auto;
    min-width: 240px;
    max-width: 340px;
    display: block;
    margin: 0 auto 0 auto;
    background: linear-gradient(90deg, #8B0000 0%, #B22222 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 1.08em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
    transition: background 0.2s, transform 0.1s;
}
.captcha-submit-btn:hover {
    background: linear-gradient(90deg, #B22222 0%, #8B0000 100%);
    transform: scale(1.03);
}
.captcha-loading-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 14px;
}
.captcha-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    padding: 18px 0 10px 0;
}
.captcha-spinner {
    border: 4px solid #e3edff;
    border-top: 4px solid #0048ff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    animation: spin 1s linear infinite;
    margin-bottom: 14px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.captcha-loading-text {
    font-size: 1em;
    color: #0048ff;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
}
.captcha-loading-progress {
    width: 100%;
    height: 7px;
    background: #e3edff;
    border-radius: 6px;
    overflow: hidden;
}
.captcha-loading-bar {
    height: 100%;
    width: 100%;
    background: #2196f3;
    transition: width 0.2s linear;
}
@media (max-width: 480px) {
    .captcha-card { width: 98vw; max-width: 300px; padding: 10px 4vw 10px 4vw; }
    .captcha-input { max-width: 200px; min-width: 100px; font-size: 1em; }
    .captcha-submit-btn { max-width: 260px; min-width: 160px; }
}
.captcha-rewards-card .rewards-content {
    display: flex;
    align-items: center;
    gap: 8px;
}
.captcha-rewards-card .rewards-icon {
    margin-right: 0;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.captcha-rewards-card .rewards-description {
    margin-bottom: 2px;
}
.captcha-rewards-card .rewards-stats {
    margin-top: 0;
}
#captchaSuccessModal.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(4px);
}
#captchaSuccessModal .success-modal-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.18);
    padding: 28px 22px 22px 22px;
    max-width: 340px;
    width: 90vw;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: popupFadeIn 0.5s cubic-bezier(.4,2,.3,1);
    position: relative;
}
#captchaSuccessModal .success-icon-anim {
    font-size: 3.2em;
    color: #4caf50;
    margin-bottom: 16px;
    animation: popScale 0.6s cubic-bezier(.4,2,.3,1);
}
#captchaSuccessModal .success-title {
    font-size: 1.25em;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    text-align: center;
}
#captchaSuccessModal .success-subtitle {
    font-size: 1em;
    color: #555;
    margin-bottom: 6px;
    text-align: center;
}
#captchaSuccessModal .success-points {
    font-size: 1.5em;
    font-weight: bold;
    color: #0048ff;
    margin-bottom: 22px;
    text-align: center;
}
#captchaSuccessModal .success-kupon {
    font-size: 1.2em;
    font-weight: bold;
    color: #7c4dff;
    margin-bottom: 18px;
    text-align: center;
    display: block;
}
#captchaSuccessModal .modal-btn {
    background: linear-gradient(90deg, #0048ff 0%, #0066ff 100%);
    color: #fff;
    font-size: 1.08em;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    padding: 10px 32px;
    box-shadow: 0 2px 8px rgba(0, 72, 255, 0.2);
    cursor: pointer;
    margin-top: 0;
    transition: background 0.2s, transform 0.2s;
}
#captchaSuccessModal .modal-btn:hover {
    background: linear-gradient(90deg, #0066ff 0%, #0048ff 100%);
    transform: scale(1.04);
}
@keyframes popupFadeIn {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes popScale {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
#captchaFailModal.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(4px);
}
#captchaFailModal .success-modal-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(233, 30, 99, 0.13);
    padding: 28px 22px 22px 22px;
    max-width: 340px;
    width: 90vw;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: popupFadeIn 0.5s cubic-bezier(.4,2,.3,1);
    position: relative;
}
#captchaFailModal .success-icon-anim {
    font-size: 3.2em;
    color: #e91e63;
    margin-bottom: 16px;
    animation: popScale 0.6s cubic-bezier(.4,2,.3,1);
}
#captchaFailModal .success-title {
    font-size: 1.25em;
    font-weight: bold;
    color: #e91e63;
    margin-bottom: 6px;
    text-align: center;
}
#captchaFailModal .success-subtitle {
    font-size: 1em;
    color: #555;
    margin-bottom: 18px;
    text-align: center;
}
#captchaFailModal .modal-btn {
    background: linear-gradient(90deg, #e91e63 0%, #ff80ab 100%);
    color: #fff;
    font-size: 1.08em;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    padding: 10px 32px;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.13);
    cursor: pointer;
    margin-top: 0;
    transition: background 0.2s, transform 0.2s;
}
#captchaFailModal .modal-btn:hover {
    background: linear-gradient(90deg, #ff80ab 0%, #e91e63 100%);
    transform: scale(1.04);
}
#captchaImg {
    border: 2px solid #b3d1ff;
    box-shadow: 0 2px 12px #0048ff22;
    border-radius: 12px;
    display: block;
    margin: 0 auto 12px auto;
    background: #e8e8e8;
}
@media (max-width: 600px) {
    .captcha-rewards-card { max-width: 98vw; }
}
#scratchMaxModal.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(4px);
}
#scratchMaxModal .success-modal-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(233, 30, 99, 0.13);
    padding: 28px 22px 22px 22px;
    max-width: 340px;
    width: 90vw;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: popupFadeIn 0.5s cubic-bezier(.4,2,.3,1);
    position: relative;
}
#scratchMaxModal .success-icon-anim {
    font-size: 3.2em;
    color: #e91e63;
    margin-bottom: 16px;
    animation: popScale 0.6s cubic-bezier(.4,2,.3,1);
}
#scratchMaxModal .success-title {
    font-size: 1.25em;
    font-weight: bold;
    color: #e91e63;
    margin-bottom: 6px;
    text-align: center;
}
#scratchMaxModal .success-subtitle {
    font-size: 1em;
    color: #555;
    margin-bottom: 6px;
    text-align: center;
}
#scratchMaxModal .success-points {
    font-size: 1.2em;
    font-weight: bold;
    color: #0048ff;
    margin-bottom: 8px;
    text-align: center;
}
#scratchMaxModal .modal-btn {
    background: linear-gradient(90deg, #0048ff 0%, #0066ff 100%);
    color: #fff;
    font-size: 1.08em;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    padding: 10px 32px;
    box-shadow: 0 2px 8px rgba(0, 72, 255, 0.2);
    cursor: pointer;
    margin-top: 0;
    transition: background 0.2s, transform 0.2s;
}
#scratchMaxModal .modal-btn:hover {
    background: linear-gradient(90deg, #0066ff 0%, #0048ff 100%);
    transform: scale(1.04);
}
.captcha-lock-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: pointer;
}
.captcha-lock-icon {
    font-size: 3.5em;
    color: #e91e63;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lockPulse 1.2s infinite alternate;
}
@keyframes lockPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

#upgradeAjakanModal .success-modal-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.13);
    padding: 32px 24px 26px 24px;
    max-width: 440px;
    width: 96vw;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: popupFadeIn 0.5s cubic-bezier(.4,2,.3,1);
    position: relative;
}
#upgradeAjakanModal .success-icon-anim {
    font-size: 3.2em;
    color: #2196f3;
    margin-bottom: 16px;
    animation: popScale 0.6s cubic-bezier(.4,2,.3,1);
}
#upgradeAjakanModal .success-title {
    font-size: 1.15em;
    font-weight: bold;
    color: #2196f3;
    margin-bottom: 12px;
    text-align: center;
}
.upgrade-paket-list {
    width: 100%;
    margin-bottom: 18px;
}
.upgrade-paket-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 12px;
    padding: 10px 6px 7px 6px;
    border-radius: 10px;
    font-size: 0.93em;
    color: #333;
    text-align: center;
    box-shadow: 0 2px 8px #2196f311;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}
.upgrade-paket-item .upgrade-icon {
    font-size: 1.45em;
    margin-bottom: 3px;
}
.upgrade-paket-item.basic {
    background: linear-gradient(90deg, #e3f0ff 0%, #f5fafd 100%);
    border: 1.5px solid #2196f3;
}
.upgrade-paket-item.basic .upgrade-icon { color: #2196f3; }
.upgrade-paket-item.premium {
    background: linear-gradient(90deg, #fff3e0 0%, #fff8e1 100%);
    border: 1.5px solid #ff9800;
}
.upgrade-paket-item.premium .upgrade-icon { color: #ff9800; }
.upgrade-paket-item.vip {
    background: linear-gradient(90deg, #ede7f6 0%, #e3f2fd 100%);
    border: 1.5px solid #7c4dff;
}
.upgrade-paket-item.vip .upgrade-icon { color: #7c4dff; }
.upgrade-paket-item .potensi {
    font-size: 0.97em;
    margin-top: 1px;
}
#upgradeAjakanModal .modal-btn {
    min-width: 210px;
    width: 90%;
    max-width: 340px;
    display: block;
    margin: 12px auto 0 auto;
    padding: 13px 0;
    font-size: 1.13em;
    border-radius: 12px;
    background: linear-gradient(90deg, #2196f3 0%, #4f8cff 100%);
    color: #fff;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.13);
    transition: background 0.2s, transform 0.2s;
}
#upgradeAjakanModal .modal-btn:hover {
    background: linear-gradient(90deg, #4f8cff 0%, #2196f3 100%);
    transform: scale(1.04);
}
.modal-overlay, #upgradeAjakanModal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(33,150,243,0.18);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
@media (max-width: 480px) {
    #upgradeAjakanModal .success-modal-box {
        max-width: 94vw;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .success-modal-box { padding: 18px 2vw 14px 2vw !important; }
    .upgrade-paket-list { margin-bottom: 10px !important; }
    .upgrade-paket-item { font-size: 0.89em; padding: 8px 3px 6px 3px; }
    #upgradeAjakanModal .modal-btn { min-width: 0; font-size: 1.05em; padding: 12px 0; }
} 