/* ==========================================================================
   PRANK APPLICATION STYLES - ZHAFRAN HACKER & MONYET TERGANTENG
   ========================================================================== */

:root {
    --bg-dark: #0a0b0e;
    --bg-card: #14171f;
    --bg-card-border: #ff1e38;
    --color-primary: #ff1e38;
    --color-primary-glow: rgba(255, 30, 56, 0.45);
    --color-warning: #ffb703;
    --color-accent: #00f0ff;
    --color-success: #00ff88;
    --color-text: #f0f2f5;
    --color-muted: #8b949e;
    --font-mono: 'Consolas', 'Courier New', monospace;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --border-radius: 14px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--color-text);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    user-select: none;
}

/* CRT & Vignette Overlay */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 6px 100%;
    opacity: 0.7;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 998;
    background: radial-gradient(circle, transparent 60%, rgba(0, 0, 0, 0.85) 100%);
}

/* System Top Bar */
.system-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: rgba(20, 23, 31, 0.95);
    border-bottom: 1px solid var(--color-primary);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.blinking-dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
    animation: blinkDot 1s infinite alternate;
}

@keyframes blinkDot {
    0% { opacity: 0.2; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.15); }
}

.system-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-icon:active {
    transform: scale(0.92);
}

/* Main Container */
.container {
    flex: 1;
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    padding: 18px 16px 40px;
    display: flex;
    flex-direction: column;
}

/* Phase Transitions */
.phase-section {
    display: none;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.4s ease-out forwards;
}

.phase-section.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FASE 1: HACKER WARNING & QRIS
   ========================================================================== */

.warning-badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 30, 56, 0.15);
    border: 1px solid var(--color-primary);
    color: #ff4d64;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
    animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 30, 56, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 30, 56, 0); }
}

.threat-card {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: var(--border-radius);
    padding: 20px 18px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--color-primary-glow);
    text-align: center;
}

.glitch-text {
    font-size: 2.1rem;
    font-family: var(--font-mono);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px var(--color-primary);
    position: relative;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.statement-box {
    background: rgba(255, 30, 56, 0.12);
    border-left: 4px solid var(--color-primary);
    padding: 14px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-align: left;
}

.statement-primary {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffcccc;
    line-height: 1.5;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.system-specs {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
}

.spec-label {
    color: var(--color-muted);
}

.highlight-red {
    color: var(--color-primary);
    font-weight: 700;
}

.highlight-yellow {
    color: var(--color-warning);
    font-weight: 700;
}

/* QRIS Card Component */
.qris-card-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.qris-card {
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    max-width: 330px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.qris-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e50914;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.qris-brand {
    text-align: left;
}

.qris-text-bold {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: #e50914;
    line-height: 1;
    letter-spacing: -0.5px;
}

.qris-sub {
    font-size: 0.55rem;
    color: #555;
    font-weight: 600;
}

.qris-gpn-pill {
    background: #111;
    color: #fff;
    font-weight: 900;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.merchant-info {
    margin-bottom: 10px;
}

.merchant-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 2px;
}

.merchant-nmid {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: #666;
    letter-spacing: 0.5px;
}

.merchant-dest {
    font-size: 0.7rem;
    font-weight: 700;
    color: #e50914;
    margin-top: 2px;
}

.qris-code-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
    background: #fff;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 216px;
    height: 216px;
}

#qrisDisplay img, #qrisDisplay canvas {
    display: block !important;
    margin: 0 auto;
    border-radius: 4px;
}

.qris-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e50914;
    box-shadow: 0 0 8px #e50914;
    animation: scanMove 2.5s ease-in-out infinite alternate;
}

@keyframes scanMove {
    0% { top: 6%; opacity: 0.3; }
    50% { opacity: 0.9; }
    100% { top: 92%; opacity: 0.3; }
}

.qris-nominal-box {
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 6px;
    padding: 6px 10px;
    margin: 10px 0 8px;
}

.nominal-tag {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    color: #6c757d;
}

.nominal-amount {
    font-size: 1.15rem;
    font-weight: 900;
    color: #111;
}

.qris-footer {
    font-size: 0.55rem;
    color: #888;
    margin-top: 6px;
    border-top: 1px solid #eee;
    padding-top: 6px;
}

/* Buttons */
.action-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.btn {
    border: none;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, #ff1e38, #d00020);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 30, 56, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff334b, #e00024);
}

.btn-secondary {
    background: #2a2e3d;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: #373c4f;
}

.btn-danger {
    background: linear-gradient(135deg, #ff9f1c, #ff3838);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.3);
}

.btn-warning {
    background: #ffb703;
    color: #000;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pulse-btn {
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.hint-text {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 14px;
    line-height: 1.4;
}

/* ==========================================================================
   FASE 2: DELAY 5 DETIK & RADAR COUNTDOWN
   ========================================================================== */

.countdown-card {
    background: var(--bg-card);
    border: 2px solid var(--color-warning);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 183, 3, 0.3);
}

.loading-radar {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--color-warning);
    animation: rotateCircle 6s linear infinite;
}

@keyframes rotateCircle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(255, 183, 3, 0.4) 0deg, transparent 90deg, transparent 360deg);
    animation: sweep 1.5s linear infinite;
}

@keyframes sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.countdown-number {
    font-size: 5rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #fff;
    text-shadow: 0 0 20px var(--color-warning), 0 0 40px #ff3838;
    z-index: 2;
    animation: bounceNum 1s ease-in-out infinite;
}

@keyframes bounceNum {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.countdown-title {
    font-size: 1.25rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--color-warning);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffb703, #ff1e38);
    transition: width 0.15s linear;
}

.terminal-logs {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #00ff88;
    text-align: left;
    height: 95px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.log-line {
    margin-bottom: 5px;
    line-height: 1.3;
}

.countdown-sub {
    font-size: 0.78rem;
    color: #ffcccc;
    line-height: 1.4;
}

/* ==========================================================================
   FASE 3: REVEAL JUMPSCARE & MONYET TERGANTENG
   ========================================================================== */

.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 950;
}

.reveal-card {
    background: #181d28;
    border: 3px solid #ffb703;
    border-radius: var(--border-radius);
    padding: 22px 18px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 183, 3, 0.5);
    animation: shockShake 0.6s ease-in-out;
}

@keyframes shockShake {
    0% { transform: scale(0.7) rotate(0deg); opacity: 0; }
    20% { transform: scale(1.08) rotate(-4deg); }
    40% { transform: scale(0.98) rotate(3deg); }
    60% { transform: scale(1.04) rotate(-2deg); }
    80% { transform: scale(0.99) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.jumpscare-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.meme-laugh-emoji {
    font-size: 2.2rem;
    animation: spinEmoji 2s infinite ease-in-out alternate;
}

@keyframes spinEmoji {
    0% { transform: rotate(-15deg) scale(0.9); }
    100% { transform: rotate(15deg) scale(1.15); }
}

.reveal-headline {
    font-size: 1.6rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #ffb703;
    text-shadow: 0 0 15px rgba(255, 183, 3, 0.8), 2px 2px 0 #ff1e38;
    line-height: 1.25;
}

.reveal-subheadline {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Monkey Photo Frame */
.monkey-frame {
    background: #000;
    border: 3px solid #ffb703;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    position: relative;
}

.monkey-badge {
    background: #ffb703;
    color: #000;
    font-weight: 900;
    font-size: 0.8rem;
    padding: 6px 12px;
    letter-spacing: 0.5px;
}

.prank-image {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.prank-image:hover {
    transform: scale(1.02);
}

.image-caption {
    background: rgba(0, 0, 0, 0.85);
    color: #fffae6;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fake Receipt */
.fake-receipt {
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-align: left;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.receipt-header {
    font-weight: 900;
    text-align: center;
    border-bottom: 2px dashed #333;
    padding-bottom: 6px;
    margin-bottom: 8px;
    color: #e50914;
    font-size: 0.85rem;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.text-success {
    color: #0b9e4a;
    font-weight: 800;
}

.text-danger {
    color: #e50914;
    font-weight: 800;
}

/* Reveal Actions */
.reveal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 480px) {
    .glitch-text {
        font-size: 1.8rem;
    }

    .statement-primary {
        font-size: 0.95rem;
    }

    .reveal-headline {
        font-size: 1.4rem;
    }

    .qris-card {
        padding: 12px;
    }

    .countdown-number {
        font-size: 4rem;
    }
}
