/*
 * Copyright (c) 2026 PayNnet. All rights reserved.
 * Unauthorized copying, modification, or distribution of this file is strictly prohibited.
 * This software is proprietary and confidential.
 */

/* =========================================
   Real-time Payment Simulation (Intro)
   ========================================= */
.payment-sim-box {
    position: relative; width: 100%; height: 450px;
    display: flex; align-items: center; justify-content: center;
    perspective: 1000px; padding-top: 50px;
}
.sim-scene {
    position: relative; width: 100%; max-width: 500px; height: 100%;
}

/* 1. Terminal */
.sim-device.terminal {
    position: absolute; bottom: 50px; left: 0;
    width: 200px; height: 260px;
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    border-radius: 20px;
    box-shadow: -20px 20px 40px rgba(0,0,0,0.4);
    transform: rotateX(10deg) rotateY(10deg);
    padding: 20px; 
    border: 1px solid #444;
    transition: transform 0.5s ease;
    z-index: 2;
}
.terminal:hover { transform: rotateX(5deg) rotateY(5deg) translateY(-5px); }
.terminal-screen {
    width: 100%; height: 120px;
    background: #000; border-radius: 10px;
    margin-bottom: 20px; overflow: hidden;
    position: relative; border: 1px solid #333;
}
.screen-content {
    position: absolute; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; font-family: 'Courier New', monospace; transition: all 0.3s;
}
.default-state { opacity: 1; }
.default-state i { font-size: 30px; margin-bottom: 10px; color: #aaa; }
.success-state { opacity: 0; background: #27ae60; color: #fff; font-weight: bold; font-family: 'Plus Jakarta Sans', sans-serif;}
.success-state i { font-size: 40px; margin-bottom: 5px; }

.sim-scene.playing .success-state { animation: showSuccess 3s forwards; animation-delay: 1.5s; }
.sim-scene.playing .default-state { animation: hideDefault 3s forwards; animation-delay: 1.5s; }

/* 2. Card */
.sim-card {
    position: absolute; bottom: 0; left: 80px;
    width: 140px; height: 90px;
    background: linear-gradient(135deg, #c0392b 0%, #8e44ad 100%);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 3;
    display: flex; align-items: flex-end; padding: 10px;
    color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 2px;
    transform: translate(150px, 150px) rotate(-30deg); /* Initial Hidden State */
    opacity: 0;
}
.sim-chip { width: 30px; height: 20px; background: #f1c40f; border-radius: 4px; margin-bottom: auto; }
.sim-card-text { font-family: 'Krona One', sans-serif; }

.sim-scene.playing .sim-card { animation: cardTap 4s cubic-bezier(0.25, 1, 0.5, 1) forwards; }

/* 3. Phone */
.sim-device.phone {
    position: absolute; top: 0; right: 0;
    width: 220px; height: 420px;
    background: #111; border-radius: 35px;
    padding: 10px; border: 4px solid #333;
    box-shadow: 20px 20px 50px rgba(0,0,0,0.5);
    transform: rotateX(5deg) rotateY(-10deg);
    z-index: 1;
}
.phone-screen {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1c1c1c 0%, #333 100%);
    border-radius: 28px; position: relative; overflow: hidden;
}
.phone-screen::after { content:''; position: absolute; inset:0; background: rgba(0,0,0,0.2); }
.phone-header {
    position: absolute; top: 15px; width: 100%; padding: 0 15px;
    display: flex; justify-content: space-between; font-size: 12px; color: #fff; z-index: 10; font-weight: 600;
}
.status-icons { display: flex; gap: 5px; }

/* 4. Notification & List */
.noti-list {
    position: absolute; inset: 0; padding-top: 50px; /* Space for Header */
    display: flex; flex-direction: column; justify-content: flex-start;
    padding-left: 10px; padding-right: 10px;
    overflow: hidden; pointer-events: none; /* Let clicks pass if needed */
}

.deposit-noti {
    position: relative; width: auto; /* Changed from 100% to auto */
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px);
    border-radius: 12px; padding: 12px;
    box-sizing: border-box; /* Identify padding behavior */
    display: flex; gap: 10px; align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 20;
    opacity: 0; transform: translateY(-20px);
    animation: slideInStack 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInStack {
    0% { opacity: 0; transform: translateY(-30px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.noti-icon {
    width: 36px; height: 36px; background: var(--primary-color);
    border-radius: 8px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.noti-text { flex: 1; }
.noti-head { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 2px; color: #555; }
.app-name { font-weight: 600; }
.time { font-size: 10px; opacity: 0.8; }
.noti-body { font-size: 13px; color: #111; line-height: 1.3; }
.noti-body strong { color: var(--primary-color); }
.noti-body .balance { display: block; font-size: 11px; color: #666; margin-top: 2px; }


/* Keyframes */
@keyframes cardTap {
    0% { transform: translate(100px, 100px) rotate(-30deg); opacity: 0; }
    20% { transform: translate(20px, 30px) rotate(-10deg); opacity: 1; } /* Ready */
    30% { transform: translate(10px, 10px) rotate(-10deg) scale(0.95); } /* Tap Down */
    40% { transform: translate(20px, 30px) rotate(-10deg) scale(1); }    /* Tap Up */
    80% { transform: translate(20px, 30px) rotate(-10deg); opacity: 1; }  /* Hold */
    100% { transform: translate(100px, 100px) rotate(-30deg); opacity: 0; } /* Exit */
}

@keyframes showSuccess {
    0% { opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; }
}
@keyframes hideDefault {
    0% { opacity: 1; } 10% { opacity: 0; } 90% { opacity: 0; } 100% { opacity: 1; }
}

/* Mobile Sim */
@media (max-width: 991px) {
    .payment-sim-box { height: 350px; margin-bottom: 40px; transform: scale(0.85); transform-origin: top center; }
    .sim-scene { max-width: 100%; display: flex; justify-content: center;}
    .sim-device.phone { right: 50%; margin-right: -130px; } /* Offset center */
    .sim-device.terminal { left: 50%; margin-left: -130px; bottom: 20px;}
}

/* Benefit Text (Golden Yellow) */
.res-benefit-text { 
    font-size: 18px; 
    font-weight: 800; 
    background: linear-gradient(135deg, #FFD700 0%, #FFB900 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    margin-top: 5px; 
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1)); 
    letter-spacing: -0.5px; 
}
