body { margin:0; font-family:sans-serif; background:#e2e2e2; }
header { background:#4f8cff; 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, #4f8cff 0%, #7c4dff 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:#fffbe7; border-radius:16px; display:flex; align-items:center; justify-content:center; font-size:2em; color:#ff9800; 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:#4f8cff; font-weight:bold; margin-bottom:18px; display:inline-block; }
.nav-bottom { 
    position:fixed; 
    left:0; 
    right:0; 
    bottom:0; 
    background:linear-gradient(120deg, #ff9800 0%, #ff7043 100%);
    display:flex; 
    justify-content:space-around; 
    align-items:center; 
    height:65px; 
    z-index:100; 
    box-shadow:0 -6px 28px rgba(255, 112, 67, 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, #d32f2f 0%, #ff9800 100%);
    border-radius: 20px;
    color: #fff;
    padding: 28px 12px 22px 12px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px #d32f2f33;
    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(255, 112, 67, 0.8) 0%, rgba(255, 152, 0, 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: #ffd600;
    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: #ffd600;
    font-size: 1.1em;
    margin-right: 2px;
}
.modern-point-box.shopeepay-style {
    background: linear-gradient(120deg, #ff7043 0%, #ff9800 100%);
    border-radius: 22px;
    color: #fff;
    padding: 0;
    margin: 0 0 4px 0;
    box-shadow: 0 4px 24px #ff704333;
    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: #fff3e0;
    color: #ff7043;
    border: none;
    border-radius: 16px;
    padding: 6px 10px;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 2px 8px #ff704322;
    transition: background 0.2s;
}
.sp-action:hover {
    background: #ffe0b2;
}
.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: #ffd600;
    color: #ff7043;
    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 #ffd60033;
    transition: background 0.2s;
}
.sp-claim:hover {
    background: #fff176;
}
.sp-info-card {
    margin-top: 10px;
    background: linear-gradient(120deg, #ff7043cc 0%, #ff9800cc 100%);
    border-radius: 0 0 22px 22px;
    padding: 8px 22px 10px 22px;
}
.info-orange {
    color: #ff7043 !important;
}
.mpb-info-card.sp-info-card {
    margin-top: 0;
    background: linear-gradient(120deg, rgba(255, 112, 67, 0.8) 0%, rgba(255, 152, 0, 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: #4f8cff;
    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: #4f8cff;
    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, #4f8cff 0%, #7c4dff 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, #fffbe7 0%, #ffe0b2 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: #d3b16a;
}
.h-card.saldo .h-card-icon {
    color: #d3b16a;
}
.h-card.kupon .h-card-icon {
    color: #6c47ff;
}
.h-card-saldo {
    color: #ff9800;
    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: #4f8cff;
}
.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 #ff9800;
    border-top: 4px solid #ff7043;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 14px;
}
.scratch-loading-custom .loading-text {
    color: #ff9800;
    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: #ffe0b2;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
    box-shadow: 0 1px 6px #ff980033;
}
.loading-progress {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff7043 0%, #ff9800 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: #ff9800;
    text-shadow: 0 2px 8px #ffd60099;
    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, #4f8cff 0%, #1976d2 100%);
    color: #fff;
    font-size: 0.98em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px #4f8cff33;
    transition: background 0.2s, transform 0.2s;
    min-width: 70px;
}
#refreshScratch:hover {
    background: linear-gradient(90deg, #1976d2 0%, #4f8cff 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, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 20px;
    margin: 4px 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 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 #ffd70044 inset;
    position: relative;
    overflow: visible;
}

.rewards-icon i {
    font-size: 32px;
    background: linear-gradient(120deg, #ffd600 0%, #ff9800 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: #ffd700;
    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, #ffd600 0%, #ff9800 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: #ff9800 !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;
    }
} 