/* =========================================
   MINI SIMULATOR (DEMO INTERACTIVA)
   ========================================= */
#simulator {
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(to bottom, #f8fafc 0%, #eff6ff 100%);
    overflow: hidden;
}

.sim-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

/* --- MOBILE POS MOCKUP --- */
.sim-mobile-wrapper {
    position: relative;
    width: 300px;
    /* Standard mobile width */
    margin: 0 auto;
    perspective: 1000px;
    z-index: 10;
}

.sim-phone {
    background: #fff;
    border-radius: 40px;
    box-shadow:
        0 50px 100px -20px rgba(59, 130, 246, 0.4),
        inset 0 0 0 8px #f1f5f9;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    position: relative;
    transition: transform 0.3s ease;
}

.sim-screen {
    padding: 24px;
    background: #fff;
    height: 580px;
    /* Typical height */
    display: flex;
    flex-direction: column;
}

.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sim-header div {
    font-weight: 700;
    font-size: 1.1rem;
}

.sim-menu-icon {
    font-size: 1.2rem;
    color: #64748b;
}

.sim-product-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sim-product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.sim-p-img {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.sim-p-info h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.sim-p-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.sim-total-bar {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px dashed #e2e8f0;
}

.sim-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.1rem;
}

.sim-btn-action {
    width: 100%;
    border: none;
    background: var(--primary);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.sim-btn-action:active {
    transform: scale(0.95);
}

.sim-btn-action:hover {
    background: #1d4ed8;
}

/* --- TOKEN ANIMATION --- */
.sim-token {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #10B981;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 0 20px 5px rgba(16, 185, 129, 0.5);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transform: scale(0);
}

/* --- DASHBOARD MOCKUP --- */
.sim-dashboard-wrapper {
    position: relative;
    perspective: 1000px;
}

.sim-dashboard {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transform: rotateY(-10deg) rotateX(2deg);
    transition: all 0.5s ease;
    min-height: 400px;
}

.sim-dashboard.active {
    background: #fff;
    box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.2);
    transform: rotateY(0) rotateX(0);
}

.sim-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.sim-dash-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.sim-status {
    font-size: 0.8rem;
    font-weight: 600;
    background: #dbeafe;
    color: #2563eb;
    padding: 4px 10px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sim-status-dot {
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.sim-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.sim-stat-card {
    background: #f8fafc;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.sim-stat-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sim-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 5px;
}

.sim-stat-value.green {
    color: #10B981;
}

.sim-alert-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    height: 140px;
    overflow: hidden;
    position: relative;
}

.sim-alert-title {
    background: #f1f5f9;
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.sim-alert-feed {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 100%;
}

.sim-notif-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    padding: 8px;
    background: #f0fdf4;
    border-radius: 6px;
    border-left: 3px solid #10B981;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

@media (max-width: 900px) {
    .sim-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sim-dashboard {
        transform: none;
        min-height: auto;
    }
}